generated from RuiFPB/tyra-linux-template
Rendering minecraft Blocks using the MinecraftPipeline
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <tyra>
|
||||
|
||||
namespace Test {
|
||||
|
||||
class Block {
|
||||
public:
|
||||
Block();
|
||||
Block(const Block& v);
|
||||
~Block();
|
||||
|
||||
void updateModelMatrix();
|
||||
|
||||
Tyra::M4x4 translation, rotation, scale;
|
||||
|
||||
// Result matrix after transformations
|
||||
Tyra::M4x4 modelMatrix;
|
||||
|
||||
Tyra::Color color;
|
||||
|
||||
Tyra::Vec4 atlasOffset;
|
||||
|
||||
Tyra::McpipBlock renderData;
|
||||
|
||||
private:
|
||||
void setRenderData();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user