Beginning Device-independent Graphics Programming with OpenGL (using GL, GLU & GLUT)

We have already set up GLUT and OpenGL [↗]. Now we can start writing codes from the ground up. Create an Empty C++ Win32 Console application and add a C++ source file. Add necessary library headers as follow: #include <stdlib.h> #include <GL/glut.h> ‾ Note» alteration of order will cause generation of error message. Now let … Continue reading Beginning Device-independent Graphics Programming with OpenGL (using GL, GLU & GLUT)

Advertisements

OpenGL and glut in C++ with MS Visual Studio 2008 (MSVS9)

OpenGL support come with many IDEs, programming  environments and compilers. Likewise MSVS9 comes with built in support for OpenGL so that you can use all features of gl and glu libraries simply. To use glut support we need to download and add the glut support. Let us do both one by one. OpenGL (gl and … Continue reading OpenGL and glut in C++ with MS Visual Studio 2008 (MSVS9)