|
Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine. GitHub | Vesper Updates | Creator |
Component that holds sub-texture data for sprites. More...
#include <Components.h>
Public Member Functions | |
| SubTextureComponent ()=default | |
| SubTextureComponent (const Ref< Texture2D > &texture) | |
| Constructor that initializes the sub-texture from a full texture. | |
| SubTextureComponent (const Ref< SubTexture2D > &subTexture) | |
| Constructor that initializes the sub-texture directly. | |
| void | SetTexture (const Ref< Texture2D > &texture) |
| Copy constructor. | |
| void | SetTilingFactor (const glm::vec2 &tiling) |
| Sets the tiling factor for the sub-texture. | |
| void | SetOffset (const glm::vec2 &offset) |
| Sets the offset for the sub-texture. | |
| operator Ref< SubTexture2D > & () | |
| operator const Ref< SubTexture2D > & () const | |
| Ref< SubTexture2D > & | GetSubTexture () |
Public Attributes | |
| Ref< SubTexture2D > | SubTexture |
| The sub-texture reference. | |
| glm::vec2 | TilingFactor = { 1.0f, 1.0f } |
| Tiling factor for the sub-texture. | |
| glm::vec2 | Offset = { 0.0f, 0.0f } |
| Offset for the sub-texture. | |
Component that holds sub-texture data for sprites.
|
default |
Constructor that initializes the sub-texture from a full texture.
|
inline |
Constructor that initializes the sub-texture directly.
|
inline |
|
inline |
|
inline |
|
inline |
Sets the offset for the sub-texture.
Copy constructor.
|
inline |
Sets the tiling factor for the sub-texture.
| glm::vec2 Vesper::SubTextureComponent::Offset = { 0.0f, 0.0f } |
Offset for the sub-texture.
| Ref<SubTexture2D> Vesper::SubTextureComponent::SubTexture |
The sub-texture reference.
| glm::vec2 Vesper::SubTextureComponent::TilingFactor = { 1.0f, 1.0f } |
Tiling factor for the sub-texture.