Packagealternativa.types
Classpublic class Texture

Class for texture storage.

See also

alternativa.engine3d.materials.TextureMaterial


Public Properties
 PropertyDefined by
  bitmapData : BitmapData
[read-only] Graphic content of the texture.
Texture
  height : uint
[read-only] Height of the texture.
Texture
  name : String
[read-only] Name of the texture.
Texture
  width : uint
[read-only] Width of the texture.
Texture
Public Methods
 MethodDefined by
  
Texture(bitmapData:BitmapData, name:String = null)
Create class instance.
Texture
  
toString():String
Get string representation of object.
Texture
Property detail
bitmapDataproperty
bitmapData:BitmapData  [read-only]

Graphic content of the texture.

Implementation
    public function get bitmapData():BitmapData
heightproperty 
height:uint  [read-only]

Height of the texture.

Implementation
    public function get height():uint
nameproperty 
name:String  [read-only]

Name of the texture.

Implementation
    public function get name():String
widthproperty 
width:uint  [read-only]

Width of the texture.

Implementation
    public function get width():uint
Constructor detail
Texture()constructor
public function Texture(bitmapData:BitmapData, name:String = null)

Create class instance.

Parameters
bitmapData:BitmapDatagraphic texture content
 
name:String (default = null)texture name
Method detail
toString()method
public function toString():String

Get string representation of object.

Returns
Stringstring object representation