generated from RuiFPB/tyra-linux-template
33 lines
580 B
C++
33 lines
580 B
C++
#pragma once
|
|
|
|
#include <tyra>
|
|
#include "block.hpp"
|
|
|
|
namespace Test {
|
|
|
|
class RenderTest : public Tyra::Game {
|
|
public:
|
|
RenderTest(Tyra::Engine* engine);
|
|
~RenderTest();
|
|
|
|
void init();
|
|
void loop();
|
|
|
|
private:
|
|
Tyra::Engine* engine;
|
|
Tyra::Texture* textureAtlas;
|
|
|
|
Tyra::MinecraftPipeline mcpip;
|
|
Tyra::Vec4 cameraPosition, cameraLookAt;
|
|
|
|
void loadTexture();
|
|
Block getBlock(const u8& atlasX, const u8& atlasY, const float& translationX);
|
|
void rotateBlock(Block& block);
|
|
std::vector<Block> blocks;
|
|
|
|
|
|
|
|
};
|
|
|
|
} // namespace Test
|