mirror of
https://github.com/Patoke/LCERenewed.git
synced 2026-08-05 21:36:54 +00:00
feat: init
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#include "stdafx.h"
|
||||
#include "TileEntityRenderer.h"
|
||||
#include "TileEntityRenderDispatcher.h"
|
||||
|
||||
void TileEntityRenderer::bindTexture(ResourceLocation *location)
|
||||
{
|
||||
Textures *t = tileEntityRenderDispatcher->textures;
|
||||
if(t != NULL) t->bind(t->loadTexture(location->getTexture()));
|
||||
}
|
||||
|
||||
void TileEntityRenderer::bindTexture(const wstring& urlTexture, ResourceLocation *location)
|
||||
{
|
||||
Textures *t = tileEntityRenderDispatcher->textures;
|
||||
if(t != NULL) t->bind(t->loadHttpTexture(urlTexture, location->getTexture()));
|
||||
}
|
||||
|
||||
Level *TileEntityRenderer::getLevel()
|
||||
{
|
||||
return tileEntityRenderDispatcher->level;
|
||||
}
|
||||
|
||||
void TileEntityRenderer::init(TileEntityRenderDispatcher *tileEntityRenderDispatcher)
|
||||
{
|
||||
this->tileEntityRenderDispatcher = tileEntityRenderDispatcher;
|
||||
}
|
||||
|
||||
Font *TileEntityRenderer::getFont()
|
||||
{
|
||||
return tileEntityRenderDispatcher->getFont();
|
||||
}
|
||||
Reference in New Issue
Block a user