the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 22 lines 539 B view raw
1#include "stdafx.h" 2#include "SignModel.h" 3#include "ModelPart.h" 4 5SignModel::SignModel() 6{ 7 cube = new ModelPart(this, 0, 0); 8 cube->addBox(-12, -14, -1, 24, 12, 2, 0); 9 10 cube2 = new ModelPart(this, 0, 14); 11 cube2->addBox(-1, -2, -1, 2, 14, 2, 0); 12 13 // 4J added - compile now to avoid random performance hit first time cubes are rendered 14 cube->compile(1.0f/16.0f); 15 cube2->compile(1.0f/16.0f); 16} 17 18void SignModel::render(bool usecompiled) 19{ 20 cube->render(1/16.0f,usecompiled); 21 cube2->render(1/16.0f,usecompiled); 22}