mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
Add files via upload
This commit is contained in:
commit
e1cdcf01e9
49 changed files with 2866 additions and 0 deletions
19
src/graphics/VoxelRenderer.h
Normal file
19
src/graphics/VoxelRenderer.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef GRAPHICS_VOXELRENDERER_H_
|
||||
#define GRAPHICS_VOXELRENDERER_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
class Mesh;
|
||||
class Chunk;
|
||||
|
||||
class VoxelRenderer {
|
||||
float* buffer;
|
||||
size_t capacity;
|
||||
public:
|
||||
VoxelRenderer(size_t capacity);
|
||||
~VoxelRenderer();
|
||||
|
||||
Mesh* render(Chunk* chunk, const Chunk** chunks);
|
||||
};
|
||||
|
||||
#endif /* GRAPHICS_VOXELRENDERER_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue