-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBatchInfo.cs
More file actions
43 lines (39 loc) · 1.4 KB
/
BatchInfo.cs
File metadata and controls
43 lines (39 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
namespace OpenWheels.Rendering
{
/// <summary>
/// Information for rendering a batch.
/// </summary>
public struct BatchInfo
{
/// <summary>
/// Graphics state to set before rendering the batch.
/// </summary>
public readonly GraphicsState GraphicsState;
/// <summary>
/// Starting index in the index buffer for the batch.
/// </summary>
public readonly int Startindex;
/// <summary>
/// Number of indices in the batch.
/// </summary>
public readonly int IndexCount;
/// <summary>
/// User data attached to the batch.
/// </summary>
public readonly object UserData;
/// <summary>
/// Create a new BatchInfo instance.
/// </summary>
/// <param name="graphicsState">Graphics state to set before rendering the batch.</param>
/// <param name="startIndex">Starting index in the index buffer for the batch.</param>
/// <param name="indexCount">Number of indices in the batch.</param>
/// <param name="userData">User data attached to the batch.</param>
public BatchInfo(GraphicsState graphicsState, int startindex, int indexCount, object userData)
{
GraphicsState = graphicsState;
Startindex = startindex;
IndexCount = indexCount;
UserData = userData;
}
}
}