render refactoring

This commit is contained in:
A-lex-Ra
2023-12-17 21:52:00 +06:00
parent 89d9447410
commit 88280f8002
6 changed files with 59 additions and 47 deletions
+2 -5
View File
@@ -64,12 +64,11 @@ class BlocksRenderer {
const glm::ivec3& laxisZ,
const UVRegion& region);
void face(const glm::ivec3& coord,
void face(const glm::vec3& coord,
const glm::ivec3& axisX,
const glm::ivec3& axisY,
const glm::ivec3& axisZ,
const glm::ivec3& laxisZ,
const glm::vec3& offset,
float width,
float height,
float depth,
@@ -87,9 +86,7 @@ class BlocksRenderer {
void blockCube(int x, int y, int z, const UVRegion(&faces)[6], ubyte group);
void blockCubeShaded(int x, int y, int z, const UVRegion(&faces)[6], const Block* block, ubyte states);
void blockAABB(const glm::ivec3& coord,
const glm::vec3& offset,
const glm::vec3& size,
void blockAABB(const glm::ivec3& coord,
const UVRegion(&faces)[6],
const Block* block,
ubyte rotation,