Package | com.mousman.as3.agal.parser.objs |
Class | public class MObjImportParser |
Inheritance | MObjImportParser ![]() |
Implements | IDestroyable |
Property | Defined By | ||
---|---|---|---|
mesh : MObjMesh [read-only]
the object containing mesh datas
| MObjImportParser |
Method | Defined By | ||
---|---|---|---|
MObjImportParser(context:Context3D, shaderStore:ShaderStore)
Constructor. | MObjImportParser | ||
destroy():void
delete datas
| MObjImportParser | ||
Parse the obj and mtl file and create the mesh datas
| MObjImportParser |
mesh | property |
mesh:MObjMesh
[read-only] the object containing mesh datas
public function get mesh():MObjMesh
MObjImportParser | () | Constructor |
public function MObjImportParser(context:Context3D, shaderStore:ShaderStore)
Constructor. Creates a new MObjParser instance.
After you create the MObjParser instance, call the parse method to create the mesh datas.
Parameterscontext:Context3D — : Context3D.Used to create and upload VertexBuffers and IndexBuffers | |
shaderStore:ShaderStore — : ShaderStore.Contains all the shaders used for the mesh |
destroy | () | method |
public function destroy():void
delete datas
parse | () | method |
public function parse(meshData:ByteArrayAsset, writerParams:MBuffersWriterDTO = null):MObjMesh
Parse the obj and mtl file and create the mesh datas
Parameters
meshData:ByteArrayAsset — : ByteArrayAsset.Contains the obj and mtl datas in a binary format | |
writerParams:MBuffersWriterDTO (default = null ) — : MBuffersWriterDTO used to force color on the mesh. |
MObjMesh — the datas of the mesh
|