PDA

View Full Version : opengl can't it be done with c++



srikirti
12-11-2002, 02:59 AM
i tried to write a program in opengl in the
C++ style.
what happend is that while creating a class i could only include the initialization function as the member of the class but not any other function. if i included drawing or the reshape function as the member then
i have to access them in the following way

glutReshapeFunc(obj.reshape);
which is not allowed.
what to do?

Bob
12-11-2002, 03:07 AM
See this (http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/010997.html) recent thread for explanation.