Beispiel #1
0
 private void Initiliase(MeshPtr meshPtr, bool autodispose_meshPtr, Vector3 scale, Quaternion qua, Vector3 pos, bool readtextcroodnitas)
 {
     this._scale = scale;
     //this._meshPtr = meshPtr;
     this.meshName = meshPtr.Name;
     this.opType   = meshPtr.GetSubMesh(0).operationType;
     this._readTextureCoordinate = readtextcroodnitas;
     this._quaoffset             = qua;
     this._posoffset             = pos;
     PrepareBuffers(meshPtr);
     ReadData(meshPtr);
     if (autodispose_meshPtr)
     {
         meshPtr.Dispose();
         meshPtr = null;
     }
 }
 private void Initiliase(MeshPtr meshPtr, bool autodispose_meshPtr, Vector3 scale, Quaternion qua, Vector3 pos, bool readtextcroodnitas) {
     this._scale = scale;
     //this._meshPtr = meshPtr;
     this.meshName = meshPtr.Name;
     this.opType = meshPtr.GetSubMesh(0).operationType;
     this._readTextureCoordinate = readtextcroodnitas;
     this._quaoffset = qua;
     this._posoffset = pos;
     PrepareBuffers(meshPtr);
     ReadData(meshPtr);
     if (autodispose_meshPtr) {
         meshPtr.Dispose();
         meshPtr = null;
     }
 }