LkEngine 0.1.2
 
Loading...
Searching...
No Matches
LkEngine::LSpriteComponent Struct Reference

Public Member Functions

 LSpriteComponent (const std::string &filepath, const glm::vec2 &size={ 100.0f, 100.0f }, const glm::vec4 &color={ 1.0f, 1.0f, 1.0f, 1.0f })
 
 LSpriteComponent (const glm::vec2 &size={ 0.0f, 0.0f }, const glm::vec4 &color={ 1.0f, 1.0f, 1.0f, 1.0f })
 
const glm::vec2 & GetSize () const
 
const glm::vec4 & GetColor () const
 
float GetWidth () const
 
float GetHeight () const
 
void SetSize (const glm::vec2 &size)
 
void SetSize (float x, float y)
 
void SetPassthrough (bool passthrough)
 
bool IsPassthrough () const
 

Public Attributes

std::string FilePath
 
glm::vec2 Size
 
glm::vec4 Color
 
bool Passthrough = false
 

The documentation for this struct was generated from the following file: