Original Post
i have the following class. and i want to be able to use the -> operator evrytime i need to acess something there... how can this be done another way without doing a typedef classname* othername after a class definition ?
and if this is possible wheni''m implementing my class how will the function def look like ?
i.e : bool classname::func (); .. whould it change ?
this is the class
class Render
{
public:
//Enable Opengl
bool Enable ();
//Disables Opengl
bool Disable ();
//Resize the scene with perspective views
void ResizeModelScene (int Width,int Height,float Start,float End);
private:
HWND Hwnd; //Handle to a window
HDC Hdc; //Handle to device context
HGLRC Hrc; //Handle to rendering context
};
typedef Render* Ogl_Obj; //<---- i dont want to do this...