Skip to content

thisIsRasel/highway-driving-opengl

Repository files navigation

Highway-Driving-OpenGL

Install freeglut

Install freeglut in your machine. Freeglut files are provided in this repository. You can also download freeglut from this url: http:https://freeglut.sourceforge.net/

For setting up freeglut in code block follow these steps:

  1. Copy \freeglut\freeglut.dll to C:\Windows\System32 for 32-bit or C:\Windows\SysWOW64 for 64-bit

  2. Copy \freeglut\lib\freeglut.lib to \MinGW\lib (i.e., C:\Program Files\CodeBlocks\MinGW\lib), and

  3. Copy \freeglut\include\GL to MinGW\include\GL (i.e., C:\Program Files\CodeBlocks\MinGW\include)

  4. Create Glut project from Code::Blocks. if in any step it requires GLUT location show the path upto MinGW that includes lib and include folder (i.e., C:\Program Files\CodeBlocks\MinGW).

  5. Add \MinGW\lib\libopengl32.a and \MinGW\lib\freeglut.lib (i.e., C:\Program Files\CodeBlocks\MinGW\lib\freeglut.lib) from Settings > Compiler & Debugger > Linker Settings.

These are default locations, your paths may be different. But basically, you place the .lib and .h files in the location of your compiler (in this case mingw). The .dll file goes in the windows system directory.

Install SOIL(Simple OpenGL Image Library)

For texturing image download and install SOIL. Follow this url: https://www.lonesock.net/soil.html

For setting up SOIL follow these steps:

  1. Copy \SOIL\lib\libSOIL.a to \MinGW\lib (i.e., C:\Program Files\CodeBlocks\MinGW\lib)
  2. Copy \SOIL\include\SOIL.h to \MinGW\include (i.e., C:\Program Files\CodeBlocks\MinGW\include)
  3. Add \MinGW\lib\libopengl32.a and \MinGW\lib\libSOIL.a (i.e., C:\Program Files\CodeBlocks\MinGW\lib\freeglut.lib) from Settings > Compiler & Debugger > Linker Settings.

Note: Both 32-bit and 64-bit freeglut files are provided with this repository and you may need to link more libraries from Linker settings.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages