26#ifndef TGUI_CANVAS_GLES2_HPP
27#define TGUI_CANVAS_GLES2_HPP
29#include <TGUI/Config.hpp>
30#include <TGUI/Backend/Renderer/GLES2/BackendTextureGLES2.hpp>
31#include <TGUI/Backend/Renderer/BackendRenderTarget.hpp>
32#include <TGUI/Widgets/ClickableWidget.hpp>
66 typedef std::shared_ptr<CanvasGLES2>
Ptr;
67 typedef std::shared_ptr<const CanvasGLES2>
ConstPtr;
77 CanvasGLES2(
const char* typeName =
"CanvasGLES2",
bool initRenderer =
true);
183 unsigned int m_textureId = 0;
184 unsigned int m_frameBuffer = 0;
187 std::shared_ptr<BackendTextureGLES2> m_backendTexture;
Base class for render targets.
Definition: BackendRenderTarget.hpp:48
Definition: CanvasGLES2.hpp:63
std::shared_ptr< const CanvasGLES2 > ConstPtr
Shared constant widget pointer.
Definition: CanvasGLES2.hpp:67
static CanvasGLES2::Ptr create(Layout2d size={"100%", "100%"})
Creates a new canvas widget.
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
static CanvasGLES2::Ptr copy(CanvasGLES2::ConstPtr canvas)
Makes a copy of another canvas.
CanvasGLES2(const CanvasGLES2 ©)
Copy constructor.
bool canGainFocus() const override
Returns whether the widget can gain focus.
void draw(BackendRenderTarget &target, RenderStates states) const override
Draw the widget to a render target.
void setSize(const Layout2d &size) override
Changes the size of the widget.
~CanvasGLES2()
Destructor.
std::shared_ptr< CanvasGLES2 > Ptr
Shared widget pointer.
Definition: CanvasGLES2.hpp:66
unsigned int bindFramebuffer() const
Binds the framebuffer of the canvas.
CanvasGLES2(CanvasGLES2 &©)=default
Default move constructor.
Class to store the position or size of a widget.
Definition: Layout.hpp:284
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36
States used for drawing.
Definition: RenderStates.hpp:39