PDA

View Full Version : what do I need for an object ?



McZ
10-09-2001, 04:01 AM
I want to make an object class but what do I need in it ?

class OGL_Object {
int *Index;
OGL_Vector *VertexList;
OGL_Vector *VertexNormals;
OGL_Color *Color;

void ReadObj(char *AseFile, char *ObjName);
void Draw();
};

thats how it looks at the moment but what do I need to add to use textures and stuff ? anyone else gott a class like this ? what do you have in yours ?

Fredy
10-09-2001, 07:18 AM
Look at the NeHe object loading tutorial.

McZ
10-09-2001, 07:59 AM
thanks http://www.opengl.org/discussion_boards/ubb/smile.gif