# Class: l2dimage

a quad with the given material (or plain color) will be rendered on screen.

## Hierarchy

    o-+ l2dlist
      o-+ l2dnode
        o-+ l2dimage

## Interfaces:

- indexarray
- matobject
- rendersurface
- vertexarray

## Methods:

### Method overview:

- fullscreen
- matsurface
- new
- quadcenteredmesh
- quadmesh
- usermesh

new (string name,matsurface)
  returns: (l2dimage)
  returns a new l2dimage
fullscreen (l2dimage)
  returns: ()
  sets pos and scale for fullscreen
matsurface (l2dimage,[matsurface])
  returns: ([material/texture])
  returns or sets matsurface
quadcenteredmesh (l2dimage)
  returns: ()
  deletes the usermesh and uses the centered quadmesh again.
quadmesh (l2dimage)
  returns: ()
  deletes the usermesh and uses the quadmesh again (default).
usermesh (l2dimage, vertextype ,int maxvertices, int maxindices)
  returns: ()
  gives the l2dimage a unique mesh. By default the mesh is just a quad which cannot be changed. With this function you can create your own mesh, as from this time on you can access it via vertexarray or indexarray interfaces. The new usermesh is completely empty, so make sure you fill it with content before it gets rendered the first time. If a previous usermesh existed it will be deleted. Polygonwinding is CW (not CCW like the others!).

## Inherited Methods:

### From l2dnode

color, delete, firstchild, local2world, parent, pos, rotcenter, rotdeg, rotrad, scale, scissor, scissorlocal, scissorparent, scissorsize, scissorstart, sortid, swapinchildlist, world2local

### From l2dlist