Skip to content
Tangent 128 edited this page Mar 28, 2015 · 3 revisions

Renderer:copy

Copy a texture to the renderer.

Method

SYNOPSIS

ret, err = function Renderer:copy(texture, srcrect, dstrect)

ARGUMENTS

  • texture, the texture to copy (see Texture)
  • srcrect, (optional) the source rectangle (see Rect)
  • dstrect, (optional) the destination rectangle (see Rect)

RETURNS

  • ret, true on success or false
  • err, the error message

Clone this wiki locally