Added missing files

This commit is contained in:
MihailRis
2023-12-01 13:56:52 +03:00
parent 1fda002e0b
commit d655404b7a
2 changed files with 99 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#ifndef FRONTEND_BLOCKS_PREVIEW_H_
#define FRONTEND_BLOCKS_PREVIEW_H_
#include "../typedefs.h"
#include <glm/glm.hpp>
class Shader;
class Atlas;
class Batch3D;
class Camera;
class Block;
class ContentGfxCache;
class BlocksPreview {
Shader* shader;
Atlas* atlas;
Batch3D* batch;
Camera* camera;
const ContentGfxCache* const cache;
public:
BlocksPreview(Shader* shader, Atlas* atlas, const ContentGfxCache* cache);
~BlocksPreview();
void begin();
void draw(const Block* block, int x, int y, int size, glm::vec4 tint);
};
#endif // FRONTEND_BLOCKS_PREVIEW_H_