mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
initial commit
This commit is contained in:
parent
27b194816b
commit
fc46b7c434
36 changed files with 755 additions and 71 deletions
|
|
@ -1,14 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include "typedefs.hpp"
|
||||
#include "commons.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
class Texture;
|
||||
|
||||
class Framebuffer {
|
||||
class Framebuffer : public Bindable {
|
||||
uint fbo;
|
||||
uint depth;
|
||||
uint positions;
|
||||
uint normals;
|
||||
uint width;
|
||||
uint height;
|
||||
uint format;
|
||||
|
|
@ -19,10 +22,12 @@ public:
|
|||
~Framebuffer();
|
||||
|
||||
/// @brief Use framebuffer
|
||||
void bind();
|
||||
void bind() override;
|
||||
|
||||
/// @brief Stop using framebuffer
|
||||
void unbind();
|
||||
void unbind() override;
|
||||
|
||||
void bindBuffers();
|
||||
|
||||
/// @brief Update framebuffer texture size
|
||||
/// @param width new width
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue