Пример #1
0
 public void DrawVertexPrimitiveList(Vertex3DTangents[] vertices, PrimitiveType pType)
 {
     ushort[] indexList = new ushort[vertices.Length];
     for (ushort i = 0; i < vertices.Length; i++)
         indexList[i] = i;
     DrawVertexPrimitiveList(vertices, indexList, pType);
 }
Пример #2
0
 public void DrawVertexPrimitiveList(Vertex3DTangents[] vertices, ushort[] indexList, int triangleCount, PrimitiveType pType)
 {
     DrawVertexPrimitiveList(vertices, vertices.Length, indexList, triangleCount, pType);
 }
Пример #3
0
 public void DrawVertexPrimitiveList(Vertex3DTangents[] vertices, ushort[] indexList, PrimitiveType pType)
 {
     DrawVertexPrimitiveList(vertices, indexList, vertices.Length / 3, pType);
 }
Пример #4
0
 public void DrawIndexedTriangleList(Vertex3DTangents[] vertices)
 {
     ushort[] indexList = new ushort[vertices.Length];
     for (ushort i = 0; i < vertices.Length; i++)
         indexList[i] = i;
     DrawIndexedTriangleList(vertices, indexList);
 }
Пример #5
0
 public void DrawVertexPrimitiveList(Vertex3DTangents[] vertices, int vertexCount, ushort[] indexList, int triangleCount, PrimitiveType pType)
 {
     IntPtr[] rawlist = new IntPtr[vertexCount];
     for (int i = 0; i < rawlist.Length; i++)
         rawlist[i] = vertices[i].Raw;
     VideoDriver_DrawVertexPrimitiveList(_raw, rawlist, vertexCount, indexList, triangleCount, VertexType.Tangents, pType);
 }
Пример #6
0
 public void DrawIndexedTriangleList(Vertex3DTangents[] vertices, ushort[] indexList)
 {
     DrawIndexedTriangleList(vertices, vertices.Length, indexList, vertices.Length / 3);
 }
Пример #7
0
 public void DrawIndexedTriangleList(Vertex3DTangents[] vertices, int vertexCount, ushort[] indexList, int triangleCount)
 {
     IntPtr[] rawlist = new IntPtr[vertexCount];
     for (int i = 0; i < rawlist.Length; i++)
         rawlist[i] = vertices[i].Raw;
     VideoDriver_DrawIndexedTriangleListT(_raw, rawlist, vertexCount, indexList, triangleCount);
 }
Пример #8
0
 public void DrawIndexedTriangleFan(Vertex3DTangents[] vertices)
 {
     ushort[] indexFan = new ushort[vertices.Length];
     for (ushort i = 0; i < vertices.Length; i++)
         indexFan[i] = i;
     DrawIndexedTriangleFan(vertices, indexFan);
 }
Пример #9
0
 public void DrawIndexedTriangleFan(Vertex3DTangents[] vertices, ushort[] indexFan)
 {
     DrawIndexedTriangleFan(vertices, vertices.Length, indexFan, vertices.Length / 3);
 }
Пример #10
0
 /*
  * Tangents
  */
 public void DrawIndexedTriangleFan(Vertex3DTangents[] vertices, int vertexCount, ushort[] indexFan, int triangleCount)
 {
     IntPtr[] rawFan = new IntPtr[vertexCount];
     for (int i = 0; i < vertexCount; i++)
         rawFan[i] = vertices[i].Raw;
     VideoDriver_DrawIndexedTriangleFanT(_raw, rawFan, vertexCount, indexFan, triangleCount);
 }