blob: c9137cefac81fcf6ea4e5a4ad98788edd1d1b37a (
plain) (
tree)
|
|
#pragma once
#include <glm/mat4x4.hpp>
#include <GL/glew.h>
#include "Vector.hpp"
class RenderState;
class RendererSectionData;
class RendererSection {
enum Vbos {
MODELS = 0,
TEXTURES,
COLORS,
LIGHTS,
VBOCOUNT,
};
GLuint Vao = { 0 };
GLuint Vbo[VBOCOUNT] = { 0 };
static GLuint VboVertices, VboUvs;
size_t hash;
Vector sectionPos;
RendererSection(const RendererSection &other) = delete;
public:
RendererSection(const RendererSectionData &data);
RendererSection(RendererSection &&other);
~RendererSection();
void Render(RenderState &renderState);
Vector GetPosition();
size_t GetHash();
size_t numOfFaces;
friend void swap(RendererSection &lhs, RendererSection &rhs);
};
|