Skip to main content

Meta_GUIMaterial

Module: Metanodes / Definitions

A GUIMaterial is a material that can specify its draw layer, so it may appear above or below other types of object.

#include <meta_division.hpp>

Public Types

TypeName
enumIDX { Idx_LayerValue, Idx_Colour, Idx_Texture, Idx_DepthWrite, Idx_DepthTest, Idx_SubPixelAntiAlias, Idx_PremultipliedAlpha }
Property index.
enumLayer { Opaque, Transparent, SceneOverlay, ViewOverlay }
Values for the X element of Idx_LayerValue.

Public Types Documentation

enum IDX

EnumeratorValueDescription
Idx_LayerValuevec2i - Layer to draw in. X = a Layer, Y = offset within the layer (higher values are drawn later)
Idx_Colourvec4f - Colour of the material (RGBA 0.0f to 1.0f)
Idx_Texturelink - Texture to apply
Idx_DepthWritebool - Whether to write to the depth buffer
Idx_DepthTestbool - Whether to draw with depth testing (false will draw above all previously drawn objects regardless of their depth)
Idx_SubPixelAntiAliasbool - Whether to enable AA
Idx_PremultipliedAlphabool - Whether to use premultiplied alpha

Property index.

enum Layer

EnumeratorValueDescription
OpaqueDraws in the Opaque layer (Symbols - C: "LayerOpaque", Lua: __GUIMaterial_LayerOpaque)
TransparentDraws in the Transparent layer (Symbols - C: "LayerTransparent", Lua: __GUIMaterial_LayerTransparent)
SceneOverlayDraws in the Scene Overlay layer (Symbols - C: "LayerSceneOverlay", Lua: __GUIMaterial_LayerSceneOverlay)
ViewOverlayDraws in the View Overlay layer (Symbols - C: "LayerViewOverlay", Lua: __GUIMaterial_LayerViewOverlay)

Values for the X element of Idx_LayerValue.