0

separated normal and lighting render modes

This commit is contained in:
Aaron Griffith
2011-03-21 19:11:10 -04:00
parent 1872ccd690
commit 4a01a5fb7b
3 changed files with 115 additions and 58 deletions

View File

@@ -17,9 +17,6 @@
#include "overviewer.h"
/* available render modes */
extern RenderModeInterface rendermode_normal;
static PyObject *textures = NULL;
static PyObject *chunk_mod = NULL;
static PyObject *blockmap = NULL;
@@ -82,8 +79,7 @@ chunk_render(PyObject *self, PyObject *args) {
state.chunk = chunk_mod;
/* set up the render mode */
/* FIXME deciding on correct rendermode */
RenderModeInterface *rendermode = &rendermode_normal;
RenderModeInterface *rendermode = get_render_mode(&state);
void* rm_data = malloc(rendermode->data_size);
if (rendermode->start) {
if (rendermode->start(rm_data, &state)) {