Libraries.Game.Graphics.VertexAttributes Documentation

Inherits from: Libraries.Language.Object

Summary

Variable Summary Table

VariablesDescription
integer COLOR_UNPACKED
integer NORMAL
integer TEXTURE_COORDINATES
integer BONE_WEIGHT
integer BINORMAL
integer vertexSize
integer COLOR_PACKED
integer TANGENT
integer GENERIC
integer POSITION

Actions Summary Table

ActionsDescription
Compare(Libraries.Language.Object object)This action compares two object hash codes and returns a CompareResult.
Equals(Libraries.Language.Object object)
FindByUsage(integer usage)
GetAttribute(integer index)
GetHashCode()This action gets the hash code for an object.
GetIterator()
GetMask()This action will return an integer mask based on the contained VertexAttribute objects.
GetOffset(integer usage)
GetSize()
SetAttributes(Libraries.Containers.Array<Libraries.Game.Graphics.VertexAttribute> array)private ReadOnlyIterable iterab

Actions Documentation

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns a CompareResult. The compare result is either larger if this hash code is larger than the object passed as a parameter, smaller, or equal.

Example Code

use Libraries.Language.Support.CompareResult
        Object o
        Object t
        CompareResult result = o:Compare(t)

Parameters

Return

Libraries.Language.Support.CompareResult: The Compare result, Smaller, Equal, or Larger.

Equals(Libraries.Language.Object object)

Parameters

Return

boolean

FindByUsage(integer usage)

Parameters

Return

Libraries.Game.Graphics.VertexAttribute

GetAttribute(integer index)

Parameters

Return

Libraries.Game.Graphics.VertexAttribute

GetHashCode()

This action gets the hash code for an object.

Example Code

Object o
        integer hash = o:GetHashCode()

Return

integer: The integer hash code of the object.

GetIterator()

Return

Libraries.Containers.Iterator

GetMask()

This action will return an integer mask based on the contained VertexAttribute objects. The integer mask is calculated by using bitwise Or operations on the usage value of each VertexAttribute.

Return

integer:

GetOffset(integer usage)

Parameters

Return

integer

GetSize()

Return

integer

SetAttributes(Libraries.Containers.Array<Libraries.Game.Graphics.VertexAttribute> array)

private ReadOnlyIterable iterab

Parameters