Meta_RenderToTexture
Module: Metanodes / Definitions
A RenderToTexture is a texture that is rendered into by a Viewport which should be a child node.
#include <meta_view.hpp>
Public Types
| Type | Name |
|---|---|
| enum | Format { Format_RGBA8, Format_RGBA8_ToneMap, Format_RGBA16, Format_RGBA32, Format_Luminance8, Format_Luminance8_ToneMap, Format_Luminance16, Format_Luminance32 } Values for Idx_TextureFormat. |
| enum | IDX { Idx_Enabled, Idx_TextureSize, Idx_TextureFormat, Idx_Stereo, Idx_MipmapEnabled } Property index. |
Public Types Documentation
enum Format
| Enumerator | Value | Description |
|---|---|---|
| Format_RGBA8 | Symbols - C: "RGBA8", Lua: __RenderToTexture_RGBA8 | |
| Format_RGBA8_ToneMap | Symbols - C: "RGBA8ToneMap", Lua: __RenderToTexture_RGBA8ToneMap | |
| Format_RGBA16 | Symbols - C: "RGBA16", Lua: __RenderToTexture_RGBA16 | |
| Format_RGBA32 | Symbols - C: "RGBA32", Lua: __RenderToTexture_RGBA32 | |
| Format_Luminance8 | Symbols - C: "Luminance8", Lua: __RenderToTexture_Luminance8 | |
| Format_Luminance8_ToneMap | Symbols - C: "Luminance8ToneMap", Lua: __RenderToTexture_Luminance8ToneMap | |
| Format_Luminance16 | Symbols - C: "Luminance16", Lua: __RenderToTexture_Luminance16 | |
| Format_Luminance32 | Symbols - C: "Luminance32", Lua: __RenderToTexture_Luminance32 |
Values for Idx_TextureFormat.
enum IDX
| Enumerator | Value | Description |
|---|---|---|
| Idx_Enabled | bool - When enabled, the texture is updated | |
| Idx_TextureSize | vec2i - The size of the texture to generate and render into | |
| Idx_TextureFormat | Format (int) - The texture format to generate | |
| Idx_Stereo | bool - When enabled, renders both eyes | |
| Idx_MipmapEnabled | bool - When enabled, mipmaps are automatically calculcated |
Property index.