Install and setup vc and opengl
1 / 8

Install and Setup VC++ and OpenGL - PowerPoint PPT Presentation

  • Uploaded on

Install and Setup VC++ and OpenGL. Introduction to Computer Graphics and Animation (Principle of Computer Graphics) Rattapoom Waranusast. Installing OpenGL for Windows with VC++ 2010 Express. Install Visual C++ 2010 Express

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
Download Presentation

PowerPoint Slideshow about ' Install and Setup VC++ and OpenGL' - jesus

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Install and setup vc and opengl

Install and SetupVC++ and OpenGL

Introduction to Computer Graphics and Animation

(Principle of Computer Graphics)

Rattapoom Waranusast

Installing opengl for windows with vc 2010 express
Installing OpenGL for Windowswith VC++ 2010 Express

  • Install Visual C++ 2010 Express

    • Go to download the VC++ 2010 Express

    • Install and Register the product

  • Install GLUT Library

    • Go to download (117 KB)

    • Copy glut32.dll to “C:\Windows\System32”

    • Copy glut32.lib to “C:\Program Files\Microsoft Visual Studio 10.0\VC\lib”

    • Copy glut.h to “C:\Program Files\Microsoft Visual Studio 10.0\VC\Include\gl”Note that you may have to create the gl directory.

    • Note that for newer and more active version of GLUT, try freeglut at and

  • Done!!

Using opengl in vc 2010
Using OpenGL in VC++ 2010

  • Start VC++ 2010 Express Edition

  • Under the File menu select New -> Project

  • In the New Project Types window, select Visual C++ - Win32 on the left hand side and select Win32 Console Application on the right hand side, and uncheck “Create directory for solution” box.

  • Specify name and location of the project

  • In the Win32 Application Wizard window, select the Application Settings; then select the Application type as Console application, and tick the check box in front of Empty Project.

  • Click Finish.

  • Now the project is open; go to Project menu; select Add New Item.

  • Select Visual C++ Code, and a C++ file (.cpp); name the file and click Add.

  • Code whatever you want to this file or copy from existing .cpp file.

  • Save and build your project by going to Debug -> Build Solution. Then execute the program with Debug -> Start Debugging. If the program has been built successfully, then you should see no error in the output window.

  • Congratulations!

Glut stdlib conflict exit
Glut & stdlib conflict 'exit'

  • For .net, GLUT may have a conflict with stdlib.h.

    • If so, try the following change in glut.h:

      extern _CRTIMP void __cdecl exit(int);


      extern _CRTIMP __declspec(noreturn) void __cdecl exit(int);

    • Or change sequence of

      #include <GL/glut.h>

      #include <stdlib.h>


      #include <stdlib.h>

      #include <GL/glut.h>

Opengl for borland c
OpenGL for Borland C++

  • Please visit web site for detail:






Installing ogl for java
Installing OGL for Java

  • Install Java Development Kit

    • Go to ,and follow the instruction to download and install Java SDK.

  • Install JOGL

    • Go to , and down load the software

  • Install a Java IDE

    • You might want to use Eclipse, jGRASP, JBuilder, or etc.

  • For more detail

    • go to

Opengl and linux
OpenGL and Linux

  • Linux

    • GLUT uses XWindows libraries

    • Check for /usr/include/gl/glut.h and gl.h

    • GCC is generally used to compile

    • OpenGL is either MESA (Software) or provided by your graphics card (Hardware)

      • Implementations of open specs

    • Program using any editor you like

    • Include <gl\gl.h> and <gl\glut.h>

      • gcc filename.c -o outputname -I/usr/X11R6/include/ -L/usr/X11R6/lib -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm

More on installing opengl for linux and other os s
More on Installing OpenGL for Linux and Other OS’s

  • Please refer to