0

initial update of C code to work with textures object

This commit is contained in:
Aaron Griffith
2012-01-01 20:50:20 -05:00
parent c4a183b9b0
commit f9b0f8667b
5 changed files with 43 additions and 38 deletions

View File

@@ -65,18 +65,16 @@ typedef struct _RenderMode RenderMode;
/* in iterate.c */
typedef struct {
/* the ChunkRenderer object */
/* the ChunkRenderer object, and the chunk module */
PyObject *self;
/* important modules, for convenience */
PyObject *textures;
PyObject *chunk;
/* the Texture object */
PyObject *textures;
/* the current render mode in use */
RenderMode *rendermode;
/* the rest only make sense for occluded() and draw() !! */
/* the tile image and destination */
PyObject *img;
int imgx, imgy;
@@ -86,7 +84,9 @@ typedef struct {
unsigned char block;
unsigned char block_data;
unsigned char block_pdata;
PyObject *blockdata_expanded;
/* useful information about this, and neighboring, chunks */
PyObject *blockdatas;
PyObject *blocks;
PyObject *up_left_blocks;
PyObject *up_right_blocks;