Static Public Member Functions

CL_CollidableSprite Class Reference
[clanDisplay 2D]

Base for Collidable Sprite class. Not yet implemented, except for some helper functions. More...

#include <collidable_sprite.h>

List of all members.

Static Public Member Functions

static CL_CollisionOutline create_collision_outline (CL_GraphicContext &gc, const CL_StringRef &resource_id, CL_ResourceManager *resources, int alpha_limit=128, CL_OutlineAccuracy accuracy=accuracy_medium)
 Create the collision outlines from the sprites resource.
static std::vector
< CL_CollisionOutline
create_collision_outlines (CL_GraphicContext &gc, const CL_StringRef &resource_id, CL_ResourceManager *resources, int alpha_limit=128, CL_OutlineAccuracy accuracy=accuracy_medium)
 Create the collision outlines from the sprites resource.

Detailed Description

Base for Collidable Sprite class. Not yet implemented, except for some helper functions.


Member Function Documentation

static CL_CollisionOutline CL_CollidableSprite::create_collision_outline ( CL_GraphicContext gc,
const CL_StringRef resource_id,
CL_ResourceManager resources,
int  alpha_limit = 128,
CL_OutlineAccuracy  accuracy = accuracy_medium 
) [static]

Create the collision outlines from the sprites resource.

Parameters:
resource_id = String Ref
resources = Resource Manager
alpha_limit = Alpha limit for pixels considered solid (collidable)
accuracy = Amount of optimization of the outline (default medium)
Returns:
The collision outlines
static std::vector<CL_CollisionOutline> CL_CollidableSprite::create_collision_outlines ( CL_GraphicContext gc,
const CL_StringRef resource_id,
CL_ResourceManager resources,
int  alpha_limit = 128,
CL_OutlineAccuracy  accuracy = accuracy_medium 
) [static]

Create the collision outlines from the sprites resource.

Parameters:
resource_id = String Ref
resources = Resource Manager
alpha_limit = Alpha limit for pixels considered solid (collidable)
accuracy = Amount of optimization of the outline (default medium)
Returns:
The collision outlines

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