mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
render refactoring
This commit is contained in:
parent
89d9447410
commit
88280f8002
6 changed files with 59 additions and 47 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue