hx3d
1
2D/3D Simple Game Framework
|
GUI image button. More...
#include <image_button.hpp>
Public Member Functions | |
void | setOnClickCallback (std::function< void()> func) |
Set the on click callback. More... | |
void | onClick (glm::vec2 position) |
On click check. More... | |
![]() | |
Sprite () | |
Create a sprite without texture. More... | |
void | setTexture (const Ptr< Texture > &texture) |
Set the sprite texture. More... | |
void | setTexture (Framebuffer &buffer) |
Set the sprite texture from a framebuffer color buffer. More... | |
void | setTexture (TextureRegion ®ion) |
Set the sprite texture from a texture region. More... | |
Ptr< Texture > | getTexture () |
Get the sprite texture. More... | |
void | scaleTexture () |
Scale the texture coordinates following the texture size. | |
virtual void | draw (Ptr< Shader > shader) override |
Draw the mesh using a shader. More... | |
![]() | |
void | setTint (Color tint) |
Set the mesh tint. More... | |
Color & | getTint () |
Get the mesh tint. More... | |
void | updateColor () |
Update the mesh color from the tint. | |
void | setGeometry (Ptr< geom::BaseGeometry > geometry) |
Set the mesh geometry. More... | |
Ptr< geom::BaseGeometry > & | getGeometry () |
Get the mesh geometry. More... | |
Additional Inherited Members | |
![]() | |
Transform | transform |
Mesh transformation. | |
![]() | |
Color | _tint |
Tint color. | |
Ptr< geom::BaseGeometry > | _geometry |
Current geometry. | |
GUI image button.
Definition at line 32 of file image_button.hpp.
|
inline |
|
inline |