11 #include "Vectors.hpp"
13 #include "Rectangle.hpp"
15 #include "Component.hpp"
18 #include "KapEngineSettings.hpp"
37 Image(std::shared_ptr<GameObject> &go);
44 bool isUsingSprite()
const {
45 PROFILER_FUNC_START();
46 if (_pathSprite ==
"") {
53 std::string getPathSprite()
const {
54 PROFILER_FUNC_START();
60 PROFILER_FUNC_START();
65 void setPathSprite(std::string
const& pathSprite) {
66 PROFILER_FUNC_START();
67 _pathSprite = pathSprite;
71 void setPathSpriteRoot(std::string
const& pathSprite) {
72 PROFILER_FUNC_START();
73 _pathSprite = std::filesystem::current_path().generic_string() +
"/" + pathSprite;
78 PROFILER_FUNC_START();
84 PROFILER_FUNC_START();
94 PROFILER_FUNC_START();
101 std::string _pathSprite =
"";
void onAwake() override
call component awake
Definition: UiImage.cpp:22
bool checkComponentValidity() override
Check you component is runnable With this function you can add some conditions to make your component...
Definition: UiImage.cpp:134
Definition: UiImage.hpp:35
Definition: Component.hpp:38
void onDisplay() override
use to display some things this function is call after all updates fucntion
Definition: UiImage.cpp:35
main namespace
Definition: Component.hpp:17