Méthode | Description | |
---|---|---|
CreateVertices ( ) : void | ||
Render ( |
This override is called by whomever is controlling the rendering process. We call the base Render method as it will automatically use the vertices, indices, and texture coordinates to draw the quads.
|
|
XYAxesMesh ( |
To construct a mesh, we need to know the size and resolution. We also set the texture as a convenience.
|
Méthode | Description | |
---|---|---|
CreateIndices ( ) : void | ||
CreateMesh ( ) : void |
Do the work of creating the mesh vertices, indices, and texture coordinates.
|
|
CreateTextureCoords ( ) : void | ||
SetupTextureOptions ( |
public Render ( |
||
GI | ||
Résultat | void |
public XYAxesMesh ( |
||
gi | ||
boundary | Vector3D | The size on the XY plane. The value is not used. |
res | The resolution determines how many rows and columns of quads will be generated. | |
texture | An optional texture object to be bound to the mesh. /// Normalized texture coordinates will be generated whether a texture object is assigned or not. | |
Résultat | System |