Exemplo n.º 1
0
 /// <summary>Scales an existing cooked convex mesh and outputs it into another stream. </summary>
 /// <param name="source">The source cooked convex mesh to scale. </param>
 /// <param name="scale">The uniform scale factor to apply to the convex mesh. </param>
 /// <param name="dest">User stream to output the cooked data. </param>
 public virtual bool NxScaleCookedConvexMesh(NxStream source, float scale, NxStream dest)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxCookingInterface_NxScaleCookedConvexMesh_INVOKE(ClassPointer, doSetFunctionPointers, (source != null ? source.ClassPointer : NullRef), scale, (dest != null ? dest.ClassPointer : NullRef)));
 }
Exemplo n.º 2
0
 /// <summary>Cooks a tetrahedral mesh to a SoftBodyMesh. </summary>
 /// <param name="desc">The soft body mesh descriptor on which the generation of the cooked mesh depends. </param>
 /// <param name="stream">The stream the cooked mesh is written to. </param>
 public virtual bool NxCookSoftBodyMesh(NxSoftBodyMeshDesc desc, NxStream stream)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxCookingInterface_NxCookSoftBodyMesh_INVOKE(ClassPointer, doSetFunctionPointers, (desc != null ? desc.ClassPointer : NullRef), (stream != null ? stream.ClassPointer : NullRef)));
 }
Exemplo n.º 3
0
 /// <summary>Called to write an array of bytes to the stream. </summary>
 /// <param name="buffer">Array of bytes, size bytes in size. </param>
 /// <param name="size">Size, in bytes of buffer. </param>
 public virtual NxStream storeBuffer(System.IntPtr buffer, uint size)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxStream.GetClass(NxStream_storeBuffer_INVOKE(ClassPointer, doSetFunctionPointers, buffer, size)));
 }
Exemplo n.º 4
0
 /// <summary>Load the triangle mesh from a stream. </summary>
 /// <param name="stream">Stream to load triangle mesh from. </param>
 public virtual bool load(NxStream stream)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxTriangleMesh_load_INVOKE(ClassPointer, doSetFunctionPointers, (stream != null ? stream.ClassPointer : NullRef)));
 }
Exemplo n.º 5
0
 /// <summary>Called to write a double precision floating point value to the stream(64 bits). </summary>
 /// <param name="f">floating point value to store. </param>
 public virtual NxStream storeDouble(double f)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxStream.GetClass(NxStream_storeDouble_INVOKE(ClassPointer, doSetFunctionPointers, f)));
 }
Exemplo n.º 6
0
 /// <summary>Creates a soft body mesh from a cooked soft body mesh stored in a stream. </summary>
 public virtual NxSoftBodyMesh createSoftBodyMesh(NxStream stream)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxSoftBodyMesh.GetClass(NxPhysicsSDK_createSoftBodyMesh_INVOKE(ClassPointer, doSetFunctionPointers, (stream != null ? stream.ClassPointer : NullRef))));
 }
Exemplo n.º 7
0
 private bool NxScaleCookedConvexMesh_virtual(IntPtr source, float scale, IntPtr dest)
 {
     return(NxScaleCookedConvexMesh(NxStream.GetClass(source), scale, NxStream.GetClass(dest)));
 }
Exemplo n.º 8
0
 private bool NxCookSoftBodyMesh_virtual(IntPtr desc, IntPtr stream)
 {
     return(NxCookSoftBodyMesh(NxSoftBodyMeshDesc.GetClass(desc), NxStream.GetClass(stream)));
 }
Exemplo n.º 9
0
 private bool NxCookTriangleMesh_virtual(IntPtr desc, IntPtr stream)
 {
     return(NxCookTriangleMesh(NxTriangleMeshDesc.GetClass(desc), NxStream.GetClass(stream)));
 }
Exemplo n.º 10
0
 private bool load_virtual(IntPtr stream)
 {
     return(load(NxStream.GetClass(stream)));
 }
Exemplo n.º 11
0
 /// <summary>Store a signed dword(wrapper for the unsigned version). </summary>
 /// <param name="d">DWord to store. </param>
 public NxStream storeDword(int d)
 {
     return(NxStream.GetClass(NxStream_storeDword_1_INVOKE(ClassPointer, doSetFunctionPointers, d)));
 }
Exemplo n.º 12
0
 /// <summary>Store a signed word(wrapper for the unsigned version). </summary>
 /// <param name="w">Word to store. </param>
 public NxStream storeWord(short w)
 {
     return(NxStream.GetClass(NxStream_storeWord_1_INVOKE(ClassPointer, doSetFunctionPointers, w)));
 }
Exemplo n.º 13
0
 /// <summary>Store a signed byte(wrapper for the unsigned version). </summary>
 /// <param name="b">Byte to store. </param>
 public NxStream storeByte(sbyte b)
 {
     return(NxStream.GetClass(NxStream_storeByte_1_INVOKE(ClassPointer, doSetFunctionPointers, b)));
 }
Exemplo n.º 14
0
 private IntPtr createSoftBodyMesh_virtual(IntPtr stream)
 {
     return(createSoftBodyMesh(NxStream.GetClass(stream)).ClassPointer.Handle);
 }
Exemplo n.º 15
0
 private IntPtr createConvexMesh_virtual(IntPtr mesh)
 {
     return(createConvexMesh(NxStream.GetClass(mesh)).ClassPointer.Handle);
 }