Posts

Showing posts with the label OpenGL

Using OpenGL in Microsoft Visual Studio

Image
Getting started with using OpenGL / freeglut in a Microsoft Visual Studio environment for 32 bit versions. 1. Obtain freeglut Go to the freeglut site to obtain the MSVC package: http://www.transmissionzero.co.uk/software/freeglut-devel/ At the time of writing this demonstration we obtain version 3.0.0 in zip file format: http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MSVC.zip 2. Obtain glew http://sourceforge.net/projects/glew/files/glew/ At the time of writing this demonstration we obtain version 1.13.10 in zip file format: http://sourceforge.net/projects/glew/files/latest/download?source=files 3. Place freeglut and glew in the location of your choice: 4. Create a new empty project in Visual Studio Add your main.cpp source code file. Don't have to put anything in it for the time being: 5. Set the Additional Include Directories Select project properties > C/C++ > General tab > Additional Include Directories. Do thi...

Getting Started with OpenGL for Windows

Image
For setting up OpenGL in Ubuntu Linux, please see this post , otherwise for Windows / Visual Studio environments, please use these following instructions: 1. Download the latest Windows drivers As stated on the OpenGLs wiki page , OpenGL more or less comes with the Windows operating system. You will need to ensure your PC has the latest drivers for your graphics hardware, however. Without these drivers, you will probably default to the software version of OpenGL 1.1 which is considerably slower.