PDA

View Full Version : tutorial opengl c++ objects and classes



06-12-2000, 04:06 AM
where is an opengl tutorial that has c++ objects displayed on the screen. With statments like
ballx.move(1,1,1);
if ballx.hit(bally){ballx.bounce();}

kev
06-12-2000, 06:02 AM
I', not quite sure what you mean?

If you want to use a C++ class structure to organise you drawing code then thats fine.
Its not much different to the tutorials you will find that use plain old C.

take a look at: http://codeguru.earthweb.com/opengl/oglwrapperclass.shtml

this is uses C++ and MFC but i guess you can get an idea.

kev.

[This message has been edited by kev (edited 06-12-2000).]