Canvas:newTextureData
Returns a new TextureData containing the contents of a Texture attached to the Canvas.
textureData = Canvas:newTextureData(index)
Arguments
Name | Type | Default | Description |
index | number | 1 | The index of the Texture to read from. |
Returns
Name | Type | Description |
textureData | TextureData | The new TextureData. |
See also
lovr.data.newTextureData
TextureData
Canvas