Jump to content
  • Advertisement
Sign in to follow this  
Numb3rz

OpenGL where to get gtool.h and where to put it.

This topic is 4034 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I'm reading the Blue Book OpenGL SuperBible 07, and I've run across my first program which is quite simple.
#include “../../shared/gltools.h" // OpenGL toolkit
///////////////////////////////////////////////////////////
// Called to draw scene
void RenderScene(void)
{
// Clear the window with current clearing color
glClear(GL_COLOR_BUFFER_BIT);
// Flush drawing commands
glFlush();
}
///////////////////////////////////////////////////////////
// Set up the rendering state
void SetupRC(void)
{
glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
}
///////////////////////////////////////////////////////////
// Main program entry point
void main(void)
int main(int argc, char* argv[])
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA);
glutCreateWindow(“Simple");
glutDisplayFunc(RenderScene);

SetupRC();
glutMainLoop();
return 0;
}


However, I can't find gtools.h and I definitely don't know where to find it. I got a book from a friend who decided not to read it for some reason over his head or something, and I don't know if it comes with a CD or not, but he didn't give me one. I'm running Code Blocks nightly builds and the latest MinGW compiler, so I thought I would look into the MinGW include folder and see what openGL stuff I have over in there. I don't have gtools.h I have gl.h glext.h glut.h glee.h glu.h but no gtools.h when I googled OpenGL gtools.h the only thing I got was one page http://www.google.com/search?hl=en&q=OpenGL+gtools.h&btnG=Search and that one page was a dead link. I guess I'll run with the Red Book until somebody points me in the right direction for the gtools.h Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!