1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 06:52:34 +02:00
openrw/rwengine/include/render/DrawBuffer.hpp

36 lines
508 B
C++
Raw Normal View History

2014-02-10 06:43:20 +01:00
#pragma once
#ifndef _DRAWBUFFER_HPP_
#define _DRAWBUFFER_HPP_
#include <GL/glew.h>
class GeometryBuffer;
2014-02-13 11:55:11 +01:00
/**
* DrawBuffer stores VAO state
*/
2014-02-10 06:43:20 +01:00
class DrawBuffer {
GLuint vao;
2014-02-10 09:55:01 +01:00
GLenum facetype;
2014-02-10 06:43:20 +01:00
public:
DrawBuffer();
~DrawBuffer();
GLuint getVAOName() const
{ return vao; }
2014-02-10 09:55:01 +01:00
void setFaceType(GLenum ft)
{ facetype = ft; }
GLenum getFaceType() const
{ return facetype; }
2014-02-10 06:43:20 +01:00
/**
* Adds a Geometry Buffer to the Draw Buffer.
*/
void addGeometry(GeometryBuffer* gbuff);
};
#endif