Quick commit of a broken setup that doesn't work.
This commit is contained in:
parent
22c2b78fca
commit
753df69b4c
129 changed files with 16095 additions and 0 deletions
15
27-instancing/src/framebuffer.hpp
Normal file
15
27-instancing/src/framebuffer.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
#include "shader.hpp"
|
||||
#include "screen.hpp"
|
||||
|
||||
struct FrameBuffer {
|
||||
unsigned int target_fb = 0;
|
||||
unsigned int target_rbo = 0;
|
||||
unsigned int texture_buffer = 0;
|
||||
|
||||
void init();
|
||||
void begin();
|
||||
void commit();
|
||||
void draw(Screen& screen);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue