How to Install OpenGL on CodeBlocks

Mahmud HasanC++, Graphics, OpenGL, Tutorial, WindowsLeave a Comment


In this tutorial you will learn How to Install OpenGL on CodeBlocks only with 10 Easy Step. 1. Try to install Code:: Blocks 12.11 version; later versions may face some Compiler conflicts. 2. Copy glut32.dll to c:\windows\system 3. Copy glut.h to C:\Program Files\CodeBlocks\MinGW\include\GL. OR C:\Program Files (x86)\CodeBlocks\MinGW\include\GL. 4. Copy glut32.lib to C:\Program Files\CodeBlocks\MinGW\lib OR C:\Program Files (x86)\CodeBlocks\MinGW\lib 5. Now you’re ready to … Read More

Computer Graphics With OpenGL and C++

Mahmud HasanC++, OpenGL, WindowsLeave a Comment


This simple 2D graphics is created with OpenGl and C++. Run with Codeblocks  for best results. However, use this only for study purposes. Download the source code and let me know what you think. I will try to update this one or create some new ones soon. Cheers!   Code: #include <windows.h> #include <GL/glut.h> #include <GL/glu.h> #include<math.h> #include <stdlib.h> #include<stdio.h> #define PI … Read More