Libraries.Game.Graphics.VertexAttributes Documentation

Inherits from: Libraries.Language.Object

Summary

Variable Summary Table

VariablesDescription
integer GENERIC
integer COLOR_UNPACKED
integer COLOR_PACKED
integer TEXTURE_COORDINATES
integer vertexSizeThe cached value of the GetMask actio
integer BONE_WEIGHT
integer BINORMAL
integer NORMAL
integer TANGENT
integer POSITION

Actions Summary Table

ActionsDescription
Compare(Libraries.Language.Object object)This action compares two object hash codes and returns an integer.
Equals(Libraries.Language.Object object)
FindByUsage(integer usage)private ReadOnlyIterable iterab
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)private ReadOnlyIterable iterab
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 an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.

Example Code

Object o
        Object t
        integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smalle

Parameters

Return

integer: The Compare result, Smaller, Equal, or Larger.

Equals(Libraries.Language.Object object)

Parameters

Return

boolean

FindByUsage(integer usage)

private ReadOnlyIterable iterab

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 VertexAttribut

Return

integer:

GetOffset(integer usage)

private ReadOnlyIterable iterab

Parameters

Return

integer:

GetSize()

Return

integer

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

private ReadOnlyIterable iterab

Parameters