Public Methods
 FunctionDefined By
  
calculateSnapshotTextureDimensions(width:Number, height:Number, maximum:Number, supportsRectangleTexture:Boolean, result:Point = null):Point
Calculates the dimensions of the texture needed to display an item with the specified width and height, accepting a maximum where the snapshot must be split into multiple textures.
feathers.utils.textures
Function detail
calculateSnapshotTextureDimensions()function
public function calculateSnapshotTextureDimensions(width:Number, height:Number, maximum:Number, supportsRectangleTexture:Boolean, result:Point = null):Point

Product Version : Feathers 3.1.0

Calculates the dimensions of the texture needed to display an item with the specified width and height, accepting a maximum where the snapshot must be split into multiple textures. If Starling's profile is Context3DProfile.BASELINE_CONSTRAINED, will calculate power-of-two dimensions for the texture.

Parameters

width:Number
 
height:Number
 
maximum:Number
 
supportsRectangleTexture:Boolean
 
result:Point (default = null)

Returns
Point