133

Controlling appearance
RenderingAttributes class methods

  • Methods on RenderingAttributes control the way everything is rendered
  • By default, the depth buffer is enabled and writable, and the alpha test function is ALWAYS with a 0.0 alpha test value
  • Method
    RenderingAttributes( )
    void setDepthBufferEnable( boolean state )
    void setDepthBufferWriteEnable( boolean state )
    void setAlphaTestFunction( int func )
    void setAlphaTestValue( float value )

  • Alpha test functions include: ALWAYS (default), NEVER, EQUAL, NOT_EQUAL, LESS, LESS_OR_EQUAL, GREATER, and GREATER_OR_EQUAL