mirror of
https://github.com/rwengine/openrw.git
synced 2025-05-07 11:14:09 +03:00
24 lines
342 B
C++
24 lines
342 B
C++
![]() |
#pragma once
|
||
|
#ifndef _DRAWBUFFER_HPP_
|
||
|
#define _DRAWBUFFER_HPP_
|
||
|
#include <GL/glew.h>
|
||
|
|
||
|
class GeometryBuffer;
|
||
|
class DrawBuffer {
|
||
|
GLuint vao;
|
||
|
|
||
|
public:
|
||
|
|
||
|
DrawBuffer();
|
||
|
~DrawBuffer();
|
||
|
|
||
|
GLuint getVAOName() const
|
||
|
{ return vao; }
|
||
|
|
||
|
/**
|
||
|
* Adds a Geometry Buffer to the Draw Buffer.
|
||
|
*/
|
||
|
void addGeometry(GeometryBuffer* gbuff);
|
||
|
};
|
||
|
|
||
|
#endif
|