Remove render_to_texture since it's almost useless
This commit is contained in:
parent
d4c2b5c408
commit
5079bcd127
1 changed files with 0 additions and 36 deletions
|
|
@ -1,36 +0,0 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <psemek/gfx/texture.hpp>
|
|
||||||
#include <psemek/gfx/framebuffer.hpp>
|
|
||||||
|
|
||||||
namespace psemek::gfx
|
|
||||||
{
|
|
||||||
|
|
||||||
struct render_to_texture
|
|
||||||
{
|
|
||||||
render_to_texture()
|
|
||||||
{
|
|
||||||
texture_.bind();
|
|
||||||
texture_.unbind();
|
|
||||||
framebuffer_.color(texture_);
|
|
||||||
}
|
|
||||||
|
|
||||||
struct framebuffer & framebuffer() { return framebuffer_; }
|
|
||||||
texture_2d & texture() { return texture_; }
|
|
||||||
|
|
||||||
void bind() const
|
|
||||||
{
|
|
||||||
framebuffer_.bind();
|
|
||||||
}
|
|
||||||
|
|
||||||
void unbind() const
|
|
||||||
{
|
|
||||||
framebuffer_.unbind();
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
|
||||||
texture_2d texture_;
|
|
||||||
struct framebuffer framebuffer_;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Add table
Reference in a new issue