|
-
Jun 16th, 2002, 04:32 PM
#1
OGL: Using OGL Code in Classes
I have a class called cube to keep track of my cubes, corner points and so on. In it I have a public function that is called DisplayCube(). In that function it has glBegin(GL_QUADS) and glEnd() with all the stuff to draw a cube for me. But when I put someCube.DisplayCube() in my RenderScence() I get linker errors for all my functions in my Init.h file...
I am #include-ing init.h in my cube class header file. But init.h has #ifndef... in it so whats going on? Can I only have glBegin(...) in the RenderScence Function? What can I do?
Thanks!
NOMAD
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|