mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
Added missing files
This commit is contained in:
parent
1fda002e0b
commit
d655404b7a
2 changed files with 99 additions and 0 deletions
28
src/frontend/BlocksPreview.h
Normal file
28
src/frontend/BlocksPreview.h
Normal 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_
|
||||
Loading…
Add table
Add a link
Reference in a new issue