tk2dPixelPerfectHelper Class Reference

Allows remapping resolution and rescaling based on settings in this class. Deprecated and replaced by tk2dCamera. More...

List of all members.

Static Public Member Functions

static float CalculateScaleForPerspectiveCamera (float fov, float zdist)
 Calculate scale to get 1:1 given fov in degress, and zdistance to camera. This assumes the screen resoulution hasn't changed.

Public Attributes

int collectionTargetHeight = 640
 The height of the collection target as it was set up.
float collectionOrthoSize = 1.0f
 The ortho size parameter of the sprite collection, as it was set up.
float targetResolutionHeight = 640.0f
 The height of the resolution to map to. (eg. 1024x768 = 768)

Properties

static tk2dPixelPerfectHelper inst [get]
 Global singleton instance.
bool CameraIsOrtho [get]
 Is the linked camera orthographic?

Detailed Description

Allows remapping resolution and rescaling based on settings in this class. Deprecated and replaced by tk2dCamera.


Member Function Documentation

static float tk2dPixelPerfectHelper.CalculateScaleForPerspectiveCamera ( float  fov,
float  zdist 
) [static]

Calculate scale to get 1:1 given fov in degress, and zdistance to camera. This assumes the screen resoulution hasn't changed.


Member Data Documentation

The ortho size parameter of the sprite collection, as it was set up.

The height of the collection target as it was set up.

The height of the resolution to map to. (eg. 1024x768 = 768)


Property Documentation

Is the linked camera orthographic?

Global singleton instance.