16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 02:09:17 +02:00
Files
maszyna/gl/framebuffer.h
milek7 94712f5c77 TMP
2018-07-11 00:30:33 +02:00

26 lines
508 B
C++

#pragma once
#include "object.h"
#include "bindable.h"
#include "renderbuffer.h"
#include "Texture.h"
namespace gl
{
class framebuffer : public object, public bindable<framebuffer>
{
public:
framebuffer();
~framebuffer();
void attach(const opengl_texture &tex, GLenum location);
void attach(const renderbuffer &rb, GLenum location);
void clear();
bool is_complete();
using bindable::bind;
static void bind(GLuint id);
};
}