Component to render an image to the screen.
Definition TextureComponent.hpp:9
void CreateTexture(std::string filepath)
Definition TextureComponent.cpp:13
void ClearSourceRect()
Selects the entire texture to render to the screen.
Definition TextureComponent.cpp:28
void SelectSourceRect(float x, float y, float w, float h)
Definition TextureComponent.cpp:18
void Render() override
Definition TextureComponent.cpp:38
static ComponentType GetType()
Returns the type of this component to make querying GetComponent easier.
Definition TextureComponent.cpp:32
void Update(float dt) override
Definition TextureComponent.cpp:36
void Input() override
Called once per frame to handle any new input.
Definition TextureComponent.cpp:34