예제 #1
0
 public void Update(rthsMeshData md, Matrix4x4 trans)
 {
     if (instData && meshData != md)
     {
         instData.Release();
     }
     meshData = md;
     if (!instData)
     {
         instData = rthsMeshInstanceData.Create(md);
     }
     instData.SetTransform(trans);
 }
 public void Update(rthsMeshData md, rthsInstanceFlag flags, Matrix4x4 trans, GameObject go)
 {
     if (instData && meshData != md)
     {
         instData.Release();
     }
     meshData = md;
     if (!instData)
     {
         instData      = rthsMeshInstanceData.Create(md);
         instData.name = go.name;
     }
     instData.transform = trans;
     instData.flags     = flags;
     instData.layer     = go.layer;
 }
예제 #3
0
 public void AddGeometry(rthsMeshInstanceData mesh, rthsHitMask rmask, rthsHitMask cmask)
 {
     rthsRendererAddGeometry(self, mesh, rmask, cmask);
 }
예제 #4
0
 [DllImport("rths")] static extern void rthsRendererAddGeometry(IntPtr self, rthsMeshInstanceData mesh, rthsHitMask rmask, rthsHitMask cmask);
예제 #5
0
 public void AddMesh(rthsMeshInstanceData mesh)
 {
     rthsRendererAddMesh(self, mesh);
 }
예제 #6
0
 [DllImport("rths")] static extern void rthsRendererAddMesh(IntPtr self, rthsMeshInstanceData mesh);