A project to learn the basics of OpenGL.
FreeGLUT takes care of all the system-specific chores required for creating windows, initializing OpenGL contexts, and handling input events, to allow for trully portable OpenGL programs.
This will allow you to focus on OpenGL and not get bogged down with system specific nuances.
See FreeGLUT for more information.
mkdir _build
cd _build
Linux
cmake .. -DFREEGLUT_BUILD_DEMOS=OFF -DFREEGLUT_BUILD_STATIC_LIBS=OFF
make
make install
Windows
cmake .. -G "Visual Studio 10 Win64" -DFREEGLUT_BUILD_DEMOS=OFF -DFREEGLUT_BUILD_STATIC_LIBS=OFF
- Build using Visual Studio the solution
- Build
INSTALL.vcproj
Linux
export LD_LIBRARY_PATH=~/src/OpenGL-Basic/_install/lib64
~/src/OpenGL-Basic $ _install/bin/app
Windows
D:\src\OpenGL-Basic>_install\bin\app.exe
+
zoom-in
-
zoom-out
x
or X
rotate about X axis
y
or Y
rotate about Y axis
z
or Z
rotate about Z axis
space
reset view