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 3 of 3

Thread: I have questions

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2001
    Location
    Lembang-Bandung, West Java, Indonesia
    Posts
    1

    I have questions

    I am just beginning in OpenGL..... say... a few days
    ago. I haven't had many source sample program in C++,
    but some in Delphi. But something I can't understand.
    Why all demo (in Delphi) source program in OpenGL
    never use reserved unit (OpenGL.pas) in their code?
    They always create their own unit even for loading
    OpenGL/GLU library.

    Now as I started programming, I found that
    ChoosePixelFormat() function cannot return a
    successful result unless the OpenGL32/GLU32 library
    are loaded. But, I couldn't found any documentation
    about that. Do I miss something or what?

    I am trying to use VC++ for programming OpenGL, as I
    am new in VC++ too. But an error occured when I tried
    to call wglMakeCurrent with error message sent by VC++
    IDE: "...unresolved external symbol
    __imp__wglMakeCurrent@4". What happened?

    Please help me, and thankyou for your concern.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Jan 2001
    Posts
    181

    Re: I have questions

    ChoosePixelFormat has "nothing" to do with opengl. it is an MS Windows specific function that sets up the device context opengl is running in. opengl itself is platform independed. so you can use it with linux, solaris, aix, beos, windows and so on if there is opengl available. opengl doesn't care for stuff like setting up resolutions and color depth. this part is left to the developer under a specific system.

    your unresolved external is caused by a missing library, called opengl32.lib. look into the thread "lost gl.h" (one above yours when i wrote this).

    regards,
    jan

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2001
    Posts
    6

    Re: I have questions

    just download a zip for your system, which includes all *.h, *.dll, and *.lib for micro$oft techs (not for borland)
    ->www.opengl.org

Posting Permissions

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