ExMujoco.Types.MjrVertexAttributeUsage (ExMujoco v0.1.1)

Copy Markdown View Source

mjrVertexAttributeUsage_, from MuJoCo's headers, as numbers. All 5 values carry a number in the header.

Summary

Functions

mjVERTEX_ATTRIBUTE_USAGE_COLOR is 4.

mjVERTEX_ATTRIBUTE_USAGE_NORMAL is 1.

mjVERTEX_ATTRIBUTE_USAGE_POSITION is 0.

mjVERTEX_ATTRIBUTE_USAGE_TANGENTS is 2.

mjVERTEX_ATTRIBUTE_USAGE_UV is 3.

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_usage_color()

@spec attribute_usage_color() :: 4

mjVERTEX_ATTRIBUTE_USAGE_COLOR is 4.

attribute_usage_normal()

@spec attribute_usage_normal() :: 1

mjVERTEX_ATTRIBUTE_USAGE_NORMAL is 1.

attribute_usage_position()

@spec attribute_usage_position() :: 0

mjVERTEX_ATTRIBUTE_USAGE_POSITION is 0.

attribute_usage_tangents()

@spec attribute_usage_tangents() :: 2

mjVERTEX_ATTRIBUTE_USAGE_TANGENTS is 2.

attribute_usage_uv()

@spec attribute_usage_uv() :: 3

mjVERTEX_ATTRIBUTE_USAGE_UV is 3.

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.