#include <ABO.h>
Inherited by gedi::DynABO.
Inheritance diagram for gedi::ABO:
Public Member Functions | |
ABO (void) | |
~ABO (void) | |
void | Create (gedi::UInt32 iAnimations, gedi::Animation *pkAnimations) |
void | Update (void) |
gedi::Error32 | Render (void) |
void | SetAnimation (gedi::UInt32 iAnimation, gedi::Animation *pkAnimation) |
void | LoadFromFile (LPSTR lpszFilename) |
void | Rotate (gedi::Real32 fAngle, gedi::Bool32 iAccumulate) |
gedi::Bool32 | Collide (gedi::ABO &rkABO, gedi::Bool32 iUseSphere=gedi::False) |
gedi::Bool32 | ContainsPoint (gedi::Int32 iX, gedi::Int32 iY) |
void | SetCurrentAnimation (gedi::UInt32 iAnimation) |
gedi::UInt32 | GetCurrentAnimation (void) |
void | SetPosition (gedi::UInt32 iX, gedi::UInt32 iY) |
void | SetSize (gedi::UInt32 iWidth, gedi::UInt32 iHeight) |
void | SetColor (gedi::UInt8 iAlpha, gedi::UInt8 iRed, gedi::UInt8 iGreen, gedi::UInt8 iBlue) |
void | SetRadius (gedi::Real32 fRadius) |
gedi::UInt32 | GetXPosition (void) |
gedi::UInt32 | GetYPosition (void) |
gedi::UInt32 | GetHeight (void) |
gedi::UInt32 | GetWidth (void) |
gedi::UInt32 | GetColor (void) |
gedi::Real32 | GetDirection (void) |
gedi::Real32 | GetRadius (void) |
This class is reponsible for rendering and animating 2D objects.
gedi::ABO::ABO | ( | void | ) |
Constructor.
gedi::ABO::~ABO | ( | void | ) |
Destructor.
void gedi::ABO::Create | ( | gedi::UInt32 | iAnimations, | |
gedi::Animation * | pkAnimations | |||
) |
Create the ABO.
iAnimations | Number of animations. | |
pkAnimations | Pointer to animations to deep copy. |
void gedi::ABO::Update | ( | void | ) |
Update to next animation.
gedi::Error32 gedi::ABO::Render | ( | void | ) |
Render current animation
void gedi::ABO::SetAnimation | ( | gedi::UInt32 | iAnimation, | |
gedi::Animation * | pkAnimation | |||
) |
Set a new set of animations using deep copy.
iAnimations | Number of animations. | |
pkAnimations | Pointer to animations to deep copy. |
void gedi::ABO::LoadFromFile | ( | LPSTR | lpszFilename | ) |
Load animation from descriptor file.
lpszFilename | Descriptor file which references the 2D image. |
Reimplemented in gedi::DynABO, and gedi::PreciseABO.
void gedi::ABO::Rotate | ( | gedi::Real32 | fAngle, | |
gedi::Bool32 | iAccumulate | |||
) |
Rotate the ABO.
fAngle | Degrees (in radians?) | |
iAccumulate | If gedi::True add angle to current angle, otherwise set it. |
gedi::Bool32 gedi::ABO::Collide | ( | gedi::ABO & | rkABO, | |
gedi::Bool32 | iUseSphere = gedi::False | |||
) |
gedi::Bool32 gedi::ABO::ContainsPoint | ( | gedi::Int32 | iX, | |
gedi::Int32 | iY | |||
) |
Return true if this ABO contains point x,y.
iX | X point. | |
iY | Y point. |
void gedi::ABO::SetCurrentAnimation | ( | gedi::UInt32 | iAnimation | ) |
Set the current animation number. Frame number is not affected since it is contained by gedi::Animation.
iAnimation | Animation number. |
gedi::UInt32 gedi::ABO::GetCurrentAnimation | ( | void | ) |
Get the current animation number.
void gedi::ABO::SetPosition | ( | gedi::UInt32 | iX, | |
gedi::UInt32 | iY | |||
) |
Set ABO to a new position.
iX | X coordinate. | |
iY | Y coordinate. |
void gedi::ABO::SetSize | ( | gedi::UInt32 | iWidth, | |
gedi::UInt32 | iHeight | |||
) |
Set ABO size. Handles magnification and compression if size not same as image.
iWidth | Width. | |
iHeight | Height. |
void gedi::ABO::SetColor | ( | gedi::UInt8 | iAlpha, | |
gedi::UInt8 | iRed, | |||
gedi::UInt8 | iGreen, | |||
gedi::UInt8 | iBlue | |||
) |
void gedi::ABO::SetRadius | ( | gedi::Real32 | fRadius | ) |
Set the ABO radius. Handles if magnification handled.
fRadius |
gedi::UInt32 gedi::ABO::GetXPosition | ( | void | ) |
Get the ABO X coordinate.
gedi::UInt32 gedi::ABO::GetYPosition | ( | void | ) |
Get the ABO Y coordinate.
gedi::UInt32 gedi::ABO::GetHeight | ( | void | ) |
Get the ABO height.
gedi::UInt32 gedi::ABO::GetWidth | ( | void | ) |
Get the ABO width.
gedi::UInt32 gedi::ABO::GetColor | ( | void | ) |
Get the ABO color.
gedi::Real32 gedi::ABO::GetDirection | ( | void | ) |
Get the ABO rotation angle.
gedi::Real32 gedi::ABO::GetRadius | ( | void | ) |
Get the ABO radius.