mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
the shortcut
This commit is contained in:
parent
635e512142
commit
30a38035e2
35 changed files with 90 additions and 84 deletions
21
src/graphics/ui/elements/Image.hpp
Normal file
21
src/graphics/ui/elements/Image.hpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef GRAPHICS_UI_ELEMENTS_IMAGE_HPP_
|
||||
#define GRAPHICS_UI_ELEMENTS_IMAGE_HPP_
|
||||
|
||||
#include "UINode.hpp"
|
||||
|
||||
namespace gui {
|
||||
class Image : public UINode {
|
||||
protected:
|
||||
std::string texture;
|
||||
bool autoresize = false;
|
||||
public:
|
||||
Image(std::string texture, glm::vec2 size=glm::vec2(32,32));
|
||||
|
||||
virtual void draw(const GfxContext* pctx, Assets* assets) override;
|
||||
|
||||
virtual void setAutoResize(bool flag);
|
||||
virtual bool isAutoResize() const;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // GRAPHICS_UI_ELEMENTS_IMAGE_HPP_
|
||||
Loading…
Add table
Add a link
Reference in a new issue