mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 23:49:18 +02:00
26 lines
508 B
C++
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);
|
|
};
|
|
}
|