Torque2D Reference
Loading...
Searching...
No Matches
FluidColorI Class Reference

#include <mFluid.h>

Inheritance diagram for FluidColorI:

Public Member Functions

 FluidColorI ()
 FluidColorI (ColorI &color)
 FluidColorI (const U8 in_r, const U8 in_g, const U8 in_b, const U8 in_a=U8(255))
virtual void startFluidAnimation (const ColorI &color)
virtual bool processTick ()
void set (const ColorI &in_rCopy)
void set (U8 red, U8 green, U8 blue, U8 alpha=255)
Public Member Functions inherited from ColorI
 ColorI ()
 ColorI (const ColorI &in_rCopy)
 ColorI (const U8 in_r, const U8 in_g, const U8 in_b, const U8 in_a=U8(255))
 ColorI (const char *pStockColorName)
void set (const U8 in_r, const U8 in_g, const U8 in_b, const U8 in_a=U8(255))
void set (const char *pStockColorName)
StringTableEntry StockColor (void)
ColorIoperator*= (const F32 in_mul)
ColorI operator* (const F32 in_mul) const
 operator ColorF () const
 operator const U32 () const
bool operator== (const ColorI &) const
bool operator!= (const ColorI &) const
const U8 * address (void) const
void interpolate (const ColorI &in_rC1, const ColorI &in_rC2, const F32 in_factor)
U32 getARGBPack () const
U32 getRGBAPack () const
U32 getABGRPack () const
U32 getBGRPack () const
U32 getRGBPack () const
U32 getRGBEndian () const
U32 getARGBEndian () const
U16 get565 () const
U16 get4444 () const
void clamp ()
StringTableEntry stringThis (void) const
const char * scriptThis (void) const
Public Member Functions inherited from Fluid
 Fluid ()
 ~Fluid ()
S32 getAnimationLength ()
void setAnimationLength (S32 time)
EasingFunction getEasingFunction ()
void setEasingFunction (EasingFunction ease)
void setEasingFunction (const char *label)
const char * getEasingFunctionDescription (const EasingFunction ease)
virtual void startFluidAnimation ()
void stopFluidAnimation ()
bool isAnimating ()
F32 getProgress (const S32 time)
U8 processValue (const F32 progress, const U8 start, const U8 target)
S32 processValue (const F32 progress, const S32 start, const S32 target)
F32 processValue (const F32 progress, const F32 start, const F32 target)

Protected Attributes

U8 redStart
U8 greenStart
U8 blueStart
U8 alphaStart
U8 redTarget
U8 greenTarget
U8 blueTarget
U8 alphaTarget
Protected Attributes inherited from Fluid
F32 mAnimationProgress
S32 mAnimationLength
EasingFunction mEasingFunction

Additional Inherited Members

Static Public Member Functions inherited from ColorI
static const ColorIStockColor (const char *pStockColorName)
Public Attributes inherited from ColorI
U8 red
U8 green
U8 blue
U8 alpha

Constructor & Destructor Documentation

◆ FluidColorI() [1/3]

FluidColorI ( )
inline

◆ FluidColorI() [2/3]

FluidColorI ( ColorI & color)

◆ FluidColorI() [3/3]

FluidColorI ( const U8 in_r,
const U8 in_g,
const U8 in_b,
const U8 in_a = U8(255) )
inline

Member Function Documentation

◆ processTick()

bool processTick ( )
virtual

◆ set() [1/2]

void set ( const ColorI & in_rCopy)

◆ set() [2/2]

void set ( U8 red,
U8 green,
U8 blue,
U8 alpha = 255 )

◆ startFluidAnimation()

void startFluidAnimation ( const ColorI & color)
virtual

Member Data Documentation

◆ alphaStart

U8 alphaStart
protected

◆ alphaTarget

U8 alphaTarget
protected

◆ blueStart

U8 blueStart
protected

◆ blueTarget

U8 blueTarget
protected

◆ greenStart

U8 greenStart
protected

◆ greenTarget

U8 greenTarget
protected

◆ redStart

U8 redStart
protected

◆ redTarget

U8 redTarget
protected

The documentation for this class was generated from the following files: