2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-05 11:19:39 -04:00

Some fixes

This commit is contained in:
msmshazan 2018-10-15 16:50:44 +05:30
parent 4267707d51
commit f9b3233c69

View File

@ -506,43 +506,28 @@ namespace Raylib
// Vertex data definning a mesh // Vertex data definning a mesh
// NOTE: Data stored in CPU memory (and GPU) // NOTE: Data stored in CPU memory (and GPU)
[StructLayout(LayoutKind.Explicit, CharSet = CharSet.Ansi,Size = 128)] [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public unsafe struct Mesh public unsafe struct Mesh
{ {
[FieldOffset(0)]
public int vertexCount; public int vertexCount;
[FieldOffset(4)]
public int triangleCount; public int triangleCount;
[FieldOffset(8)]
public IntPtr vertices; public IntPtr vertices;
[FieldOffset(16)]
public IntPtr texcoords; public IntPtr texcoords;
[FieldOffset(24)]
public IntPtr texcoords2; public IntPtr texcoords2;
[FieldOffset(32)]
public IntPtr normals; public IntPtr normals;
[FieldOffset(40)]
public IntPtr tangents; public IntPtr tangents;
[FieldOffset(48)]
public IntPtr colors; public IntPtr colors;
[FieldOffset(56)]
public IntPtr indices; public IntPtr indices;
[FieldOffset(64)]
public IntPtr baseVertices; public IntPtr baseVertices;
[FieldOffset(72)]
public IntPtr baseNormals; public IntPtr baseNormals;
[FieldOffset(80)]
public IntPtr weightBias; public IntPtr weightBias;
[FieldOffset(88)]
public IntPtr weightId; public IntPtr weightId;
[FieldOffset(96)]
public uint vaoId; public uint vaoId;
[FieldOffset(100)]
public fixed uint vboId[7]; public fixed uint vboId[7];
} }
@ -594,7 +579,7 @@ namespace Raylib
} }
} }
// Material type (generic) // Material type (generic)
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi,Size = 480)] [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct Material public struct Material
{ {