Cleaned up Cube (#48)

* Cleaned up Cube
* Refactor/cleanup & documentation of Cube
* Renamed Tesselator to Tessellator

* Revert "Tesselator" Spelling Correction

---------

Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
This commit is contained in:
Brent
2023-08-11 03:53:50 -05:00
committed by GitHub
parent ce6c2eb553
commit b45cfc1e16
11 changed files with 129 additions and 239 deletions

View File

@@ -30,8 +30,8 @@ void TripodCameraRenderer::render(Entity* entity, float x, float y, float z, flo
{
glPushMatrix();
glTranslatef(x, y, z);
m_cube.field_C = 0.017453f * (180.0f + 0.5f * entity->m_pitch);
m_cube.field_10 = -0.017453f * entity->m_yaw;
m_cube.m_rotX = 0.017453f * (180.0f + 0.5f * entity->m_pitch);
m_cube.m_rotY = -0.017453f * entity->m_yaw;
Tesselator& t = Tesselator::instance;
t.color(1.0f, 1.0f, 1.0f);