1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-05 00:27:30 +02:00
openrw/rwlib/source/gl/DrawBuffer.hpp
Anonymous Maarten 90acef28f7 rwlib: iwyu: reduce warnings
- use mapping file
- forward define FileContentsInfo, CutsceneTracks, GameTexts
- no more "#pragma once"
- add mapping file
2018-01-08 22:52:48 +00:00

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