ClanLib  2.3.7
Public Types | Public Member Functions | Public Attributes | List of all members
CL_SpriteDescriptionFrame Class Reference

This class describes a single frame in a sprite description. More...

#include <sprite_description.h>

Public Types

enum  FrameType { type_pixelbuffer, type_texture }
 

Public Member Functions

 CL_SpriteDescriptionFrame (CL_PixelBuffer pixelbuffer, CL_Rect rect)
 Constructs a SpriteDescriptionFrame. More...
 
 CL_SpriteDescriptionFrame (CL_Texture texture, CL_Rect rect)
 Constructs a SpriteDescriptionFrame. More...
 

Public Attributes

double delay
 
CL_PixelBuffer pixelbuffer
 
CL_Rect rect
 
CL_Texture texture
 
FrameType type
 

Detailed Description

This class describes a single frame in a sprite description.

Member Enumeration Documentation

Enumerator
type_pixelbuffer 
type_texture 

Constructor & Destructor Documentation

CL_SpriteDescriptionFrame::CL_SpriteDescriptionFrame ( CL_PixelBuffer  pixelbuffer,
CL_Rect  rect 
)
inline

Constructs a SpriteDescriptionFrame.

Parameters
pixelbuffer= Pixel Buffer
rect= Rect
CL_SpriteDescriptionFrame::CL_SpriteDescriptionFrame ( CL_Texture  texture,
CL_Rect  rect 
)
inline

Constructs a SpriteDescriptionFrame.

Parameters
texture= Texture
rect= Rect

Member Data Documentation

double CL_SpriteDescriptionFrame::delay
CL_PixelBuffer CL_SpriteDescriptionFrame::pixelbuffer
CL_Rect CL_SpriteDescriptionFrame::rect
CL_Texture CL_SpriteDescriptionFrame::texture
FrameType CL_SpriteDescriptionFrame::type

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