Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BAnimation Class Reference

#include <BAnimation.h>

Inheritance diagram for BAnimation:

Inheritance graph
[legend]
Collaboration diagram for BAnimation:

Collaboration graph
[legend]
List of all members.

Fixed-point arithmetic

typedef s32 FIXED
FIXED INT2FIX (int _i)
int FIX2INT (FIXED _n)
FIXED FIX_FRAC (FIXED _n)
FIXED FLOAT2FIX (float _f)
float FIX2FLOAT (FIXED _n)
FIXED FIX_ADD (FIXED a, FIXED b)
FIXED FIX_SUB (FIXED a, FIXED b)
FIXED FIX_MUL (FIXED a, FIXED b)
FIXED FIX_DIV (FIXED a, FIXED b)
u8 FIX_SHIFT
FIXED FIX_SCALE
float FIX_SCALEF
float FIX_SCALEF_

Public Types

typedef FIXED(* FixedModifier )(FIXED)

Public Member Functions

 BAnimation ()
 ~BAnimation ()
void addTarget (volatile uint32 *target, FixedModifier modifier=NULL)
void addTarget (volatile uint16 *target, FixedModifier modifier=NULL)
void clearTargets ()
void setStartValue (int value)
void setStartValue (float value)
FIXED startValue ()
void setStepValue (int value)
void setStepValue (float value)
FIXED stepValue ()
void setEndValue (int value)
void setEndValue (float value)
FIXED endValue ()
FIXED value ()
void schedule (bool global=false)
 Schedule the animation in the current run loop.

void unschedule ()
 Unschedule the animation. Happens automatically if end is reached.

void run ()
 Schedule the animation in its own run loop. Returns after unschedule().

void runloopReachedVBlank (BRunLoop *loop)
void setDelegate (Delegate *deleg)
Delegatedelegate ()

Static Public Member Functions

FIXED pageflipModifierYDY (FIXED value)
FIXED pageflipModifierCY (FIXED value)

Member Typedef Documentation

typedef s32 BAnimation::FIXED
 

typedef FIXED(* BAnimation::FixedModifier)(FIXED)
 


Constructor & Destructor Documentation

BAnimation::BAnimation  
 

BAnimation::~BAnimation  
 


Member Function Documentation

void BAnimation::addTarget volatile uint16 *    target,
FixedModifier    modifier = NULL
 

void BAnimation::addTarget volatile uint32 *    target,
FixedModifier    modifier = NULL
 

void BAnimation::clearTargets  
 

Delegate* BAnimation::delegate   [inline]
 

FIXED BAnimation::endValue   [inline]
 

float BAnimation::FIX2FLOAT FIXED    _n [inline, static]
 

int BAnimation::FIX2INT FIXED    _n [inline, static]
 

FIXED BAnimation::FIX_ADD FIXED    a,
FIXED    b
[inline, static]
 

FIXED BAnimation::FIX_DIV FIXED    a,
FIXED    b
[inline, static]
 

FIXED BAnimation::FIX_FRAC FIXED    _n [inline, static]
 

FIXED BAnimation::FIX_MUL FIXED    a,
FIXED    b
[inline, static]
 

FIXED BAnimation::FIX_SUB FIXED    a,
FIXED    b
[inline, static]
 

FIXED BAnimation::FLOAT2FIX float    _f [inline, static]
 

FIXED BAnimation::INT2FIX int    _i [inline, static]
 

FIXED BAnimation::pageflipModifierCY FIXED    value [static]
 

FIXED BAnimation::pageflipModifierYDY FIXED    value [static]
 

void BAnimation::run  
 

Schedule the animation in its own run loop. Returns after unschedule().

void BAnimation::runloopReachedVBlank BRunLoop   loop [virtual]
 

Reimplemented from BRunLoop::VBlankReceiver.

void BAnimation::schedule bool    global = false
 

Schedule the animation in the current run loop.

void BAnimation::setDelegate Delegate   deleg
 

void BAnimation::setEndValue float    value
 

void BAnimation::setEndValue int    value
 

void BAnimation::setStartValue float    value
 

void BAnimation::setStartValue int    value
 

void BAnimation::setStepValue float    value
 

void BAnimation::setStepValue int    value
 

FIXED BAnimation::startValue   [inline]
 

FIXED BAnimation::stepValue   [inline]
 

void BAnimation::unschedule  
 

Unschedule the animation. Happens automatically if end is reached.

FIXED BAnimation::value   [inline]
 


Member Data Documentation

FIXED BAnimation::FIX_SCALE [static]
 

float BAnimation::FIX_SCALEF [static]
 

float BAnimation::FIX_SCALEF_ [static]
 

u8 BAnimation::FIX_SHIFT [static]
 


The documentation for this class was generated from the following file:
Generated on Sat Dec 29 10:00:11 2007 for DSGUI by doxygen1.3-rc3