opengl can't it be done with c++

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

which is not allowed.
what to do?

See this recent thread for explanation.