Skip to main content

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

TypeName
enumFormat { Format_RGBA8, Format_RGBA8_ToneMap, Format_RGBA16, Format_RGBA32, Format_Luminance8, Format_Luminance8_ToneMap, Format_Luminance16, Format_Luminance32 }
Values for Idx_TextureFormat.
enumIDX { Idx_Enabled, Idx_TextureSize, Idx_TextureFormat, Idx_Stereo, Idx_MipmapEnabled }
Property index.

Public Types Documentation

enum Format

EnumeratorValueDescription
Format_RGBA8Symbols - C: "RGBA8", Lua: __RenderToTexture_RGBA8
Format_RGBA8_ToneMapSymbols - C: "RGBA8ToneMap", Lua: __RenderToTexture_RGBA8ToneMap
Format_RGBA16Symbols - C: "RGBA16", Lua: __RenderToTexture_RGBA16
Format_RGBA32Symbols - C: "RGBA32", Lua: __RenderToTexture_RGBA32
Format_Luminance8Symbols - C: "Luminance8", Lua: __RenderToTexture_Luminance8
Format_Luminance8_ToneMapSymbols - C: "Luminance8ToneMap", Lua: __RenderToTexture_Luminance8ToneMap
Format_Luminance16Symbols - C: "Luminance16", Lua: __RenderToTexture_Luminance16
Format_Luminance32Symbols - C: "Luminance32", Lua: __RenderToTexture_Luminance32

Values for Idx_TextureFormat.

enum IDX

EnumeratorValueDescription
Idx_Enabledbool - When enabled, the texture is updated
Idx_TextureSizevec2i - The size of the texture to generate and render into
Idx_TextureFormatFormat (int) - The texture format to generate
Idx_Stereobool - When enabled, renders both eyes
Idx_MipmapEnabledbool - When enabled, mipmaps are automatically calculcated

Property index.