|
| | VTrailArea (float x, float y, unsigned int width, unsigned int height, unsigned int maxSize=0) |
| |
| | VTrailArea (sf::Vector2f position, sf::Vector2u size, unsigned int maxSize=0) |
| |
| virtual void | Draw (sf::RenderTarget &RenderTarget) override |
| |
|
| VRenderGroup (unsigned int maxSize=0) |
| | Default Constructor for VRenderGroup.
|
| |
| | VRenderGroup (float x, float y, unsigned int width, unsigned int height, unsigned int maxSize=0) |
| |
| | VRenderGroup (sf::Vector2f position, sf::Vector2u size, unsigned int maxSize=0) |
| |
| virtual void | Resize (int width, int height) |
| |
| virtual const sf::Texture & | GetTexture () |
| |
|
virtual void | Destroy () override |
| | Removes and/or destroys all objects inside the group and sprite before destroying extra data. (If an object is referenced in another VGroup, the object won't be destroyed)
|
| |
|
virtual void | Kill () override |
| | Kills all living objects before killing the group and the sprite themselves.
|
| |
|
virtual void | Revive () override |
| | Revives all dead objects before reviving the group and the sprite themselves.
|
| |
| virtual void | Update (float dt) override |
| |
| | VGroup (unsigned int maxSize=0) |
| |
| int | Length () |
| |
| VBase * | Add (VBase *object) |
| |
| VBase * | Remove (VBase *object, bool splice=false) |
| |
| VBase * | FirstAvailable () |
| |
| int | FirstNULL () |
| |
| VBase * | FirstExisting () |
| |
| VBase * | FirstAlive () |
| |
| VBase * | FirstDead () |
| |
| int | CountAlive (bool Recursive=false) |
| |
| int | CountDead (bool Recursive=false) |
| |
| VBase * | GetRandom (int min=0, int max=0) |
| |
| void | ForEach (std::function< void(VBase *)> function, bool recursive=false) |
| |
| void | ForEachAlive (std::function< void(VBase *)> function, bool recursive=false) |
| |
| void | ForEachDead (std::function< void(VBase *)> function, bool recursive=false) |
| |
| void | ForEachExists (std::function< void(VBase *)> function, bool recursive=false) |
| |
| VBase * | GetGroupItem (int index) |
| |
| template<class T > |
| T * | GetGroupItemAsType (int index) |
| |
| int | GetIndexOfItem (VBase *object) |
| |
|
void | OrganiseNULLS () |
| | Sort nullptr members to the bottom of the group.
|
| |
| void | Swap (int a, int b) |
| |
| void | Sort (std::function< bool(VBase *, VBase *)> func) |
| |
|
void | Reverse () |
| | Reverse order of group.
|
| |
|
void | Clear () |
| | Clears the whole group (does not destroy any of the members, that must be done using the Destroy method).
|
| |
|
|
float | Delay = 0.05f |
| | Delay between applying a swap to produce a trail.
|
| |
|
float | RedMultiplier = 1.0f |
| | The amount of red to remove in the next swap (done as 255 - (255 * Multiplier * 0.0039f).
|
| |
|
float | BlueMultiplier = 1.0f |
| | The amount of blue to remove in the next swap (done as 255 - (255 * Multiplier * 0.0039f).
|
| |
|
float | GreenMultiplier = 1.0f |
| | The amount of green to remove in the next swap (done as 255 - (255 * Multiplier * 0.0039f).
|
| |
|
float | AlphaMultiplier = 0.8f |
| | The amount of alpha to remove in the next swap (done as 255 - (255 * Multiplier * 0.0039f).
|
| |
|
std::unique_ptr< VSprite > | Sprite = nullptr |
| | The sprite that the group will render to. Refer to this if you want to transform the render output.
|
| |
|
sf::Color | BackgroundTint = sf::Color::Transparent |
| | The background colour the sprite will have.
|
| |
|
std::unique_ptr< VPostEffectBase > | PostEffect = nullptr |
| | Post Process (Shader) Effect to apply to the sprite.
|
| |
|
std::unique_ptr< VCamera > | Camera = nullptr |
| | Camera for the sprite's render view.
|
| |
|
bool | RenderViewTransform = true |
| | If true, the camera's render view will be transformed based on the sprite's current transform, else it will use the camera's render view.
|
| |
|
VRenderGroupOutside | RenderOutside = VRENDERGROUP_NO |
| | If true, the content data would also be rendered outside of the sprite area. Used if you want an effect to apply to a specific area.
|
| |
|
bool | active = true |
| | Base can be updated using Update if true.
|
| |
|
bool | visible = true |
| | Base can be rendered using Draw if true.
|
| |
|
bool | alive = true |
| | Helper member that is mainly used filter out behaviours to objects which aren't alive in the scene.
|
| |
|
bool | exists = true |
| | Base can be updated and rendered if true, else it would no longer be treated as being part of the scene.
|
| |
|
VType | type = NONE |
| | Base object type, typically set in the constructor of an inherited object to specify what type it is.
|
| |
|
uint32_t | RefCount = 0 |
| | Counts the amount of times the object is referenced in groups, ensures an object is only destroyed when no longer part of a single group.
|
| |
|
| static const wchar_t * | VString (const char *fmt,...) |
| |
| static void | VLog (const char *fmt,...) |
| |
| static void | VLogError (const char *fmt,...) |
| |
| static void | VClearLog () |
| |
|
void | updateTransform () |
| | Updates the transform.
|
| |
|
void | updateTexture (const sf::Texture &texture) |
| | Update the texture of the sprite.
|
| |
|
sf::RenderTexture | renderTex |
| | The sf::RenderTexture to render all the objects to.
|
| |
|
sf::RenderTexture | postProcessTex |
| | Another sf::RenderTexture for outputting the post process effect onto.
|
| |
|
std::vector< VBase * > | members |
| | VBase List.
|
| |
|
int | length = 0 |
| | Current amount of members in the list.
|
| |
|
unsigned int | MaxSize = 0 |
| | Maximum Size of the list, used if VGroup is set to have a fixed size.
|
| |
Special VRenderGroup that applies a trail to objects it contains within the area.