BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
BrawlLib.Modeling.GLPrimitive Class Reference

Public Member Functions

 GLPrimitive (int elements, BeginMode type)
 
void Render ()
 

Public Attributes

BeginMode _type
 
uint[] _indices
 

Constructor & Destructor Documentation

◆ GLPrimitive()

BrawlLib.Modeling.GLPrimitive.GLPrimitive ( int  elements,
BeginMode  type 
)
inline
2561 {
2562 _type = type;
2563 _indices = new uint[elements];
2564 }
BeginMode _type
Definition: PrimitiveManager.cs:2557
uint[] _indices
Definition: PrimitiveManager.cs:2558

Member Function Documentation

◆ Render()

void BrawlLib.Modeling.GLPrimitive.Render ( )
inline
2567 {
2568 GL.DrawElements(_type, _indices.Length, DrawElementsType.UnsignedInt, _indices);
2569 }

Member Data Documentation

◆ _indices

uint [] BrawlLib.Modeling.GLPrimitive._indices

◆ _type

BeginMode BrawlLib.Modeling.GLPrimitive._type

The documentation for this class was generated from the following file: