Python Script Engine  1.0
GL Studio Editor Python Script API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
VertexArray Class Reference

Public Member Functions

 VertexArray ()
 
void Insert (Vertex &v)
 
unsigned int GetCount (void)
 
VertexGetVertexAtIndex (int index)
 

Detailed Description

Common editor interface Vertex array.

If the VertexArray instance is empty, it will return 'False' in comparison checks.

1 # Python:
2 import VertexArray
3 vertexArray = VertexArray.VertexArray()
4 if vertexArray: # Will be False
5  pass
6 vertexArray.Insert( someVertex )
7 if vertexArray: # Will be True
8  pass

Constructor & Destructor Documentation

VertexArray::VertexArray ( )

default ctor

Member Function Documentation

unsigned int VertexArray::GetCount ( void  )

get the number of elements in the array

Returns
the number of elements in the array
Vertex* VertexArray::GetVertexAtIndex ( int  index)

get the vertex at the given index in the array

Parameters
indexthe index of the vertex to retrieve
Returns
Vertex * to the vertex at the given index
void VertexArray::Insert ( Vertex v)

insert the given vertex at the end of the array

Parameters
vvertex to insert

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