| Property | Defined by | ||
|---|---|---|---|
| _generator : Function | BitmapPool | ||
| _height : int | BitmapPool | ||
| _heuristic : Function | BitmapPool | ||
| _lookup : Array | BitmapPool | ||
| _miss : int | BitmapPool | ||
| _pool : Array | BitmapPool | ||
| _read : int | BitmapPool | ||
| _width : int | BitmapPool | ||
| Method | Defined by | ||
|---|---|---|---|
|
BitmapPool(size:int, width:int, height:int, generator:Function, heuristic:Function = null)
| BitmapPool | ||
|
clear():void
| BitmapPool | ||
|
clearIndex(idx:int):void
| BitmapPool | ||
|
getBitmap(idx:int):BitmapData
| BitmapPool | ||
|
inPool(idx:int):Boolean
| BitmapPool | ||
|
ratio():Number
| BitmapPool | ||
| Method | Defined by | ||
|---|---|---|---|
|
generateBitmap(idx:int):int
Generates a bitmap and stores it in the last used cache slot.
| BitmapPool | ||
| _generator | property |
protected var _generator:Function
| _height | property |
protected var _height:int
| _heuristic | property |
protected var _heuristic:Function
| _lookup | property |
protected var _lookup:Array
| _miss | property |
protected var _miss:int
| _pool | property |
protected var _pool:Array
| _read | property |
protected var _read:int
| _width | property |
protected var _width:int
| BitmapPool | () | constructor |
public function BitmapPool(size:int, width:int, height:int, generator:Function, heuristic:Function = null)Parameters
size:int |
|
width:int |
|
height:int |
|
generator:Function |
|
heuristic:Function (default = null) |
| clear | () | method |
public function clear():void
| clearIndex | () | method |
public function clearIndex(idx:int):voidParameters
idx:int |
| generateBitmap | () | method |
protected function generateBitmap(idx:int):intGenerates a bitmap and stores it in the last used cache slot.
Parametersidx:int |
int |
| getBitmap | () | method |
public function getBitmap(idx:int):BitmapDataParameters
idx:int |
BitmapData |
| inPool | () | method |
public function inPool(idx:int):BooleanParameters
idx:int |
Boolean |
| ratio | () | method |
public function ratio():Number
Returns
Number |