Skip to content

Sdl RendererCreateTextureFromSurface

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

Renderer:createTextureFromSurface

Create a texture from a surface.

Method

SYNOPSIS

tex, err = function Renderer:createTextureFromSurface(surface)

ARGUMENTS

  • surface, the surface

RETURNS

  • tex, the texture object or nil on failure (see Texture)
  • err, the error message

Clone this wiki locally