forked from Vogtinator/crafti
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredstoneblockrenderer.cpp
More file actions
27 lines (21 loc) · 910 Bytes
/
Copy pathredstoneblockrenderer.cpp
File metadata and controls
27 lines (21 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <cstdlib>
#include "redstoneblockrenderer.h"
void RedstoneBlockRenderer::geometryNormalBlock(const BLOCK_WDATA /*block*/, const int local_x, const int local_y, const int local_z, const BLOCK_SIDE side, Chunk &c)
{
BlockRenderer::renderNormalBlockSide(local_x, local_y, local_z, side, terrain_atlas[10][1].current, c);
}
void RedstoneBlockRenderer::drawPreview(const BLOCK_WDATA /*block*/, TEXTURE &dest, int x, int y)
{
BlockRenderer::drawTextureAtlasEntry(*terrain_resized, terrain_atlas[10][1].resized, dest, x, y);
}
PowerState RedstoneBlockRenderer::powersSide(const BLOCK_WDATA /*block*/, BLOCK_SIDE /*side*/)
{
return PowerState::StronglyPowered;
}
const TerrainAtlasEntry &RedstoneBlockRenderer::destructionTexture(const BLOCK_WDATA /*block*/) {
return terrain_atlas[10][1];
}
const char *RedstoneBlockRenderer::getName(const BLOCK_WDATA)
{
return "Redstone Block";
}