Render Target
RenderTarget
Defines a render target for rendering to texture. Make the render target active using the SetRenderTarget-component.
Note: This feature needs a graphic card that supports FBOs (GL_EXT_framebuffer_object OpenGL extension). If your card does not support this then ZGE designer will display a message in the log on start up. Also note that each RenderTarget takes up a fair amount of video memory so don't use too many instances.
Properties
Width
- Viewport width
- Half viewport width
- Quarter viewport width
- 128
- 256
- 512
Height
- Viewport height
- Half viewport height
- Quarter viewport height
- 128
- 256
- 512
CustomWidth
CustomHeight
ClearBeforeUse
AutoPowerOfTwo
Set this property to make the actual size of the render target to be the next larger power of two. This makes it compatible with older ATI-drivers that doesn't support render targets of other sizes.
ClearColor
ZGameEditor
Documentation
- Contents
- Overview
- Tutorial 1
- Tutorial 2
- Tutorial 3
- Sample projects
- Component reference
- Writing expressions
Community