Chunks
Moddable voxel sandbox for room-scale VR.
Public Member Functions | Public Attributes | List of all members
Chunks.Graphics.BlockVertex Struct Reference

Structure used for generating models with integral vertex positions and faces aligned to each axis. More...

Inheritance diagram for Chunks.Graphics.BlockVertex:

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
 

Detailed Description

Structure used for generating models with integral vertex positions and faces aligned to each axis.

Constructor & Destructor Documentation

Chunks.Graphics.BlockVertex.BlockVertex ( IntVector  pos,
Face  face,
int  textureIndex,
Color  color 
)

Constructs a new block vertex with the given position, face, and texture index.

Parameters
posVertex position
faceVertex face
textureIndexVertex texture index
colorVertex color

Member Function Documentation

override bool Chunks.Graphics.BlockVertex.Equals ( object  obj)

Test for equality with another object.

Parameters
objObject to test for equality with
bool Chunks.Graphics.BlockVertex.Equals ( BlockVertex  obj)

Test for equality with another BlockVertex.

Parameters
objBlockVertex to test for equality with
override int Chunks.Graphics.BlockVertex.GetHashCode ( )

Returns the hash code for this instance.

Member Data Documentation

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.


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