Packageflare.flsl
Classpublic class FLSLScope
InheritanceFLSLScope Inheritance FLSL Inheritance Object
Subclasses FLSLFilter, FLSLShader

FLSLScope defines an scope of compiled flsl code such as a namespace, function, technique or pass.



Public Properties
 PropertyDefined By
 InheritedagalVersion : int = 1
[static]
FLSL
 Inheritedname : String
The name of the flsl object.
FLSL
  params : Object
Contains a collection of flsl public declarations.
FLSLScope
 Inheritedsemantic : String
The semantic which the object is associated.
FLSL
Public Methods
 MethodDefined By
  
FLSLScope(name:String = null)
Creates a new FLSLSCope object.
FLSLScope
  
bind(byteCode:ByteArray):void
Bind the compiled flsl code to be executed by the scope.
FLSLScope
  
call(ns:String, params:Array = null):uint
Call to a function stored in the scope.
FLSLScope
  
Retirms all technique names available in the scope.
FLSLScope
Property Detail
paramsproperty
public var params:Object

Contains a collection of flsl public declarations. Params may contain cero or many FLSL object such as FLSLParam, FLSLMatrix and FLSLSampler objects.

See also

Constructor Detail
FLSLScope()Constructor
public function FLSLScope(name:String = null)

Creates a new FLSLSCope object.

Parameters
name:String (default = null) — The name of the scope.
Method Detail
bind()method
public function bind(byteCode:ByteArray):void

Bind the compiled flsl code to be executed by the scope.

Parameters

byteCode:ByteArray — The flsl compiled code.

call()method 
public function call(ns:String, params:Array = null):uint

Call to a function stored in the scope.

Parameters

ns:String — The full path of the function for example: myNamespace.myFunction.
 
params:Array (default = null) — An array of uint pointer registers to pass as a parameter.

Returns
uint — An uint pointer to the register.
getTechniqueNames()method 
public function getTechniqueNames():Array

Retirms all technique names available in the scope.

Returns
Array — An array with all the technique names.