TextureOutput()

Syntax

OutputID = TextureOutput(#Texture)
Description
Returns the OutputID of the image to perform 2D rendering operation on it. Textures created with CreateRenderTexture() are not supported.

Parameters

#Texture The texture to draw on.

Return value

Returns the output ID or zero if drawing is not possible. This value should be passed directly to the StartDrawing() function to start the drawing operation. The return-value is valid only for one drawing operation and cannot be reused.

Example

  ...
  StartDrawing(TextureOutput(#Texture))
    ; do some drawing stuff here...
  StopDrawing()

See Also

StartDrawing(), CreateRenderTexture()

Supported OS

All

<- TextureID() - Texture Index - TextureWidth() ->