open gl redbook

how to get the examples to work

Page 1 of 1

2 Replies - 3687 Views - Last Post: 14 November 2007 - 11:20 AM Rate Topic: -----

#1 flosy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 15-July 07

open gl redbook

Posted 14 November 2007 - 07:19 AM

Hi I have been reading the open gl redbook but cant get any of the examples to compile. It dosent explane what files that I need to instal paramiters I need to get and set and so on.
hear is the code

Quote

#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glx.h>
#include "aux.h"

or at least the bit thats inportant to my question.
I got the nehi tutorials to work but the way that the program,s where presented was a bit to diferent from standerd c++. I am using the dev-c++ compiler and have the (gl.h) (glu.h) but not the (aux.h) or the (glx) files. Can anyone help me get a copy of these files. Also I am not that sure whare to put them I think for the <gl/...> ones it is the gl folder in the include folder. And the "aux.h" file I have no idea. If you know or have got this tutorial to work on dev-c++ please tell me.

Is This A Good Question/Topic? 0
  • +

Replies To: open gl redbook

#2 WolfCoder  Icon User is offline

  • Isn't a volcano just an angry hill?
  • member icon


Reputation: 781
  • View blog
  • Posts: 7,604
  • Joined: 05-May 05

Re: open gl redbook

Posted 14 November 2007 - 10:47 AM

Usually with these kind of libraries, you need to include the .lib files (or whatever) with your project. For example, I had to set dinput.lib to my project libraries for it to work as well as the headers.
Was This Post Helpful? 0
  • +
  • -

#3 girasquid  Icon User is offline

  • Barbarbar
  • member icon

Reputation: 108
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: open gl redbook

Posted 14 November 2007 - 11:20 AM

Try changing the paths - I had to get it to work by using this, at one point:
#import <glut/gl.h>
#import <glut/glu.h>
#import <glut/glx.h>


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1