|
|
|
@ -40,13 +40,15 @@ void world_load(const u_long *data, world_t *world) |
|
|
|
|
|
|
|
void world_draw(const world_t *world) |
|
|
|
{ |
|
|
|
SVECTOR vecs[3]; |
|
|
|
int p; |
|
|
|
|
|
|
|
// The world doesn't move, so we just set the camera view-projection matrix |
|
|
|
gte_SetRotMatrix(&vp_matrix); |
|
|
|
gte_SetTransMatrix(&vp_matrix); |
|
|
|
|
|
|
|
mem_scratch_reset(); |
|
|
|
SVECTOR *vecs = mem_scratch(sizeof(SVECTOR) * 3); |
|
|
|
|
|
|
|
for (int faceIdx = 0; faceIdx < world->header->numFaces; ++faceIdx) |
|
|
|
{ |
|
|
|
const ps1bsp_face_t *face = &world->faces[faceIdx]; |
|
|
|
|