mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 06:02:11 +00:00
25 lines
399 B
C++
25 lines
399 B
C++
#pragma once
|
|
|
|
enum class VertexFormat : int32_t { Flat, World };
|
|
|
|
class VertexBuffer
|
|
{
|
|
public:
|
|
VertexBuffer();
|
|
~VertexBuffer();
|
|
|
|
GLuint GetBuffer();
|
|
GLuint GetVAO();
|
|
|
|
VertexFormat Format = VertexFormat::Flat;
|
|
|
|
static const int FlatStride = 24;
|
|
static const int WorldStride = 36;
|
|
|
|
static void SetupFlatVAO();
|
|
static void SetupWorldVAO();
|
|
|
|
private:
|
|
GLuint mBuffer = 0;
|
|
GLuint mVAO = 0;
|
|
};
|