Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: Problem with opengl -Its URGENT

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    6

    Problem with opengl -Its URGENT

    Hi ,
    I am using a glut window anf Fl_Gl_Window on a Fl_Window both the windows (glut and Fl_Gl_Window)being texture mapped with the same texture image.I have included operations in mouse handling events of both the windows(glut and Fl_Gl_Window) but functions which i have included in Fl_Gl_Window works only when i move the cursor over glut window.

    i guess the problem is with the rendering context but not sure.. can anyone help



    Thanks

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,713

    Re: Problem with opengl -Its URGENT

    So let me get this straight. You're using GLUT of some from and something called the "Century Embedded Technologies Nano-X SDK" (what I got to when I searched for "Fl_Gl_Window". You need to be more specific about what esoteric tools you're using). And you expect them to work well together... why? Even though both of them are effectively doing the same thing (creating and managing an OpenGL window) and therefore could cause all kinds of problems when they try to interact?

  3. #3
    Member Regular Contributor
    Join Date
    Mar 2003
    Location
    Los Angeles
    Posts
    386

    Re: Problem with opengl -Its URGENT

    Quote Originally Posted by Alfonse Reinheart
    "Fl_Gl_Window". You need to be more specific about what esoteric tools you're using).
    Fl_Gl_Window is an OpenGL window opened by 'Fltk', which is a GUI design utility. I use it quite a bit. In fact I do most of my serious OpenGL in Fltk windows. The small, demo, programs I post on this forum are done with Glut windows. Not sure why the poster is mixing windows like this. Seems to me he's making it hard on himself. For more on FLTK go to - www.fltk.org
    Am I doing your homework for you?

  4. #4
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    6

    Re: Problem with opengl -Its URGENT

    Thanks for the reply guys..

    I would like to give some more details. which goes..
    I have created a Fl_Window in which i have created a glut window
    and in a corner i have created a Fl_Window subwindow on which i have created a Fl_Gl_Window which means i am trying to create 2 separate entities one of glut window and other a Fl_Gl_Window and i want them to operate separately but there seems to be some connection between them which is causing the problem.

    To elaborate:
    i am trying to draw a rectangle on the Fl_Gl_Window on Fl_Drag mouse event but until i drag on or move the cursor on the glut window the drag operation on the Fl_Gl_Window doesnt work..

    I don't know what could be the problem

  5. #5
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Problem with opengl -Its URGENT

    As explained above, if you want to use FLTK and OpenGL, do not use glut at all :
    http://www.fltk.org/doc-2.0/html/index.html

  6. #6
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    6

    Re: Problem with opengl -Its URGENT

    Thanks for the reply ..
    But i am struck with it and have to use glut with Fl_Gl_Window(its required).Is there anything i can do to avoid this problem.

  7. #7
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Problem with opengl -Its URGENT


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •