mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 21:49:19 +02:00
TMP
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#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);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user