Dominik
07-31-2001, 01:20 AM
Hi,
at the moment I am using GL_TRIANGLES to draw my faces. I read thought the Red Book and found i even can use FANS and STRIPS. But how can I convert a tiangle bases 3D object to a object that is optimized for triangles strips?
My object looks like this:
struct
{
float x;
float y;
float z;
} veclist;
struct
{
int a;
int b;
int c;
} face;
struct
{
int facecount;
face *faces;
veclist *list;
} object;
I even got some more variables (texture, dimension, normal, u, v).
at the moment I am using GL_TRIANGLES to draw my faces. I read thought the Red Book and found i even can use FANS and STRIPS. But how can I convert a tiangle bases 3D object to a object that is optimized for triangles strips?
My object looks like this:
struct
{
float x;
float y;
float z;
} veclist;
struct
{
int a;
int b;
int c;
} face;
struct
{
int facecount;
face *faces;
veclist *list;
} object;
I even got some more variables (texture, dimension, normal, u, v).