Skip to content

Commit

Permalink
Create custom block renderers
Browse files Browse the repository at this point in the history
  • Loading branch information
Byteandahalf committed Apr 25, 2014
1 parent 8e94fa8 commit 386b1a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jni/modscript_nextgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static void (*bl_ClientSideNetworkHandler_handleMessagePacket_real)(void*, void*
static void** bl_MessagePacket_vtable;

// Custom block renderers
static void (*bl_TileRenderer_tesselateInWorld)(Tile*, int, int, int);
static void (*bl_TileRenderer_tesselateInWorld_real)(Tile*, int, int, int);

static void (*bl_TileRenderer_tesselateBlockInWorld)(Tile*, int, int, int);
static void (*bl_TileRenderer_tesselateCrossInWorld)(Tile*, int, int, int);
Expand Down Expand Up @@ -1241,7 +1241,7 @@ void bl_setuphooks_cppside() {
bl_initCustomBlockVtable();

// This method switches out the Tile* render type and calls into the render type's respective tesselator
bl_TileRenderer_tesselateInWorld = (void(*)(Tile*, int, int, int)) dlsym(RTLD_DEFAULT, "_ZN12TileRenderer16tesselateInWorldEP4Tileiii");
bl_TileRenderer_tesselateInWorld_real = (void(*)(Tile*, int, int, int)) dlsym(RTLD_DEFAULT, "_ZN12TileRenderer16tesselateInWorldEP4Tileiii");


// To render a standard block into the world; Use Tile::setShape to change the size and shape of it
Expand Down

0 comments on commit 386b1a2

Please sign in to comment.