@@ -84,7 +84,7 @@ vec4 effect(vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords)
84
84
85
85
public PolygonBatcher ( int vertexCount )
86
86
{
87
- mesh = Graphics . NewMesh ( VertexPositionColorTextureColor . VertexInfo . formatList , vertexCount , MeshDrawMode . Trangles , SpriteBatchUsage . Dynamic ) ;
87
+ mesh = Graphics . NewMesh ( VertexPositionColorTextureColor . VertexFormatDescribute , vertexCount , MeshDrawMode . Trangles , SpriteBatchUsage . Dynamic ) ;
88
88
//mesh = Graphics.NewMesh(Love.Misc.MeshUtils.GetVertexFormat(), vertexCount, MeshDrawMode.Trangles, SpriteBatchUsage.Dynamic);
89
89
maxVerticesLength = vertexCount ;
90
90
maxIndicesLength = vertexCount * 3 ;
@@ -264,21 +264,21 @@ public void Stop()
264
264
[ StructLayout ( LayoutKind . Explicit ) ]
265
265
public struct VertexPositionColorTextureColor
266
266
{
267
- [ FieldOffset ( 0 ) , Name ( "VertexPosition" ) ] public float X ;
268
- [ FieldOffset ( 4 ) , Name ( "VertexPosition" ) ] public float Y ;
267
+ [ FieldOffset ( 0 ) , MeshAttributeName ( "VertexPosition" ) ] public float X ;
268
+ [ FieldOffset ( 4 ) , MeshAttributeName ( "VertexPosition" ) ] public float Y ;
269
269
270
- [ FieldOffset ( 8 ) , Name ( "VertexTexCoord" ) ] public float U ;
271
- [ FieldOffset ( 12 ) , Name ( "VertexTexCoord" ) ] public float V ;
270
+ [ FieldOffset ( 8 ) , MeshAttributeName ( "VertexTexCoord" ) ] public float U ;
271
+ [ FieldOffset ( 12 ) , MeshAttributeName ( "VertexTexCoord" ) ] public float V ;
272
272
273
- [ FieldOffset ( 16 ) , Name ( "VertexColor" ) ] public byte R ;
274
- [ FieldOffset ( 17 ) , Name ( "VertexColor" ) ] public byte G ;
275
- [ FieldOffset ( 18 ) , Name ( "VertexColor" ) ] public byte B ;
276
- [ FieldOffset ( 19 ) , Name ( "VertexColor" ) ] public byte A ;
273
+ [ FieldOffset ( 16 ) , MeshAttributeName ( "VertexColor" ) ] public byte R ;
274
+ [ FieldOffset ( 17 ) , MeshAttributeName ( "VertexColor" ) ] public byte G ;
275
+ [ FieldOffset ( 18 ) , MeshAttributeName ( "VertexColor" ) ] public byte B ;
276
+ [ FieldOffset ( 19 ) , MeshAttributeName ( "VertexColor" ) ] public byte A ;
277
277
278
- [ FieldOffset ( 20 ) , Name ( "VertexColor2" ) ] public byte R2 ;
279
- [ FieldOffset ( 21 ) , Name ( "VertexColor2" ) ] public byte G2 ;
280
- [ FieldOffset ( 22 ) , Name ( "VertexColor2" ) ] public byte B2 ;
281
- [ FieldOffset ( 23 ) , Name ( "VertexColor2" ) ] public byte A2 ;
278
+ [ FieldOffset ( 20 ) , MeshAttributeName ( "VertexColor2" ) ] public byte R2 ;
279
+ [ FieldOffset ( 21 ) , MeshAttributeName ( "VertexColor2" ) ] public byte G2 ;
280
+ [ FieldOffset ( 22 ) , MeshAttributeName ( "VertexColor2" ) ] public byte B2 ;
281
+ [ FieldOffset ( 23 ) , MeshAttributeName ( "VertexColor2" ) ] public byte A2 ;
282
282
283
283
284
284
[ FieldOffset ( 0 ) ] byte b_x1 ;
@@ -298,7 +298,7 @@ public struct VertexPositionColorTextureColor
298
298
[ FieldOffset ( 14 ) ] byte b_v3 ;
299
299
[ FieldOffset ( 15 ) ] byte b_v4 ;
300
300
301
- public readonly static Info < VertexPositionColorTextureColor > VertexInfo = Parse < VertexPositionColorTextureColor > ( ) ;
301
+ public readonly static MeshFormatDescribe < VertexPositionColorTextureColor > VertexFormatDescribute = MeshFormatDescribe . New < VertexPositionColorTextureColor > ( ) ;
302
302
303
303
304
304
//public static byte[] TransformToBytesByCopy(ref VertexPositionColorTextureColor vpcc)
0 commit comments