Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: what do I need for an object ?

  1. #1
    Junior Member Regular Contributor
    Join Date
    Dec 2000
    Location
    Årsunda,gästrikland,Sweden
    Posts
    146

    what do I need for an object ?

    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 ?

  2. #2
    Intern Contributor
    Join Date
    Feb 2001
    Location
    Slovakia
    Posts
    54

    Re: what do I need for an object ?

    Look at the NeHe object loading tutorial.

  3. #3
    Junior Member Regular Contributor
    Join Date
    Dec 2000
    Location
    Årsunda,gästrikland,Sweden
    Posts
    146

    Re: what do I need for an object ?

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •