0

Add stained glass and stained glass panels

Note that this commit changes the pseudo-ancil-data type from unsigned
int to an unsigned short.  Our pseudoancil code creates 5 bits of data
to store adjacency information for glass.  Glass also has 4 bits for
color info.  This means we need a total of 9 bits to render these (thus
int --> short)
This commit is contained in:
Andrew Chin
2013-10-26 01:47:07 -04:00
parent 3eaa507d95
commit 46bda131f9
3 changed files with 35 additions and 18 deletions

View File

@@ -26,7 +26,7 @@
// increment this value if you've made a change to the c extesion
// and want to force users to rebuild
#define OVERVIEWER_EXTENSION_VERSION 43
#define OVERVIEWER_EXTENSION_VERSION 44
/* Python PIL, and numpy headers */
#include <Python.h>
@@ -108,7 +108,7 @@ typedef struct {
int x, y, z;
unsigned short block;
unsigned char block_data;
unsigned char block_pdata;
unsigned short block_pdata;
/* useful information about this, and neighboring, chunks */
PyObject *blockdatas;