|
Muto 0.0.1
|
Component that holds sprite rendering data. More...
#include <Components.h>
Public Member Functions | |
| glm::vec4 & | GetColor () |
| Returns the color of the sprite. | |
| operator const glm::vec4 & () const | |
| operator glm::vec4 & () | |
| SpriteRendererComponent ()=default | |
| SpriteRendererComponent (const glm::vec4 &color) | |
| Constructor that initializes the color. | |
| SpriteRendererComponent (const SpriteRendererComponent &)=default | |
Public Attributes | |
| bool | Billboard = false |
| whether the sprite should always face the camera | |
| glm::vec4 | Color { 1.0f, 1.0f, 1.0f, 1.0f } |
| Color of the sprite. | |
| Ref< Texture2D > | Texture = nullptr |
| Texture of the sprite. | |
| bool | TextureEnabled = false |
| whether the texturing is enabled | |
| float | TilingFactor = 1.0f |
| Tiling factor for the texture. | |
Component that holds sprite rendering data.
|
default |
|
default |
|
inline |
Constructor that initializes the color.
References SpriteRendererComponent().
Referenced by SpriteRendererComponent().
|
inline |
Returns the color of the sprite.
|
inline |
whether the sprite should always face the camera
WIP
| glm::vec4 Muto::SpriteRendererComponent::Color { 1.0f, 1.0f, 1.0f, 1.0f } |
Color of the sprite.
| float Muto::SpriteRendererComponent::TilingFactor = 1.0f |
Tiling factor for the texture.