Results 1 to 3 of 3

Thread: what do I need for an object ?

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

    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
    Member Contributor
    Join Date
    Feb 2001
    Location
    Slovakia
    Posts
    53

    Re: what do I need for an object ?

    Look at the NeHe object loading tutorial.

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

    Re: what do I need for an object ?

    thanks

Similar Threads

  1. Replies: 0
    Last Post: 10-28-2014, 08:51 PM
  2. Wrapping a cloth-like object around a hard object
    By jenny_wui in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 08-01-2012, 02:41 AM
  3. virtual object occluded by real object
    By deduu10 in forum OpenGL: Advanced Coding
    Replies: 16
    Last Post: 06-27-2012, 02:30 AM
  4. select object from multiple object and rotate
    By somnath in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-05-2011, 04:57 PM
  5. Textured object and normal colored object
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 12-17-2000, 12:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean