Class: l2dimage

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

Hierarchy

o-+ l2dnode
  o-+ l2dimage

Interfaces:

Methods:

Method overview:


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.

Inherited Methods:

From l2dnode

color, delete, deleteall, firstchild, get, getroot, l3dtarget, l3dtargetoff, local2world, new, parent, pos, rotcenter, rotdeg, rotrad, scale, scissor, scissorlocal, scissorparent, scissorsize, scissorstart, sortid, swapinchildlist, world2local