Class VertexGroup
- Namespace
- OmegaEngine.Graphics.Renderables
- Assembly
- OmegaEngine.dll
A simple set of vertexes that can be rendered.
public class VertexGroup : PositionableRenderable, IDisposable, IPositionable
- Inheritance
-
VertexGroup
- Implements
- Inherited Members
- Extension Methods
Remarks
No culling, intersect testing, etc.. Use Model for that.
Constructors
VertexGroup(PrimitiveType, PositionColored[], short[]?)
Creates a new colored vertex group
public VertexGroup(PrimitiveType primitiveType, PositionColored[] vertexes, short[]? indexes = null)
Parameters
primitiveType
PrimitiveTypeThe type of primitives to generate from the vertexes
vertexes
PositionColored[]An array for vertexes with position and color information
indexes
short[]An array of indexes for the index buffer;
null
for no indexes
VertexGroup(PrimitiveType, PositionNormalColored[], short[]?)
Creates a new colored vertex group
public VertexGroup(PrimitiveType primitiveType, PositionNormalColored[] vertexes, short[]? indexes = null)
Parameters
primitiveType
PrimitiveTypeThe type of primitives to generate from the vertexes
vertexes
PositionNormalColored[]An array for vertexes with position and color information
indexes
short[]An array of indexes for the index buffer;
null
for no indexes
VertexGroup(PrimitiveType, PositionNormalTextured[], short[]?, XMaterial)
Creates a new textured vertex group
public VertexGroup(PrimitiveType primitiveType, PositionNormalTextured[] vertexes, short[]? indexes, XMaterial material)
Parameters
primitiveType
PrimitiveTypeThe type of primitives to generate from the vertexes
vertexes
PositionNormalTextured[]An array for vertexes with position and texture information
indexes
short[]An array of indexes for the index buffer;
null
for no indexesmaterial
XMaterialThe material to use for rendering
VertexGroup(PrimitiveType, PositionTextured[], short[], XMaterial)
Creates a new textured vertex group
public VertexGroup(PrimitiveType primitiveType, PositionTextured[] vertexes, short[] indexes, XMaterial material)
Parameters
primitiveType
PrimitiveTypeThe type of primitives to generate from the vertexes
vertexes
PositionTextured[]An array for vertexes with position and texture information
indexes
short[]An array of indexes for the index buffer;
null
for no indexesmaterial
XMaterialThe material to use for rendering
Methods
OnDispose()
Hook that is called when the object needs to dispose its internal resources.
protected override void OnDispose()
OnEngineSet()
Hook that is called when Engine is set for the first time.
protected override void OnEngineSet()
Quad(float, ITextureProvider?)
Creates a new textured quad.
public static VertexGroup Quad(float size, ITextureProvider? texture = null)
Parameters
size
floatThe length of a border of the quad.
texture
ITextureProviderThe texture to place on the vertex group;
null
for no texture.
Returns
- VertexGroup
The vertex group that was created.