* Initial commit.

:)
This commit is contained in:
iProgramInCpp
2023-07-30 22:22:02 +03:00
commit 9642818a88
613 changed files with 151754 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
#include "Utils.hpp" // include the utils only to let us know what enhancements we have
#if defined(ENH_ALLOW_SAND_GRAVITY)
#include "FallingTileRenderer.hpp"
#include "FallingTile.hpp"
FallingTileRenderer::FallingTileRenderer()
{
field_4 = 0.5f;
}
void FallingTileRenderer::render(Entity* entity, float x, float y, float z, float a6, float a7)
{
FallingTile* fallingTile = (FallingTile*)entity;
glPushMatrix();
glTranslatef(x, y, z);
bindTexture(C_TERRAIN_NAME);
// @NOTE: Useless assignment. Already being done by the renderTile function
Tesselator::instance.color(1.0f, 1.0f, 1.0f);
// Render the base
#ifdef ENH_SHADE_HELD_TILES
#define ARGPATCH , 1.0f
#else
#define ARGPATCH
#endif
m_tileRenderer.renderTile(Tile::tiles[fallingTile->m_id], 0 ARGPATCH);
glPopMatrix();
#ifdef ARGPATCH
#undef ARGPATCH
#endif
}
#endif