1.2

| home | graph lib | utility lib | custom lib | auxiliary lib | tutorials |

   Axis
   Blend
   Color
   ColorBar
   Fog
   Freetype
   Light
   Line
   Material
   Node
   Point
   Plot
   Polygon
   Render
   Scene
   Stencil
   TexCoord
   Text
   Texture
   Vertex

zeBlend

Use .new("blend") to create the object. It blends the incoming (source) RGBA values with the RGBA values that are already in the frame buffer (destination). Refer to the OpenGL reference for meanings of parameters. An enabled blending object will affect all objects after it in the tree of a scene structure unless the node containing the blending object save and restore OpenGL attributes of its predecessor.

:set(table)

table - a Lua table.

Sets blending properties. Valid key-value pairs are listed in the table.

Key Value Type Remark
sfactor zero string Set the source factor as GL_ZERO.
  one string Set the source factor as GL_ONE.
  one_minus_dst_color string Set the source factor as GL_ONE_MINUS_DST_COLOR.
  one_minus_dst_alpha string set the source factor as GL_ONE_MINUS_DST_ALPHA.
  one_minus_src_alpha string set the source factor as GL_ONE_MINUS_SRC_ALPHA.
  one_minus_src_alpha string set the source factor as GL_ONE_MINUS_SRC_ALPHA.
  dst_color string set the source factor as GL_DST_COLOR.
  dst_alpha string set the source factor as GL_DST_ALPHA.
  src_alpha string set the source factor as GL_SRC_ALPHA.
  src_alpha_saturate string set the source factor as GL_SRC_ALPHA_SATURATE.
dfactor zero string Set the destination factor as GL_ZERO.
  one string Set the destination factor as GL_ONE.
  one_minus_src_color string Set the destination factor as GL_ONE_MINUS_SRC_COLOR.
  one_minus_src_alpha string set the destination factor as GL_ONE_MINUS_SRC_ALPHA.
  one_minus_dst_alpha string set the destination factor as GL_ONE_MINUS_DST_ALPHA.
  src_color string set the destination factor as GL_SRC_COLOR.
  src_color string set the destination factor as GL_SRC_COLOR.
  src_alpha string set the destination factor as GL_SRC_ALPHA.
  src_alpha string set the destination factor as GL_SRC_ALPHA.
  dst_alpha string set the destination factor as GL_DST_ALPHA.
zbuffer flag boolean Enable or disable depth buffer test.
enable flag Boolean Enable (default) and disable the object