A
Ady
Hi,
I am trying to create an editor and the structure of our existing files are
as follows.
In C# how would I read the following binary data from a file and convert it
into usable data.
// c code
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 version;
TRIANGLE[];
}
Any help appreciated
Ady.
I am trying to create an editor and the structure of our existing files are
as follows.
In C# how would I read the following binary data from a file and convert it
into usable data.
// c code
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 version;
TRIANGLE[];
}
Any help appreciated
Ady.