-static void renderBlockGrid(const BlockGrid grid) {
- glMatrixMode(GL_MODELVIEW);
- for (size_t z = 0; z < grid.depth; ++z) {
- glLoadIdentity();
- glTranslatef(0.0f, 0.0f, z * BLOCKGRID_CELL_SIZE);
- for (size_t x = 0; x < grid.width; ++x) {
- drawSolid(getBlockFromGrid(grid, x, z)->solid);
- glTranslatef(BLOCKGRID_CELL_SIZE, 0.0f, 0.0f);
- }
- }
- glLoadIdentity();
-}
-
-static void renderCharacter(const Character* character, const Vector3D pos) {
- glMatrixMode(GL_MODELVIEW);
- glTranslatef(pos.x, pos.y, pos.z);
- drawSolid(character->solid);
- glLoadIdentity();
-}
-