[ Back to Geeks3D.com ]
 GeeXLab
Laboratory for Real Time 3D Programming (prototyping and demos) OpenGL, Lua, Python, GLSL, PhysX and more...Reference Guide XML Nodes
» Back to homepage
» Back to Developer's Guide Index
<render_texture> XML Node
<render_texture
name=""
active=""
width=""
height=""
type=""
>
<attach_texture_color
pixel_format=""
>
</attach_texture_color>
<attach_texture_depth
pixel_format=""
>
</attach_texture_depth>
<attach_render_buffer
type=""
pixel_format=""
>
</attach_render_buffer>
</render_texture>
<render_texture>
The render_texture node allows the creation of render to texture objects. These objects are use in all kind of effects
either directly in scripting or indirectly in post processing filters. A render texture object can have one or two textures (for example: one color texture and one depth texture).
render_texture element has 5 attributes and 3 sub-element(s)
- name [STRING]: name of the render texture object
- active [INTEGER]: enables (1) or disables (0) the render texture. - Values = 0|1
- width [INTEGER]: width of the render texture.
- height [INTEGER]: height of the render texture.
- type [ENUM]: type of the render texture. This value is used when post-processing filters are used. - Values = FRAMEBUFFER | COMPOSITE
<attach_texture_color>
Adds a color render target.
attach_texture_color element has 1 attributes and 0 sub-element(s)
- pixel_format [ENUM]: pixel format of the color render target - Values = RGBA_FLOAT, RGB_FLOAT, RGBA_32F, RGBA_16F, RGB_32F, RGB_16F
<attach_texture_depth>
Adds a depth render target.
attach_texture_depth element has 1 attributes and 0 sub-element(s)
- pixel_format [ENUM]: pixel format of the depth render target - Values = DEPTH
<attach_render_buffer>
Adds a render buffer.
attach_render_buffer element has 2 attributes and 0 sub-element(s)
- type [ENUM]: type of the render buffer - Values = COLOR, DEPTH, STENCIL
- pixel_format [ENUM]: pixel format of the render buffer - Values = RGBA_FLOAT_CLAMPED, DEPTH
|