mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
36 lines
560 B
C
36 lines
560 B
C
#ifndef _CoreGl_Fbo_h_
|
|
#define _CoreGl_Fbo_h_
|
|
|
|
#include <Core/Core.h>
|
|
#include <Draw/Draw.h>
|
|
#include "Gl.h"
|
|
|
|
NAMESPACE_UPP
|
|
|
|
struct Fbo : Moveable<Fbo>
|
|
{
|
|
GLuint texId;
|
|
GLuint fbId;
|
|
GLuint rbId;
|
|
GLenum status;
|
|
int width;
|
|
int height;
|
|
bool ready;
|
|
|
|
bool Create(int width, int height, bool resize = false);
|
|
void Resize(int width, int height);
|
|
void Bind();
|
|
void Unbind();
|
|
void Clear();
|
|
void BlitToScreen();
|
|
void BlitTo(const Fbo& fbo);
|
|
void Remove();
|
|
String GetError();
|
|
|
|
Fbo() : width(0), height(0), ready(false)
|
|
{}
|
|
};
|
|
|
|
END_UPP_NAMESPACE
|
|
|
|
#endif
|