# Class: framefx

You can either perform operations on the framebuffer, or use special textures in materials, that contain framebuffer images. For example current makes a screenshot into a texture right before the material is used, snapshot is updated by the user, and lastframe is auto generated after l3dlist drawing is done.
The operations are performed at the end of every l3dlayerid.
Note that the position and sizes are in opengl pixel coordinates like view definitions in l3dview.

## Hierarchy

    o-+ l3dlist
      o-+ framefx
        o-- framefxclear
        o-- framefxmesh
        o-- framefxsnapshot

## Interfaces:

- hashid

## Methods:

### Method overview:

- activate
- autorun
- deactivate
- delete
- deleteall
- initcurrent
- initlastframe
- initsnapshot
- run
- visflag

activate (framefx,l3dlayerid)
  returns: ()
  activates framefx after given layer.Appends at the end of ffx list
autorun (framefx,[boolean])
  returns: ([boolean])
  when set performrs effect every frame
deactivate (framefx)
  returns: ()
  activates framefx after given layer
delete (framefx)
  returns: ()
  deletes framefx
deleteall ()
  returns: ()
  deletes all framefxs
initcurrent ()
  returns: ()
  we can use the current texture from now on
initlastframe ()
  returns: ()
  we can use the lastframe texture from now on
initsnapshot ()
  returns: ()
  we can use the snapshot texture from now on
run (framefx)
  returns: ()
  when not in autorun mode next frame the effect will be performed
visflag (framefx,int id,[boolean])
  returns: ([boolean])
  sets visibility bit flag. If visflag of l3dview AND its own flag bitwise return true, then the fx will be drawn in the current l3dview. id = 0..31

## Inherited Methods:

### From l3dlist

reinit