Chunks
Moddable voxel sandbox for room-scale VR.
|
Structure used for generating models with integral vertex positions and faces aligned to each axis. More...
Public Member Functions | |
BlockVertex (IntVector pos, Face face, int textureIndex, Color color) | |
Constructs a new block vertex with the given position, face, and texture index. More... | |
override bool | Equals (object obj) |
Test for equality with another object. More... | |
bool | Equals (BlockVertex obj) |
Test for equality with another BlockVertex. More... | |
override int | GetHashCode () |
Returns the hash code for this instance. More... | |
Public Attributes | |
readonly IntVector | Position |
Position of the vertex. More... | |
readonly Face | Face |
Face of the vertex, used to find a normal. More... | |
readonly int | TextureIndex |
Texture index of the vertex. More... | |
readonly Color | Color |
Structure used for generating models with integral vertex positions and faces aligned to each axis.
Constructs a new block vertex with the given position, face, and texture index.
pos | Vertex position |
face | Vertex face |
textureIndex | Vertex texture index |
color | Vertex color |
override bool Chunks.Graphics.BlockVertex.Equals | ( | object | obj | ) |
Test for equality with another object.
obj | Object to test for equality with |
bool Chunks.Graphics.BlockVertex.Equals | ( | BlockVertex | obj | ) |
Test for equality with another BlockVertex.
obj | BlockVertex to test for equality with |
override int Chunks.Graphics.BlockVertex.GetHashCode | ( | ) |
Returns the hash code for this instance.
readonly Color Chunks.Graphics.BlockVertex.Color |
readonly Face Chunks.Graphics.BlockVertex.Face |
Face of the vertex, used to find a normal.
readonly IntVector Chunks.Graphics.BlockVertex.Position |
Position of the vertex.
readonly int Chunks.Graphics.BlockVertex.TextureIndex |
Texture index of the vertex.