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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user