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 10 of 14

Thread: Question about GLEW.

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    7

    Post Question about GLEW.

    I use GLEW on MS-Windows.
    It's helpful and do many works ..

    But ,till now,I can't find a way to init GLEW without creating a HGLRC and it also means I should create a window first..

    Without the help of GLEW I can't use the the new functions newer than OpenGL 1.1 on MS-Windows such a glGenBuffers or others..

    But I really don't want to create a window before I render to the FBOs,any way ?

    May be we can find the functions from the driver's dll file of display card but I thinks it's not a right way to me..

  2. #2
    Intern Contributor nigels's Avatar
    Join Date
    Apr 2000
    Location
    Texas, USA
    Posts
    85
    You need an OpenGL context to initialize GLEW - a HGLRC shouldn't be necessary.
    Are the useful OpenGL functions that don't require an OpenGL context these days?

    - Nigel
    ---
    Regal - as OpenGL ought to be

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    7
    Yet It's true - a OpenGLContext..
    But if there's now HGLRC I can't use the functions for create FBO or other object.
    Then I have no other way to create a context for initing GLEW..
    With out the help of GLEW I can't find a way to use the new functions...

    Quote Originally Posted by nigels View Post
    You need an OpenGL context to initialize GLEW - a HGLRC shouldn't be necessary.
    Are the useful OpenGL functions that don't require an OpenGL context these days?

    - Nigel

  4. #4
    Intern Contributor nigels's Avatar
    Join Date
    Apr 2000
    Location
    Texas, USA
    Posts
    85
    Yes, you're stuck. I'd point to it a bit more being a Windows limitation, than a GLEW one, is all.

    - Nigel
    ---
    Regal - as OpenGL ought to be

  5. #5
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    7
    Quote Originally Posted by nigels View Post
    Yes, you're stuck. I'd point to it a bit more being a Windows limitation, than a GLEW one, is all.

    - Nigel
    Will you please show me the right way to render scence without creating a "window"?
    You know Ms-Windows only support OpenGL 1.1 by default .
    So I need to find a way to use the functions supplied by OpenGL 3.xx or 4.xx
    Yes,GLEW show me the way but I must create a OpenGL context first then init glew then glew show me the functions .
    I have to create a window then get the dc then create the OpenGL context .. Such a rolling ,I'm rolling in the deep...

    Any way directly ?

  6. #6
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,793
    You must create a window in order to create an OpenGL context. Any attempt to destroy this window will also destroy the OpenGL context.

    You can try to use this context to create a windowless context (a pbuffer), but really, you could just create it minimized and remove it from the task bar if you don't want anyone to know you created it.

Posting Permissions

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