Warning: This site is under construction, most links will be broken.

LightX API -> lxgfx -> createsurface

Last modified on Thu, 29th Mar 2007 at 11:00 UTC by zipplet

lxgfx.createsurface


function createsurface(
    width, height: tlxposition
  ): tlxhandle;


Create a surface and return a lightX handle to the created surface. This function always succeeds unless the system runs out of memory, in which case an exception will be raised.

width, height: tlxposition
The size of the surface to create, in pixels. The surface must be atleast 1 pixel wide and 1 pixel tall. The maximum size of a surface is unlimited, however surfaces larger than the primary surface may cause severe slowdown with some rendering engines.

Class: lxgfx