mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
Fixed Framebuffer
This commit is contained in:
parent
6fcfc7e272
commit
7b4cc8f650
2 changed files with 26 additions and 46 deletions
|
|
@ -1,16 +1,18 @@
|
|||
#ifndef SRC_GRAPHICS_FRAMEBUFFER_H_
|
||||
#define SRC_GRAPHICS_FRAMEBUFFER_H_
|
||||
|
||||
#include "../typedefs.h"
|
||||
|
||||
class Texture;
|
||||
|
||||
class Framebuffer {
|
||||
unsigned int fbo;
|
||||
unsigned int depth;
|
||||
uint fbo;
|
||||
uint depth;
|
||||
public:
|
||||
int width;
|
||||
int height;
|
||||
uint width;
|
||||
uint height;
|
||||
Texture* texture;
|
||||
Framebuffer(int width, int height);
|
||||
Framebuffer(uint width, uint height);
|
||||
~Framebuffer();
|
||||
|
||||
void bind();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue