1
General / OpenGL tutorial not working on mac
« on: February 26, 2012, 02:15:39 pm »
Thanks : ) it works now
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
// Set color and depth clear value
glClearDepth(1.f);
glClearColor(0.f, 0.f, 0.f, 0.f);
// Enable Z-buffer read and write
glEnable(GL_DEPTH_TEST);
glDepthMask(GL_TRUE);
// Setup a perspective projection
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(90.f, 1.f, 1.f, 500.f);