Template:DGS Plugin/Render Target Functions: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Syntax== <syntaxhighlight lang="lua"> element dgsCreateRenderTarget( int width, int height [, bool isTransparent = true ] ) </syntaxhighlight> ===Required Arguments=== *'''width:''' The width of the render target in pixels. *'''height:''' The height of the render target in pixels. ===Optional Arguments=== *'''isTransparent:''' A boolean indicating if the render target should support transparency. Defaults to '''true'''. ===Returns=== Returns a render target element if...") |
(No difference)
|
Revision as of 09:47, 11 September 2025
Syntax
element dgsCreateRenderTarget( int width, int height [, bool isTransparent = true ] )
Required Arguments
- width: The width of the render target in pixels.
- height: The height of the render target in pixels.
Optional Arguments
- isTransparent: A boolean indicating if the render target should support transparency. Defaults to true.
Returns
Returns a render target element if it was created successfully, otherwise returns false along with an error message.