1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 19:32:49 +01:00
openrw/rwengine/include/render/DrawBuffer.hpp
2014-02-13 10:57:25 +00:00

35 lines
507 B
C++

#pragma once
#ifndef _DRAWBUFFER_HPP_
#define _DRAWBUFFER_HPP_
#include <GL/glew.h>
class GeometryBuffer;
/**
* DrawBuffer stores VAO state
*/
class DrawBuffer {
GLuint vao;
GLenum facetype;
public:
DrawBuffer();
~DrawBuffer();
GLuint getVAOName() const
{ return vao; }
void setFaceType(GLenum ft)
{ facetype = ft; }
GLenum getFaceType() const
{ return facetype; }
/**
* Adds a Geometry Buffer to the Draw Buffer.
*/
void addGeometry(GeometryBuffer* gbuff);
};
#endif