aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/SignModel.cpp
blob: 608898c1f9b1cb85f7a1d6de15c769f8a1b39e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "stdafx.h"
#include "SignModel.h"
#include "ModelPart.h"

SignModel::SignModel()
{
    cube = new ModelPart(this, 0, 0);
    cube->addBox(-12, -14, -1, 24, 12, 2, 0);
        
    cube2 = new ModelPart(this, 0, 14);
    cube2->addBox(-1, -2, -1, 2, 14, 2, 0);

	// 4J added - compile now to avoid random performance hit first time cubes are rendered
	cube->compile(1.0f/16.0f);
    cube2->compile(1.0f/16.0f);
}

void SignModel::render(bool usecompiled)
{
	cube->render(1/16.0f,usecompiled);
	cube2->render(1/16.0f,usecompiled);
}