mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-21 18:09:46 +00:00
gpu instanced entities renderer
This commit is contained in:
parent
b985eed66a
commit
5d6446b06a
14 changed files with 492 additions and 228 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "MeshData.hpp"
|
||||
#include "InstanceBuffer.hpp"
|
||||
|
||||
|
||||
struct MeshStats {
|
||||
|
|
@ -64,6 +65,13 @@ public:
|
|||
|
||||
/// @brief Draw mesh as triangles
|
||||
void draw() const;
|
||||
|
||||
template <typename InstanceStructure>
|
||||
void drawInstanced(
|
||||
const InstanceBuffer<InstanceStructure>& instances,
|
||||
size_t first,
|
||||
size_t count
|
||||
) const;
|
||||
private:
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue