Delegate CreateGpuMesh
Delegate that points to a method that is able to create a GpuMesh
Namespace: Fusee.Engine.Core
Assembly: Fusee.Engine.Core.dll
Syntax
public delegate GpuMesh CreateGpuMesh(PrimitiveType primitiveType, float3[] vertices, uint[] triangles = null, float3[] normals = null, uint[] colors = null, uint[] colors1 = null, uint[] colors2 = null, float2[] uvs = null, float4[] tangents = null, float3[] bitangents = null, float4[] boneIndices = null, float4[] boneWeights = null, uint[] flags = null);
Parameters
Type | Name | Description |
---|---|---|
PrimitiveType | primitiveType | See PrimitiveType. |
float3[] | vertices | The vertices of the mesh. |
System.UInt32[] | triangles | The triangles of the mesh. |
float3[] | normals | The normals of the mesh. |
System.UInt32[] | colors | The colors of the mesh. |
System.UInt32[] | colors1 | The second color field of the mesh. |
System.UInt32[] | colors2 | The third color field of the mesh. |
float2[] | uvs | The UV coordinates of the mesh. |
float4[] | tangents | The tangents of the mesh. |
float3[] | bitangents | The bitangents of the mesh. |
float4[] | boneIndices | The boneIndices of the mesh. |
float4[] | boneWeights | The vertiboneWeightsces of the mesh. |
System.UInt32[] | flags |
Returns
Type | Description |
---|---|
GpuMesh |