Allows remapping resolution and rescaling based on settings in this class. Deprecated and replaced by tk2dCamera. More...
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? | |
Allows remapping resolution and rescaling based on settings in this class. Deprecated and replaced by tk2dCamera.
| 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.
| float tk2dPixelPerfectHelper.collectionOrthoSize = 1.0f |
The ortho size parameter of the sprite collection, as it was set up.
The height of the collection target as it was set up.
| float tk2dPixelPerfectHelper.targetResolutionHeight = 640.0f |
The height of the resolution to map to. (eg. 1024x768 = 768)
bool tk2dPixelPerfectHelper.CameraIsOrtho [get] |
Is the linked camera orthographic?
tk2dPixelPerfectHelper tk2dPixelPerfectHelper.inst [static, get] |
Global singleton instance.