ExMujoco.Types.MjrVertexAttributeType (ExMujoco v0.2.3)

Copy Markdown View Source

mjrVertexAttributeType_ — data format of a vertex attribute. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.

Summary

Functions

mjVERTEX_ATTRIBUTE_TYPE_FLOAT2 is 0 — 2D 32-bit float vector.

mjVERTEX_ATTRIBUTE_TYPE_FLOAT3 is 1 — 3D 32-bit float vector.

mjVERTEX_ATTRIBUTE_TYPE_FLOAT4 is 2 — 4D 32-bit float vector.

mjVERTEX_ATTRIBUTE_TYPE_UBYTE4 is 3 — 4D unsigned 8-bit byte vector.

The name behind an integer. An atom is already one.

The integer behind a name. An integer is already one.

Every value, as {name, integer}, in the order the header lists them.

Types

t()

@type t() :: integer()

Functions

attribute_type_float2()

@spec attribute_type_float2() :: 0

mjVERTEX_ATTRIBUTE_TYPE_FLOAT2 is 0 — 2D 32-bit float vector.

attribute_type_float3()

@spec attribute_type_float3() :: 1

mjVERTEX_ATTRIBUTE_TYPE_FLOAT3 is 1 — 3D 32-bit float vector.

attribute_type_float4()

@spec attribute_type_float4() :: 2

mjVERTEX_ATTRIBUTE_TYPE_FLOAT4 is 2 — 4D 32-bit float vector.

attribute_type_ubyte4()

@spec attribute_type_ubyte4() :: 3

mjVERTEX_ATTRIBUTE_TYPE_UBYTE4 is 3 — 4D unsigned 8-bit byte vector.

to_atom(value)

@spec to_atom(integer() | atom()) :: atom() | nil

The name behind an integer. An atom is already one.

to_integer(value)

@spec to_integer(t() | atom()) :: integer() | nil

The integer behind a name. An integer is already one.

values()

@spec values() :: [{atom(), integer()}]

Every value, as {name, integer}, in the order the header lists them.