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
primitiveTypePrimitiveTypeThe type of primitives to generate from the vertexes
vertexesPositionColored[]An array for vertexes with position and color information
indexesshort[]An array of indexes for the index buffer;
nullfor no indexes
VertexGroup(PrimitiveType, PositionNormalColored[], short[]?)
Creates a new colored vertex group
public VertexGroup(PrimitiveType primitiveType, PositionNormalColored[] vertexes, short[]? indexes = null)
Parameters
primitiveTypePrimitiveTypeThe type of primitives to generate from the vertexes
vertexesPositionNormalColored[]An array for vertexes with position and color information
indexesshort[]An array of indexes for the index buffer;
nullfor no indexes
VertexGroup(PrimitiveType, PositionNormalTextured[], short[]?, XMaterial)
Creates a new textured vertex group
public VertexGroup(PrimitiveType primitiveType, PositionNormalTextured[] vertexes, short[]? indexes, XMaterial material)
Parameters
primitiveTypePrimitiveTypeThe type of primitives to generate from the vertexes
vertexesPositionNormalTextured[]An array for vertexes with position and texture information
indexesshort[]An array of indexes for the index buffer;
nullfor no indexesmaterialXMaterialThe 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
primitiveTypePrimitiveTypeThe type of primitives to generate from the vertexes
vertexesPositionTextured[]An array for vertexes with position and texture information
indexesshort[]An array of indexes for the index buffer;
nullfor no indexesmaterialXMaterialThe 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
sizefloatThe length of a border of the quad.
textureITextureProviderThe texture to place on the vertex group;
nullfor no texture.
Returns
- VertexGroup
The vertex group that was created.