for the past days I've been trying to draw a cube with object oriented openGL with C++
I am about to smack my head against the wall..
I've tried to do everything I can, and I am so confused,
see the attachment to see what i've come up with
What I want to get working is the ability to create the cube with this command
(in the main.cpp)
cube.set_rgb(set my color property)
cube.set_rotate(my rotation properties)
cube.set_translate(set my translation (ie location of cube))
cube.set_scale(set the size of my cube)
and then I want it to draw the cube, I think i've done the Set functions and Get Functions correctly with all the properties and etc..
now How do I get OpenGL to draw my cube.
Please help me, I am very new to C++ (in fact I just leanred OO Programming about 2-3 days ago).
I have done alot of OpenGL programming with C in structured form but I now I need to get OpenGL with OO working.
The code compiles but I didn't put in any openGL drawing code in there becasue I don't know where or how to.
Number of downloads: 511
This post has been edited by Ti22: 11 January 2005 - 03:08 PM