mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-21 01:49:44 +00:00
20 lines
382 B
C++
20 lines
382 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
|
|
#include "MeshData.hpp"
|
|
|
|
template <typename InstanceStructure>
|
|
class InstanceBuffer {
|
|
unsigned int vbo;
|
|
size_t capacity;
|
|
public:
|
|
InstanceBuffer();
|
|
~InstanceBuffer();
|
|
|
|
void reload(const InstanceStructure* instances, size_t count);
|
|
|
|
void bind(int location, size_t first) const;
|
|
};
|
|
|
|
#include "graphics/core/InstanceBuffer.inl"
|