Skip to content

This is a XCode project with the GLSL examples from the Lighthouse3s GLSL 1.2 tutorial.

Notifications You must be signed in to change notification settings

heitorfr/glsl_tutorial_osx

Repository files navigation

#GLSL Tutorial This is a XCode project with the GLSL examples from the Lighthouse3s GLSL 1.2 tutorial. These examples use the libraries GLUT and GLEW. The project assumes the GLEW library is installed in /usr/local/bin. You can install it here with homebrew:

brew install glew

If you use other location, you'll have to add libGLEW.a from the correct location to the 'Link Binary With Libraries' build phase and set the correct path in 'Headers Search Paths' for each target.

##Tartgets

Currently the following targets are included:

  • setup - from the section 'Setup for GLSL – Example'
  • uniform - section 'Uniform Variables'
  • attribute - section 'Attribute Variables'
  • attribute_array - also from the section 'Attribute Variables'
  • hello_world - section 'Hello World in GLSL'
  • color - section 'Color Shader'
  • flatten - section 'Flatten Shader'

Only minor changes where made to the original source, essentialy the GLUT imports where changed to use the GLUT Framework in OSX, and some warnings where fixed. Some file names where changes to avoid colision between examples.

About

This is a XCode project with the GLSL examples from the Lighthouse3s GLSL 1.2 tutorial.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published