PeriDyno 1.0.0
Loading...
Searching...
No Matches
Framebuffer.h
Go to the documentation of this file.
1
16
17#pragma once
18
19#include "GraphicsObject.h"
20
21namespace dyno
22{
23 class Texture;
25 {
27 public:
28 void create() override;
29 void release() override;
30
31 void bind(unsigned int target = 0x8CA9); // default bind to GL_DRAW_FRAMEBUFFER
32 void unbind();
33
34 void clearColor(float r = 0.f, float g = 0.f, float b = 0.f, float a = 1.f);
35 void clearDepth(float depth = 1.f);
36
37 void setTexture(unsigned int attachment, const Texture* tex, int level = 0);
38
39 void drawBuffers(int count, const unsigned int* buffers);
40
41 int checkStatus();
42
43 public:
44 // current framebuffer binding
45 static unsigned int current();
46 };
47}
#define GL_OBJECT(T)
void setTexture(unsigned int attachment, const Texture *tex, int level=0)
void bind(unsigned int target=0x8CA9)
void drawBuffers(int count, const unsigned int *buffers)
static unsigned int current()
void clearColor(float r=0.f, float g=0.f, float b=0.f, float a=1.f)
void clearDepth(float depth=1.f)
void create() override
void release() override
GraphicsObject()=default
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25