public void Draw(Texture.TextureBase texture, Matrix matrix, float alpha, Color4 overlayColor, PrimitiveType primitiveType, ColoredTexturedVertex[] vertices, int offset, int count) { if (texture == null) { return; } spriteInfos.Add(new SpriteInfo(texture, matrix, alpha, overlayColor, primitiveType, vertices, offset, count, scissorRectStates.Count - 1)); }
public SpriteInfo(Texture.TextureBase texture, Matrix matrix, float alpha, Color4 overlayColor, PrimitiveType primitiveType, ColoredTexturedVertex[] vertices, int offset, int count, int scissorRectIndex) { Texture = texture; Matrix = matrix; Alpha = alpha; Vertices = vertices; OverlayColor = overlayColor; PrimitiveType = primitiveType; Offset = offset; Count = count; ScissorRectIndex = scissorRectIndex; }