mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
add ModelBatch
This commit is contained in:
parent
99094d2299
commit
6d6313cd10
7 changed files with 200 additions and 2 deletions
|
|
@ -5,7 +5,9 @@
|
|||
|
||||
#include <GL/glew.h>
|
||||
#include "../../typedefs.hpp"
|
||||
#include "../../maths/UVRegion.hpp"
|
||||
|
||||
/// xyz, uv, rgba
|
||||
inline constexpr uint B3D_VERTEX_SIZE = 9;
|
||||
|
||||
Batch3D::Batch3D(size_t capacity)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef GRAPHICS_CORE_BATCH3D_HPP_
|
||||
#define GRAPHICS_CORE_BATCH3D_HPP_
|
||||
|
||||
#include "../../maths/UVRegion.hpp"
|
||||
#include "../../typedefs.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
|
@ -10,6 +9,7 @@
|
|||
|
||||
class Mesh;
|
||||
class Texture;
|
||||
struct UVRegion;
|
||||
|
||||
class Batch3D {
|
||||
std::unique_ptr<float[]> buffer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue