Meta_Visual
Module: Metanodes / Definitions
A Visual provides an instance of a Meta_Model, and is attached as a child of a Meta_Assembly to position it in the scene.
#include <meta_importables.hpp>
Public Types
| Type | Name |
|---|---|
| enum | CullFace { CullFace_Default = 0, CullFace_None = 1, CullFace_Front = 1028, CullFace_Back = 1029 } Values for Idx_CullFace. |
| enum | DrawMode { DrawMode_Default = 0, DrawMode_Points = 6912, DrawMode_Lines = 6913, DrawMode_Solid = 6914 } Values for Idx_DrawMode. |
| enum | IDX { Idx_Enabled, Idx_Model, Idx_Material, Idx_CullFace, Idx_DrawMode, Idx_ShadowCaster, Idx_RenderToCamera, Idx_Invert } Property index. |
| enum | ShadowCaster { ShadowCaster_PerGeoGroup, ShadowCaster_All, ShadowCaster_None } Values for Idx_ShadowCaster. |
Public Types Documentation
enum CullFace
| Enumerator | Value | Description |
|---|---|---|
| CullFace_Default | 0 | No override - use whatever CullFace is specified by the model's Meta_GeoGroup nodes (Symbols - C: "CullFaceNoOverride", Lua: __Visual_CullFaceNoOverride) |
| CullFace_None | 1 | Disable face culling (Symbols - C: "CullFaceNone", Lua: __Visual_CullFaceNone) |
| CullFace_Front | 1028 | Cull front faces (Symbols - C: "CullFaceFront", Lua: __Visual_CullFaceFront) |
| CullFace_Back | 1029 | Cull back faces (Symbols - C: "CullFaceBack", Lua: __Visual_CullFaceBack) |
Values for Idx_CullFace.
enum DrawMode
| Enumerator | Value | Description |
|---|---|---|
| DrawMode_Default | 0 | No override - use whatever DrawMode is specified by the model's Meta_GeoGroup nodes (Symbols - C: "DrawModeNoOverride", Lua: __Visual_DrawModeNoOverride) |
| DrawMode_Points | 6912 | Draw as points (Symbols - C: "DrawModePoints", Lua: __Visual_DrawModePoints) |
| DrawMode_Lines | 6913 | Draw as lines (Symbols - C: "DrawModeLines", Lua: __Visual_DrawModeLines) |
| DrawMode_Solid | 6914 | Draw as triangles (Symbols - C: "DrawModeSolid", Lua: __Visual_DrawModeSolid) |
Values for Idx_DrawMode.
enum IDX
| Enumerator | Value | Description |
|---|---|---|
| Idx_Enabled | bool - If true, model is drawn. | |
| Idx_Model | link - The Meta_Model to draw if this is enabled. | |
| Idx_Material | link - The override material to pass to the models geogroups, which will use this material unless theirs is 'locked'. (Meta_StdMaterial, Meta_GUIMaterial, Meta_WaterMaterial) | |
| Idx_CullFace | CullFace (int) - The cull face mode to pass to the models geogroups. | |
| Idx_DrawMode | DrawMode (int) - the polygon mode to pass to the models geogroups. | |
| Idx_ShadowCaster | ShadowCaster (int) - indicates to the model whether it should be drawn into shadowmaps or not. | |
| Idx_RenderToCamera | bool - indicates to the model whether it should be drawn into cameras or not. | |
| Idx_Invert | bool - indicates to the models geogroups whether the polygon winding order should be reversed or not. |
Property index.
enum ShadowCaster
| Enumerator | Value | Description |
|---|---|---|
| ShadowCaster_PerGeoGroup | No override - use whatever ShadowCaster mode is specified by the model's Meta_GeoGroup nodes (Symbols - C: "ShadowCasterPerGeoGroup", Lua: __Visual_ShadowCasterPerGeoGroup) | |
| ShadowCaster_All | Force the model to cast shadows (Symbols - C: "ShadowCasterAll", Lua: __Visual_ShadowCasterAll) | |
| ShadowCaster_None | Do not cast any shadows (Symbols - C: "ShadowCasterNone", Lua: __Visual_ShadowCasterNone) |
Values for Idx_ShadowCaster.