Skip to content

SDL3BatchRenderer.IndicesToDraw(int) Method

Definition

Namespace: Brine2D.Rendering

Converts a vertex count \(always a multiple of [Brine2D\.Rendering\.SDL3BatchRenderer\.VerticesPerQuad](https://learn.microsoft.com/en-us/dotnet/api/brine2d.rendering.sdl3batchrenderer.verticesperquad 'Brine2D\.Rendering\.SDL3BatchRenderer\.VerticesPerQuad')\) to the corresponding index count for indexed drawing.

C#
public static int IndicesToDraw(int vertexCount);

Parameters

vertexCount System.Int32

Returns

System.Int32