Package | com.mousman.as3.agal.parser.shaders |
Class | public class ShaderSet |
Inheritance | ShaderSet ![]() |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
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 |
id | property |
id:String
[read-only] Id of a ShaderSet instance
public function get id():String
program | property |
program:Program3D
[read-only] program of the shader
public function get program():Program3D
shader | property |
shader:IMShader
IMShader instance
public function get shader():IMShader
public function set shader(value:IMShader):void
writer | property |
writer:IMBytesArrayWriter
IMBytesArrayWriter instance
public function get writer():IMBytesArrayWriter
public function set writer(value:IMBytesArrayWriter):void
ShaderSet | () | Constructor |
public function ShaderSet(id:String, shader:IMShader, writer:IMBytesArrayWriter)
Constructor. Creates a new ShaderSet instance.
Parametersid:String — : String.Id of a ShaderSet instance | |
shader:IMShader — : IMShader.an IMShader instance | |
writer:IMBytesArrayWriter — : IMBytesArrayWriter.a IMBytesArrayWriter instance |
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