Packagecom.mousman.as3.agal.parser.shaders
Classpublic class ShaderSet
InheritanceShaderSet Inheritance Object

A ShaderSet has in charge to linked the fragment shader, the vertex shader and the writer used to create the VertexBuffer and the IndexBuffer



Public Properties
 PropertyDefined By
  id : String
[read-only] Id of a ShaderSet instance
ShaderSet
  program : Program3D
[read-only] program of the shader
ShaderSet
  shader : IMShader
IMShader instance
ShaderSet
  writer : IMBytesArrayWriter
IMBytesArrayWriter instance
ShaderSet
Public Methods
 MethodDefined By
  
ShaderSet(id:String, shader:IMShader, writer:IMBytesArrayWriter)
Constructor.
ShaderSet
  
assemble(context3D:Context3D):void
Assemble the fragment and vertex shaders
ShaderSet
  
assembleNupload(context3D:Context3D):void
Assemble and upload the fragment and vertex shaders
ShaderSet
  
destroy():void
ShaderSet
  
upload():void
Upload the fragment and vertex shaders
ShaderSet
Property Detail
idproperty
id:String  [read-only]

Id of a ShaderSet instance


Implementation
    public function get id():String
programproperty 
program:Program3D  [read-only]

program of the shader


Implementation
    public function get program():Program3D
shaderproperty 
shader:IMShader

IMShader instance


Implementation
    public function get shader():IMShader
    public function set shader(value:IMShader):void
writerproperty 
writer:IMBytesArrayWriter

IMBytesArrayWriter instance


Implementation
    public function get writer():IMBytesArrayWriter
    public function set writer(value:IMBytesArrayWriter):void
Constructor Detail
ShaderSet()Constructor
public function ShaderSet(id:String, shader:IMShader, writer:IMBytesArrayWriter)

Constructor. Creates a new ShaderSet instance.

Parameters
id:String — : String.

Id of a ShaderSet instance

 
shader:IMShader — : IMShader.

an IMShader instance

 
writer:IMBytesArrayWriter — : IMBytesArrayWriter.

a IMBytesArrayWriter instance

Method Detail
assemble()method
public function assemble(context3D:Context3D):void

Assemble the fragment and vertex shaders

Parameters

context3D:Context3D — : Context3D.

the context with wich the shaders will be assembled and uploaded

assembleNupload()method 
public function assembleNupload(context3D:Context3D):void

Assemble and upload the fragment and vertex shaders

Parameters

context3D:Context3D — : Context3D.

the context with wich the shaders will be assembled and uploaded

destroy()method 
public function destroy():void

upload()method 
public function upload():void

Upload the fragment and vertex shaders