Skip to content

A practical way to learn the basics of OpenGL

Notifications You must be signed in to change notification settings

cognitivewaves/OpenGL-Basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL-Basic

A project to learn the basics of OpenGL.

Preview

FreeGLUT

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.

Build

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

Run

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

Application keys/commands

+ 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

About

A practical way to learn the basics of OpenGL

http://cognitivewaves.wordpress.com/

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published