Maven module :un.engine : engine-opengl :
Class : un.engine.opengl.renderer.RendererState
Extends/Implements : -
Subclasses : -

The rendered state stores the configuration of the rendering in the context.
This includes blending configuration, cull face, polygon mode, etc...

This model is inspired from GLTF 'states' property in the 'Technique' type :
https://github.com/KhronosGroup/glTF/blob/master/specification/README.md

@author Johann Sorel


Variables : -
Functions : RendererState, isEnable, setEnable, setPolygonMode, getPolygonMode, setBlending, getBlendFunctionSource, getBlendFunctionDestination, getBlendEquation, getDepthFunc, setDepthFunc, setDepthMask, getDepthMask, configure



public void RendererState ()


Returns true if given state is enable.
param  state one of GLC.GETSET.State.*
return  true if enable
public boolean isEnable (int state)


Set stable enabled value.
param  state one of GLC.GETSET.State.*
param  enable
public void setEnable (int state, boolean enable)


Returns rendering polygon mode, one of GLC.POLYGON_MODE.*
param  polygonMode
public void setPolygonMode (int polygonMode)


Get rendering polygon mode.
return  one of GLC.POLYGON_MODE.*
public int getPolygonMode ()


Configure blending.
param  blendFunction1 function first parameter
param  blendFunction2 function second parameter
param  blendEquation equation
public void setBlending (int blendFunction1, int blendFunction2, int blendEquation)


Get blend function source parameter
return
public int getBlendFunctionSource ()


Get blend function source parameter.
return
public int getBlendFunctionDestination ()


Get blend equation.
return
public int getBlendEquation ()


Get depth function.
return
public int getDepthFunc ()


Set depth function.
param  depthFunc
public void setDepthFunc (int depthFunc)


Set depth mask
param  depthMask
public void setDepthMask (boolean depthMask)


Get depth mask.
return
public boolean getDepthMask ()

public void configure (GL gl)