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

@@ -59,6 +59,11 @@ typedef struct {
unsigned char block;
PyObject *blocks;
} RenderState;
int init_chunk_render(void);
int is_transparent(unsigned char b);
PyObject *chunk_render(PyObject *self, PyObject *args);
/* in rendermode.c */
typedef struct {
/* the size of the local storage for this rendermode */
unsigned int data_size;
@@ -71,8 +76,7 @@ typedef struct {
/* last two arguments are img and mask, from texture lookup */
void (*draw)(void *, RenderState *, PyObject *, PyObject *);
} RenderModeInterface;
int init_chunk_render(void);
int is_transparent(unsigned char b);
PyObject *chunk_render(PyObject *self, PyObject *args);
/* figures out the render mode to use from the given ChunkRenderer */
RenderModeInterface *get_render_mode(RenderState *state);
#endif /* __OVERVIEWER_H_INCLUDED__ */