mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
test rendering ui to texture
This commit is contained in:
parent
5d5a0e8932
commit
566aa04cda
6 changed files with 80 additions and 1 deletions
18
src/graphics/ui/elements/Frame.hpp
Normal file
18
src/graphics/ui/elements/Frame.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include "Container.hpp"
|
||||
|
||||
class Framebuffer;
|
||||
|
||||
namespace gui {
|
||||
class Frame final : public Container {
|
||||
public:
|
||||
explicit Frame(GUI& gui);
|
||||
virtual ~Frame();
|
||||
|
||||
void draw(const DrawContext& pctx, const Assets& assets) override;
|
||||
private:
|
||||
std::unique_ptr<Framebuffer> fbo;
|
||||
std::string texture = "gui/no_icon";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue