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: Setting up OpenGL ( for VC++)

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    London, UK
    Posts
    1

    Setting up OpenGL ( for VC++)

    I am an experienced VC++ programmer and I want to start learning to combine OpenGL in
    my Visual C++ project. It is not clear from
    the OpenGL website whether I can get the OpenGL for developers from my Windows NT or can I download it from somewhere or is it a
    CD i should buy from a dealer ?
    How can I get it and how do i make my Visual Studio project recognise it ?
    Help ! Thanks !

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    354

    Re: Setting up OpenGL ( for VC++)

    You have all you need in VC++.
    #include <GL/gl.h>
    link to opengl32.lib
    That's it.

    You can download complete working examples from NeHe : http://nehe.gamedev.net (see OpenGL Tutorials; each has a VC++ project for download)

  3. #3
    Junior Member Regular Contributor
    Join Date
    Sep 2001
    Posts
    107

    Re: Setting up OpenGL ( for VC++)

    Another simple example is Display3DS .

    Within the zip file is another zip file containing full sources.

    Just expand that project zip file to a working directory (preserving the sub-directory structure) and double-click on the Display3DS.dsw workspace file to launch VC++ with all the correct settings, libraries, etc.

    If you're using vc++ v7.0 (i.e. .Net), make sure you also designate the Display3DS mainline as your 'Startup Project'.

    Then, just 'Build' the app and start tinkering.

    Good luck,
    /p2

    [This message has been edited by ppinter1 (edited 07-08-2003).]

Posting Permissions

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