Skip to content

nonpolarity/antons_opengl_tutorials_book

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Anton's OpenGL 4 Tutorials book demo code#

This series of demos accompanies the e-book "Anton's OpenGL 4 Tutorials": http://antongerdelan.net/opengl/

Copyright Dr Anton Gerdelan, Trinity College Dublin, Ireland. June 2014. email: anton at antongerdelan dot net

Info

See "LICENCE.txt" for licence information.

Each chapter with major demonstration code has a corresponding demo here. There is also an example of code for "Hello Triangle" for OpenGL 2.1 for reference.

Each demo has easy-to-read Makefiles for Linux, OS X, and 32-bit Windows. There are also Visual Studio projects.

##Compiling## The libraries reside in the common/ folder

  • common/include - header files
  • common/linux_i386 - 32-bit linux libraries
  • common/linux_x86_64 - 64-bit linux libraries
  • common/msvc110 - 32-bit Windows visual studio libraries
  • common/osx_64 - 64-bit apple OS X libraries
  • common/win32 - 32-bit Windows GCC (mingw) libraries

###Linux###

  • install the GNU Compiler Collection - usually by installing a "build-essentials" package via the package manager on your distribution.
  • open a terminal and cd to the demo of choice

64-bit systems:

make -f Makefile.linux64

32-bit systems:

make -f Makefile.linux32

###64-bit Apple OS X###

  • install the GNU Compiler Collection - usually by installing XCode
  • open a terminal and cd to the demo of choice

make -f Makefile.osx

###Windows with GCC###

I only provided 32-bit versions of the Makefile and libraries here. The 32-bit builds will run on all Windows machines - I use 32-bit builds on my 64-bit Windows. If you want to add a 64-bit build it's pretty easy to copy the 32-bit Makefile and change the folder. You will need to recompile GLFW, GLEW, AssImp, and Freetype though.

  • install the GNU Compiler Collection - usually by installing the MinGW toolkit. http://www.mingw.org/
  • open a console and cd to the demo of choice

make -f Makefile.win32

  • copy the .dll files from the main folder to the demo folder

###Windows with Visual Studio###

I provided some Visual Studio 2012 project files. You can find an overarching solution file in the main folder. This should convert well to most versions of visual studio. I used 32-bit versions of the libraries, but there's no reason that you can't add 64-bit versions if you prefer.

##SDL2 Port##

Dr Aidan Delaney at the University of Brighton has made an SDL2 port (as an alternative to using GLFW), which you can find on GitHub https://github.com/AidanDelaney/antons_opengl_tutorials_book/

About

Anton's OpenGL 4 Tutorials book - Demo Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 68.8%
  • C++ 30.0%
  • GLSL 1.1%
  • Objective-C 0.1%