mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 03:12:36 +01:00
4fd92a1549
Also move up source files into the root directory, as there's nothing else in this directory
38 lines
567 B
C++
38 lines
567 B
C++
#ifndef _LIBRW_DRAWBUFFER_HPP_
|
|
#define _LIBRW_DRAWBUFFER_HPP_
|
|
#include <gl/gl_core_3_3.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
|