|
|
@ -59,9 +59,9 @@ typedef struct |
|
|
// TODO: break up into poly vertex (index + uv) and surface vertex (index + light) shared between polygons. Will reduce this struct size to 4 bytes and eliminate duplicate light values. |
|
|
// TODO: break up into poly vertex (index + uv) and surface vertex (index + light) shared between polygons. Will reduce this struct size to 4 bytes and eliminate duplicate light values. |
|
|
typedef struct |
|
|
typedef struct |
|
|
{ |
|
|
{ |
|
|
|
|
|
unsigned char r, g, b, pad; |
|
|
|
|
|
unsigned char u, v; |
|
|
unsigned short index; |
|
|
unsigned short index; |
|
|
unsigned short light; // Can be made into u_char if we need to store more data; currently u_short for 32-bit alignment purposes |
|
|
|
|
|
unsigned short u, v; // Can be made into u_char if we need to store more data; currently u_short for 32-bit alignment purposes |
|
|
|
|
|
} ps1bsp_polyvertex_t; |
|
|
} ps1bsp_polyvertex_t; |
|
|
|
|
|
|
|
|
// Faces are broken up into one or more polygons, each of which can be drawn as a quad/triangle strip with a single texture. |
|
|
// Faces are broken up into one or more polygons, each of which can be drawn as a quad/triangle strip with a single texture. |
|
|
|