mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
split render pipelines
This commit is contained in:
parent
fc46b7c434
commit
c1608fe8e2
13 changed files with 176 additions and 191 deletions
|
|
@ -2,21 +2,24 @@
|
|||
|
||||
#include "typedefs.hpp"
|
||||
#include "commons.hpp"
|
||||
#include "ImageData.hpp"
|
||||
|
||||
class GBuffer : public Bindable{
|
||||
class GBuffer : public Bindable {
|
||||
public:
|
||||
GBuffer(uint width, uint height);
|
||||
~GBuffer();
|
||||
~GBuffer() override;
|
||||
|
||||
void bind() override;
|
||||
void unbind() override;
|
||||
|
||||
void bindBuffers();
|
||||
void bindBuffers() const;
|
||||
|
||||
void resize(uint width, uint height);
|
||||
|
||||
uint getWidth() const;
|
||||
uint getHeight() const;
|
||||
|
||||
std::unique_ptr<ImageData> toImage() const;
|
||||
private:
|
||||
uint width;
|
||||
uint height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue