View Full Version : Learn from seeing
02-06-2001, 09:49 AM
I am taking a class that uses opengl and I learn best by looking at others code and learning from how they approach things. The problem I have run into is that people use things like "GLunit" and my book does not tell me what it does. Is there a book out there that just gives a definition of what all the routines do. I don't want to copy code I want to understand it so I can then write what I need to do. This weeks assignment is to write a game like the old pong game. Any ideas? Thanks. Got to keep it simple as I only have two weeks into this http://www.opengl.org/discussion_boards/ubb/smile.gif
02-06-2001, 10:03 AM
GLuint is implemented as a typedef everywhere. Since OpenGL is intended to be platform independent, it's data types have also to be. Where a simple int may have 32 bit on one platform and 64 bit on another newer one, GLint is guaranteed to be 32 bit signed integer. This helps a lot writing portable code.
02-06-2001, 10:05 AM
I can't recommend any particular book, but for the ultimate authority on OpenGL, get the OpenGL specs: http://www.opengl.org/developers/documentation/OpenGL12.html
02-06-2001, 11:55 AM
GLuint is a data type like int. It's not a function. BTW, I think the best source if you just want to hit the ground running would be to check out the OpenGL tutorials over at nehe.gamedev.net.
02-06-2001, 12:02 PM
Did I say it would be a function?
02-07-2001, 12:06 AM
no Michael you didn't.... http://www.opengl.org/discussion_boards/ubb/wink.gif
as books i know the so called red book (OpenGL Programming Guide) or OpenGl Superbible.
AU Student you also might try this link http://www.eecs.tulane.edu/www/graphics/doc/OpenGL-Man-Pages/opengl_index_alpha.html
there you have all OpenGL things including glut and some extensions
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.