# Class: rendersurface

For most renderable nodes you can define how their surface are blend with the framebuffer, or how alpha-based rejection should be done. Enabling/disabling those effects is done with renderflags. l3dmodel is treated similar as in renderflag

## Hierarchy

    o-+ renderinterface
      o-+ rendersurface

## Classes that implement this interface:

- l2dimage
- l2dtext
- l3dlevelmodel
- l3dmodel
- l3dprimitive
- l3dtext
- l3dtrail
- particlecloud
- rcmddraw2dmesh

## Methods:

### Method overview:

- rsAlphacompare
- rsAlphavalue
- rsBlendinvert
- rsBlendmode
- rsLinefactor
- rsLinestipple
- rsLinewidth

rsAlphacompare (rendersurface,[comparemode])
  returns: ([comparemode])
  returns or sets alpha compare mode - only effective if rfAlphatest is set
rsAlphavalue (rendersurface,[float])
  returns: ([float])
  returns or sets alpha threshold
rsBlendinvert (rendersurface,[boolean])
  returns: ([boolean])
  returns or sets blend invert of alpha-based blend types
rsBlendmode (rendersurface,[blendmode])
  returns: ([blendmode])
  only effective if rfBlend is set
rsLinefactor (rendersurface,[int 0-255])
  returns: ([int])
  returns or sets stipple factor, is used if rfWireframe and is value is greater 0. Linestyle is define in rsLinestipple.
rsLinestipple (rendersurface,[string])
  returns: ([string])
  returns or sets stipple pattern, is used if rfWireframe is on and rsLinefactor is greater 0. The string should contain 16 0s or 1s which define the linestyle.
rsLinewidth (rendersurface,[float])
  returns: ([float])
  returns or sets linewidth for wireframes. When not set it will use whatever linewidth is currently active.

## Inherited Methods: