0

major textures.py restructuring, not all textures implemented (Issue #516)

Be careful -- the build_* and transform_* functions no longer have a
blockID argument, because that made no sense.
This commit is contained in:
Aaron Griffith
2011-10-31 20:57:05 -04:00
parent 8e0a82ba62
commit 4b905685eb
3 changed files with 175 additions and 1988 deletions

View File

@@ -20,7 +20,6 @@
static PyObject *textures = NULL;
static PyObject *chunk_mod = NULL;
static PyObject *blockmap = NULL;
static PyObject *special_blocks = NULL;
static PyObject *transparent_blocks = NULL;
PyObject *init_chunk_render(PyObject *self, PyObject *args) {
@@ -46,9 +45,6 @@ PyObject *init_chunk_render(PyObject *self, PyObject *args) {
blockmap = PyObject_GetAttrString(textures, "blockmap");
if (!blockmap)
return NULL;
special_blocks = PyObject_GetAttrString(textures, "special_blocks");
if (!special_blocks)
return NULL;
transparent_blocks = PyObject_GetAttrString(textures, "transparent_blocks");
if (!transparent_blocks)
return NULL;