Public Member Functions | |
| bool | Init (IND_ImageManager *pImageManager, IND_SurfaceManager *pSurfaceManager) |
| void | End () |
| bool | AddToImage (IND_Animation *pNewAnimation, char *pAnimation) |
| bool | AddToSurface (IND_Animation *pNewAnimation, char *pAnimation, IND_Type pType, IND_Quality pQuality) |
| bool | AddToSurface (IND_Animation *pNewAnimation, char *pAnimation, IND_Type pType, IND_Quality pQuality, byte pR, byte pG, byte pB) |
| bool | AddToSurface (IND_Animation *pNewAnimation, char *pAnimation, int pBlockSize, IND_Type pType, IND_Quality pQuality) |
| bool | AddToSurface (IND_Animation *pNewAnimation, char *pAnimation, int pBlockSize, IND_Type pType, IND_Quality pQuality, byte pR, byte pG, byte pB) |
| bool | Delete (IND_Animation *pAn) |
| bool IND_AnimationManager::Init | ( | IND_ImageManager * | pImageManager, | |
| IND_SurfaceManager * | pSurfaceManager | |||
| ) |
Parameters:
This function returns 1 (true) if the adminstrator is successfully initialized. Must be called before using any method.
| void IND_AnimationManager::End | ( | ) |
Operation:
This function frees the manager and all the objects that it contains.
| bool IND_AnimationManager::AddToImage | ( | IND_Animation * | pNewAnimation, | |
| char * | pAnimation | |||
| ) |
Parameters:
This function returns 1 (true) if the animation file exists and is added successfully to the manager, loading the frames as IND_Image objects. So this animation won't be able to be drawn to the screen directly, but you will be able to modify the IND_Image objects (for applying a filter, for example) accessing to them trough the GetImage() function.
Once they have been modified, they can be converted to IND_Surfaces and applied to the animation using SetSurface() and then the animation will be able to be drawn correctly
| bool IND_AnimationManager::AddToSurface | ( | IND_Animation * | pNewAnimation, | |
| char * | pAnimation, | |||
| IND_Type | pType, | |||
| IND_Quality | pQuality | |||
| ) |
Parameters:
This function returns 1 (true) if the animation file exists and is added successfully to the manager loading the frames as IND_Surface objects. So, we will be able to draw this animation directly.
| bool IND_AnimationManager::AddToSurface | ( | IND_Animation * | pNewAnimation, | |
| char * | pAnimation, | |||
| IND_Type | pType, | |||
| IND_Quality | pQuality, | |||
| byte | pR, | |||
| byte | pG, | |||
| byte | pB | |||
| ) |
Parameters:
This function returns 1 (true) if the animation file exists and is added successfully to the manager, loading the frames with IND_Surface objects. So, we will be able to draw this animation directly. Furthermore, it uses the color passed as a parameter to apply a colorkey to the image. So, the zones coloured with this colour will be transparent.
| bool IND_AnimationManager::AddToSurface | ( | IND_Animation * | pNewAnimation, | |
| char * | pAnimation, | |||
| int | pBlockSize, | |||
| IND_Type | pType, | |||
| IND_Quality | pQuality | |||
| ) |
Parameters:
This function returns 1 (true) if the animation file exists and is added successfully to the manager loading the frames as IND_Surface objects. So, we will be able to draw this animation directly.
| bool IND_AnimationManager::AddToSurface | ( | IND_Animation * | pNewAnimation, | |
| char * | pAnimation, | |||
| int | pBlockSize, | |||
| IND_Type | pType, | |||
| IND_Quality | pQuality, | |||
| byte | pR, | |||
| byte | pG, | |||
| byte | pB | |||
| ) |
Parameters:
This function returns 1 (true) if the animation file exists and is added successfully to the manager, loading the frames with IND_Surface objects. So, we will be able to draw this animation directly. Furthermore, it uses the color passed as a parameter to apply a colorkey to the image. So, the areas coloured with this color will become transparent.
| bool IND_AnimationManager::Delete | ( | IND_Animation * | pAn | ) |
Parameters:
This function returns 1 (true) if the animation object passed as a parameter exists and it is successfully eliminated.
1.5.4