A
Ady
Hi,
I posted this a few days ago but it seems no one has replied any help much
appreciated.
I know that i have to serialise my class,
How could I pull out the value off offsetTextures and add it on to the
beginning of the file to get the offset to the start of my texture data.
typedef struct
{
float x0, y0, z0;
float x1, y1, z1;
float x2, y2, z2;
unsigned char r0,g0,b0;
} TRIANGLE;
typedef struct
{
char Id[4];
char Ver;
char header[90];
unsigned int offsetTextures;
TRIANGLE tri[];
} MyFile;
an example would be much appreciated.
Ady.
I posted this a few days ago but it seems no one has replied any help much
appreciated.
I know that i have to serialise my class,
How could I pull out the value off offsetTextures and add it on to the
beginning of the file to get the offset to the start of my texture data.
typedef struct
{
float x0, y0, z0;
float x1, y1, z1;
float x2, y2, z2;
unsigned char r0,g0,b0;
} TRIANGLE;
typedef struct
{
char Id[4];
char Ver;
char header[90];
unsigned int offsetTextures;
TRIANGLE tri[];
} MyFile;
an example would be much appreciated.
Ady.