1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-10 04:42:38 +01:00
openrw/rwengine/include/render/DrawBuffer.hpp
Daniel Evans 5b9c95d346 Add Initial Cutscene playback implementation
+ Add CutsceneData structures to store the data required.
+ Implement screen fading in and out (todo: splash screen fading)
+ Add GameData::openFile2() returns a handle to open file memory + size
+ Fix fog implementation
+ Add screenspace rect to GameRenderer for fades and cinematics
2014-07-28 02:27:55 +01:00

36 lines
508 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