Table of Contents

Struct DrawGroup

Namespace
ReFuel.Resources
Assembly
ReFuel.dll

A draw group is a part of the model that is rendered with the same material.

public readonly record struct DrawGroup : IEquatable<DrawGroup>
Implements
Inherited Members

Constructors

DrawGroup(PrimitiveAlgorithm, int, int, int, int, ElementSource)

A draw group is a part of the model that is rendered with the same material.

public DrawGroup(PrimitiveAlgorithm Algorithm, int Start, int Count, int Restart = -1, int BaseVertex = 0, ElementSource ElementSource = ElementSource.Counter)

Parameters

Algorithm PrimitiveAlgorithm
Start int
Count int
Restart int
BaseVertex int
ElementSource ElementSource

Properties

Algorithm

public PrimitiveAlgorithm Algorithm { get; init; }

Property Value

PrimitiveAlgorithm

BaseVertex

public int BaseVertex { get; init; }

Property Value

int

Count

public int Count { get; init; }

Property Value

int

ElementSource

public ElementSource ElementSource { get; init; }

Property Value

ElementSource

End

public int End { get; }

Property Value

int

Restart

public int Restart { get; init; }

Property Value

int

Start

public int Start { get; init; }

Property Value

int

VertexArray

The vertex array for this draw group. Overrides the model's default vertex array if present.

public VertexArrayEx? VertexArray { get; init; }

Property Value

VertexArrayEx