mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
refactor
This commit is contained in:
parent
258666c377
commit
48bedc5d8e
9 changed files with 105 additions and 106 deletions
36
src/graphics/render/BlocksPreview.h
Normal file
36
src/graphics/render/BlocksPreview.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#ifndef GRAPHICS_RENDER_BLOCKS_PREVIEW_H_
|
||||
#define GRAPHICS_RENDER_BLOCKS_PREVIEW_H_
|
||||
|
||||
#include "../../typedefs.h"
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <memory>
|
||||
|
||||
class Assets;
|
||||
class ImageData;
|
||||
class Atlas;
|
||||
class Framebuffer;
|
||||
class Batch3D;
|
||||
class Block;
|
||||
class Content;
|
||||
class Shader;
|
||||
class ContentGfxCache;
|
||||
|
||||
class BlocksPreview {
|
||||
static ImageData* draw(
|
||||
const ContentGfxCache* cache,
|
||||
Shader* shader,
|
||||
Framebuffer* framebuffer,
|
||||
Batch3D* batch,
|
||||
const Block* block,
|
||||
int size
|
||||
);
|
||||
public:
|
||||
static std::unique_ptr<Atlas> build(
|
||||
const ContentGfxCache* cache,
|
||||
Assets* assets,
|
||||
const Content* content
|
||||
);
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_RENDER_BLOCKS_PREVIEW_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue