PixelLightAPI  .
Classes | Public Member Functions
PLRenderer::TextureAni Class Reference

Texture animation resource class. More...

#include <TextureAni.h>

Inheritance diagram for PLRenderer::TextureAni:
Inheritance graph
[legend]

List of all members.

Classes

struct  ColorFrame
 Color animation. More...
struct  MatrixFrame
 Matrix animation. More...
struct  TextureFrame
 Texture animation. More...

Public Member Functions

virtual PLRENDERER_API ~TextureAni ()
 Destructor.
PLRENDERER_API TextureAnioperator= (const TextureAni &cSource)
 Copy operator.
AniInfoManagerGetTextureAnimationManager ()
 Returns the texture animation manager.
const AniInfoManagerGetTextureAnimationManager () const
PLRENDERER_API void CreateStandardTextureAnimation ()
 Create standard texture animation.
PLCore::Array< TextureFrame * > & GetTextureFrames ()
 Returns the texture frames array.
const PLCore::Array
< TextureFrame * > & 
GetTextureFrames () const
AniInfoManagerGetMatrixAnimationManager ()
 Returns the matrix animation manager.
const AniInfoManagerGetMatrixAnimationManager () const
PLRENDERER_API void CreateStandardMatrixAnimation ()
 Create standard matrix animation.
PLCore::Array< MatrixFrame * > & GetMatrixFrames ()
 Returns the matrix frames array.
const PLCore::Array
< MatrixFrame * > & 
GetMatrixFrames () const
AniInfoManagerGetColorAnimationManager ()
 Returns the color animation manager.
const AniInfoManagerGetColorAnimationManager () const
PLRENDERER_API void CreateStandardColorAnimation ()
 Create standard color animation.
PLCore::Array< ColorFrame * > & GetColorFrames ()
 Returns the color frames array.
const PLCore::Array
< ColorFrame * > & 
GetColorFrames () const
virtual PLRENDERER_API bool IsAnimated () const override
 Returns whether or not this texture is animated.
virtual PLRENDERER_API bool LoadByFilename (const PLCore::String &sFilename, const PLCore::String &sParams="", const PLCore::String &sMethod="") override
 Loads the loadable from a file given by filename.
virtual PLRENDERER_API bool SaveByFilename (const PLCore::String &sFilename, const PLCore::String &sParams="", const PLCore::String &sMethod="") override
 Saves the loadable to a file given by filename.
virtual PLRENDERER_API bool SaveByFile (PLCore::File &cFile, const PLCore::String &sParams="", const PLCore::String &sMethod="") override
 Saves the loadable to a file given by reference.
virtual PLRENDERER_API bool Unload () override
 Unloads the loadable.
virtual PLRENDERER_API
PLCore::String 
GetLoadableTypeName () const override
 Returns the loadable type name.

Detailed Description

Texture animation resource class.


Constructor & Destructor Documentation

virtual PLRENDERER_API PLRenderer::TextureAni::~TextureAni ( ) [virtual]

Destructor.


Member Function Documentation

PLRENDERER_API TextureAni& PLRenderer::TextureAni::operator= ( const TextureAni cSource)

Copy operator.

Parameters:
[in]cSourceSource to copy from
Returns:
This instance

Returns the texture animation manager.

Returns:
The texture handlers texture animation manager

Create standard texture animation.

Note:
  • A standard animation in only added if there are at the moment no animations at all

Returns the texture frames array.

Returns:
The texture frames array

Returns the matrix animation manager.

Returns:
The texture handlers matrix animation manager

Create standard matrix animation.

Note:
  • A standard animation in only added if there are at the moment no animations at all

Returns the matrix frames array.

Returns:
The matrix frames array

Returns the color animation manager.

Returns:
The texture handlers color animation manager

Create standard color animation.

Note:
  • A standard animation in only added if there are at the moment no animations at all

Returns the color frames array.

Returns:
The color frames array
virtual PLRENDERER_API bool PLRenderer::TextureAni::IsAnimated ( ) const [override, virtual]

Returns whether or not this texture is animated.

Returns:
'true' if this texture is animated, else 'false'
Remarks:
If this is an animated texture (tani filename extension) you can cast to 'TextureAni' to get the texture animation data.

Reimplemented from PLRenderer::Texture.

virtual PLRENDERER_API bool PLRenderer::TextureAni::LoadByFilename ( const PLCore::String sFilename,
const PLCore::String sParams = "",
const PLCore::String sMethod = "" 
) [override, virtual]

Loads the loadable from a file given by filename.

Parameters:
[in]sFilenameLoadable filename
[in]sParamsOptional load method parameters, can be an empty string
[in]sMethodOptional name of the load method to use, can be an empty string
Returns:
'true' if all went fine, else 'false'
Note:
  • If no method name was provided, 'Load' if sParams is empty, or 'LoadParams' if sParams is not empty is used automatically

Reimplemented from PLRenderer::Texture.

virtual PLRENDERER_API bool PLRenderer::TextureAni::SaveByFilename ( const PLCore::String sFilename,
const PLCore::String sParams = "",
const PLCore::String sMethod = "" 
) [override, virtual]

Saves the loadable to a file given by filename.

Parameters:
[in]sFilenameLoadable filename
[in]sParamsOptional save method parameters, can be an empty string
[in]sMethodOptional name of the save method to use, can be an empty string
Returns:
'true' if all went fine, else 'false'
Note:
  • If no method name was provided, 'Save' if sParams is empty, or 'SaveParams' if sParams is not empty is used automatically

Reimplemented from PLRenderer::Texture.

virtual PLRENDERER_API bool PLRenderer::TextureAni::SaveByFile ( PLCore::File cFile,
const PLCore::String sParams = "",
const PLCore::String sMethod = "" 
) [override, virtual]

Saves the loadable to a file given by reference.

Parameters:
[in]cFileFile to save into, must be opened and writable
[in]sParamsOptional save method parameters, can be an empty string
[in]sMethodOptional name of the save method to use, can be an empty string
Returns:
'true' if all went fine, else 'false'
Note:
  • If no method name was provided, 'Save' if sParams is empty, or 'SaveParams' if sParams is not empty is used automatically

Reimplemented from PLRenderer::Texture.

virtual PLRENDERER_API bool PLRenderer::TextureAni::Unload ( ) [override, virtual]

Unloads the loadable.

Returns:
'true' if all went fine, else 'false'

Reimplemented from PLRenderer::Texture.

virtual PLRENDERER_API PLCore::String PLRenderer::TextureAni::GetLoadableTypeName ( ) const [override, virtual]

Returns the loadable type name.

Returns:
The loadable type name

Reimplemented from PLRenderer::Texture.


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:40
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported