mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 09:14:55 +00:00
28 lines
936 B
C++
28 lines
936 B
C++
#include "../../Platform/stdafx.h"
|
|
#include "TileEntityRenderer.h"
|
|
#include "TileEntityRenderDispatcher.h"
|
|
|
|
void TileEntityRenderer::bindTexture(ResourceLocation* location) {
|
|
Textures* t = tileEntityRenderDispatcher->textures;
|
|
if (t != nullptr) t->bind(t->loadTexture(location->getTexture()));
|
|
}
|
|
|
|
void TileEntityRenderer::bindTexture(const std::wstring& urlTexture,
|
|
ResourceLocation* location) {
|
|
Textures* t = tileEntityRenderDispatcher->textures;
|
|
if (t != nullptr)
|
|
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();
|
|
} |