tk2dSpriteCollectionSize Class Reference

Sprite collection size. Supports different methods of specifying size. More...

List of all members.

Static Public Member Functions

static tk2dSpriteCollectionSize Explicit (float orthoSize, float targetHeight)
 When you are using an ortho camera. Use this to create sprites which will be pixel perfect automatically at the resolution and orthoSize given.
static tk2dSpriteCollectionSize PixelsPerMeter (float pixelsPerMeter)
 When you are using an ortho camera. Use this to create sprites which will be pixel perfect automatically at the resolution and orthoSize given.
static tk2dSpriteCollectionSize ForResolution (float orthoSize, float width, float height)
 When you are using an ortho camera. Use this to create sprites which will be pixel perfect automatically at the resolution and orthoSize given.
static tk2dSpriteCollectionSize ForTk2dCamera ()
 Use when you need the sprite to be pixel perfect on a tk2dCamera.
static tk2dSpriteCollectionSize ForTk2dCamera (tk2dCamera camera)
 Use when you need the sprite to be pixel perfect on a specific tk2dCamera.
static tk2dSpriteCollectionSize Default ()
 A default setting.

Detailed Description

Sprite collection size. Supports different methods of specifying size.


Member Function Documentation

A default setting.

static tk2dSpriteCollectionSize tk2dSpriteCollectionSize.Explicit ( float  orthoSize,
float  targetHeight 
) [static]

When you are using an ortho camera. Use this to create sprites which will be pixel perfect automatically at the resolution and orthoSize given.

static tk2dSpriteCollectionSize tk2dSpriteCollectionSize.ForResolution ( float  orthoSize,
float  width,
float  height 
) [static]

When you are using an ortho camera. Use this to create sprites which will be pixel perfect automatically at the resolution and orthoSize given.

Use when you need the sprite to be pixel perfect on a tk2dCamera.

Use when you need the sprite to be pixel perfect on a specific tk2dCamera.

static tk2dSpriteCollectionSize tk2dSpriteCollectionSize.PixelsPerMeter ( float  pixelsPerMeter) [static]

When you are using an ortho camera. Use this to create sprites which will be pixel perfect automatically at the resolution and orthoSize given.