class RenderAttributes

book_4_sparkGenerated
code_blocksInput

Description

The RenderAttributes class in the Sandbox namespace provides a set of methods for managing rendering attributes. This class allows you to set and retrieve various types of rendering data, such as integers, booleans, vectors, matrices, and textures, using a key-value system.

Members

Instance Methods

Member NameSummary
ClearClears all render attributes.
SetComboSets a combo value using a key and an integer value.
SetComboSets a combo value using a key and a boolean value.
SetComboSets a combo value using a key and an enum value. Obsolete: Please use SetComboEnum
SetComboEnumSets a combo value using a key and a generic enum value.
GetComboEnumRetrieves a combo enum value using a key and a default value.
GetComboBoolRetrieves a combo boolean value using a key and a default value.
GetComboIntRetrieves a combo integer value using a key and a default value.
SetSets a value using a key and an integer value.
SetSets a value using a key and a boolean value.
SetSets a value using a key and a float value.
SetSets a value using a key and a double value.
SetSets a value using a key and a string value.
SetSets a value using a key and a Vector2 value.
SetSets a value using a key and a Vector3 value.
SetSets a value using a key and a Vector4 value.
SetSets a value using a key and a Matrix value.
SetSets a value using a key and an Angles value.
SetSets a value using a key and a Texture value with mip level.
SetDataSets data using a key and a generic span of values.
SetDataSets data using a key and a generic array of values.
SetDataSets data using a key and a generic list of values.
GetBoolRetrieves a boolean value using a key and a default value.
GetVectorRetrieves a Vector3 value using a key and a default value.
GetVector4Retrieves a Vector4 value using a key and a default value.
GetAnglesRetrieves an Angles value using a key and a default value.
GetFloatRetrieves a float value using a key and a default value.
GetIntRetrieves an integer value using a key and a default value.
GetMatrixRetrieves a Matrix value using a key and a default value.
GetTextureRetrieves a Texture value using a key and a default value.