nux-0.9.48

nux::GpuRenderStates Class Reference

#include <NuxGraphics/GLRenderStates.h>

Public Member Functions

 GpuRenderStates (GpuBrand board, GpuInfo *info)
 ~GpuRenderStates ()
void ResetDefault ()
void ResetStateChangeToDefault ()
void CommitStateChangeToDefault ()
void CheckStateChange ()
void SubmitChangeStates ()
void CheckRenderStatesConformity ()
 Check that all render states ar conform to the default.
void SetRenderStates (t_u32 rs, t_u32 value)
void SetAlphaTest (bool EnableAlphaTest_, t_u32 AlphaTestFunc_=GL_ALWAYS, BYTE AlphaTestRef_=0)
void SetBlend (bool AlphaBlendEnable_)
void SetBlend (bool AlphaBlendEnable_, t_u32 SrcBlendFactor_, t_u32 DestBlendFactor_)
void GetBlend (t_u32 &AlphaBlendEnable_, t_u32 &SrcBlendFactor_, t_u32 &DestBlendFactor_)
void SetSeparateBlend (bool _bEnable, t_u32 SrcBlendFactor_, t_u32 DestBlendFactor_, t_u32 SrcFactorAlpha_, t_u32 DestFactorAlpha_)
void SetPremultipliedBlend (PorterDuffOperator op)
void SetBlendOp (t_u32 BlendOp=GL_FUNC_ADD)
void SetSeparateBlendOp (t_u32 BlendOpRGB_=GL_FUNC_ADD, t_u32 BlendOpAlpha_=GL_FUNC_ADD)
void SetCullMode (bool EnableCullFace, t_u32 FrontFace_=GL_CCW, t_u32 Cullface_=GL_BACK)
void SetDepthTest (bool EnableDepthTest, t_u32 WriteEnable_=GL_TRUE, t_u32 DepthFunc_=GL_LEQUAL)
void SetDepthRange (float zNear=0.0f, float zFar=1.0f)
void SetStencil (bool enable_stencil)
void SetStencilFunc (t_u32 func, int ref, t_u32 mask)
void SetStencilOp (t_u32 stencil_fail, t_u32 stencil_pass_depth_fail, t_u32 stencil_pass_depth_pass)
void EnableLineSmooth (bool EnableLineSmooth=TRUE, t_u32 LineWidth=1, t_u32 HINT=GL_FASTEST)
void EnablePointSmooth (bool EnablePointSmooth=TRUE, t_u32 PointSize=1, t_u32 HINT=GL_FASTEST)
void SetColorMask (t_u32 bRed=TRUE, t_u32 bGreen=TRUE, t_u32 bBlue=TRUE, t_u32 bAlpha=TRUE)
void GetColorMask (t_u32 &bRed, t_u32 &bGreen, t_u32 &bBlue, t_u32 &bAlpha)
void SetDepthMask (t_u32 bDepth=TRUE)
void EnableScissor (t_u32 bScissor=FALSE)
void EnableFog (t_u32 bFog=FALSE)
void SetPolygonMode (t_u32 FrontMode=GL_FILL, t_u32 BackMode=GL_FILL)
void SetPolygonOffset (t_u32 bEnable, float Factor=0.0f, float Units=0.0f)

Constructor & Destructor Documentation

nux::GpuRenderStates::GpuRenderStates ( GpuBrand  board,
GpuInfo info 
)
nux::GpuRenderStates::~GpuRenderStates ( )

Member Function Documentation

void nux::GpuRenderStates::CheckRenderStatesConformity ( )

Check that all render states ar conform to the default.

void nux::GpuRenderStates::CheckStateChange ( )
void nux::GpuRenderStates::CommitStateChangeToDefault ( )
void nux::GpuRenderStates::EnableFog ( t_u32  bFog = FALSE) [inline]

References nux::GFXRS_FOGENABLE, and RS_VALUE.

void nux::GpuRenderStates::EnableLineSmooth ( bool  EnableLineSmooth = TRUE,
t_u32  LineWidth = 1,
t_u32  HINT = GL_FASTEST 
) [inline]
void nux::GpuRenderStates::EnablePointSmooth ( bool  EnablePointSmooth = TRUE,
t_u32  PointSize = 1,
t_u32  HINT = GL_FASTEST 
) [inline]
void nux::GpuRenderStates::EnableScissor ( t_u32  bScissor = FALSE) [inline]
void nux::GpuRenderStates::GetBlend ( t_u32 AlphaBlendEnable_,
t_u32 SrcBlendFactor_,
t_u32 DestBlendFactor_ 
) [inline]
void nux::GpuRenderStates::GetColorMask ( t_u32 bRed,
t_u32 bGreen,
t_u32 bBlue,
t_u32 bAlpha 
) [inline]
void nux::GpuRenderStates::ResetDefault ( )
void nux::GpuRenderStates::ResetStateChangeToDefault ( )
void nux::GpuRenderStates::SetAlphaTest ( bool  EnableAlphaTest_,
t_u32  AlphaTestFunc_ = GL_ALWAYS,
BYTE  AlphaTestRef_ = 0 
) [inline]
void nux::GpuRenderStates::SetBlend ( bool  AlphaBlendEnable_) [inline]

References nux::GFXRS_ALPHABLENDENABLE, and RS_VALUE.

Referenced by SetBlend(), and SetSeparateBlend().

void nux::GpuRenderStates::SetBlend ( bool  AlphaBlendEnable_,
t_u32  SrcBlendFactor_,
t_u32  DestBlendFactor_ 
) [inline]
void nux::GpuRenderStates::SetBlendOp ( t_u32  BlendOp = GL_FUNC_ADD) [inline]

References nux::GFXRS_BLENDOP, and RS_VALUE.

void nux::GpuRenderStates::SetColorMask ( t_u32  bRed = TRUE,
t_u32  bGreen = TRUE,
t_u32  bBlue = TRUE,
t_u32  bAlpha = TRUE 
) [inline]
void nux::GpuRenderStates::SetCullMode ( bool  EnableCullFace,
t_u32  FrontFace_ = GL_CCW,
t_u32  Cullface_ = GL_BACK 
) [inline]
void nux::GpuRenderStates::SetDepthMask ( t_u32  bDepth = TRUE) [inline]
void nux::GpuRenderStates::SetDepthRange ( float  zNear = 0.0f,
float  zFar = 1.0f 
) [inline]
void nux::GpuRenderStates::SetDepthTest ( bool  EnableDepthTest,
t_u32  WriteEnable_ = GL_TRUE,
t_u32  DepthFunc_ = GL_LEQUAL 
) [inline]
void nux::GpuRenderStates::SetPolygonMode ( t_u32  FrontMode = GL_FILL,
t_u32  BackMode = GL_FILL 
) [inline]
void nux::GpuRenderStates::SetPolygonOffset ( t_u32  bEnable,
float  Factor = 0.0f,
float  Units = 0.0f 
) [inline]
void nux::GpuRenderStates::SetPremultipliedBlend ( PorterDuffOperator  op) [inline]
void nux::GpuRenderStates::SetRenderStates ( t_u32  rs,
t_u32  value 
)
void nux::GpuRenderStates::SetSeparateBlend ( bool  _bEnable,
t_u32  SrcBlendFactor_,
t_u32  DestBlendFactor_,
t_u32  SrcFactorAlpha_,
t_u32  DestFactorAlpha_ 
) [inline]
void nux::GpuRenderStates::SetSeparateBlendOp ( t_u32  BlendOpRGB_ = GL_FUNC_ADD,
t_u32  BlendOpAlpha_ = GL_FUNC_ADD 
) [inline]
void nux::GpuRenderStates::SetStencil ( bool  enable_stencil) [inline]
void nux::GpuRenderStates::SetStencilFunc ( t_u32  func,
int  ref,
t_u32  mask 
) [inline]
void nux::GpuRenderStates::SetStencilOp ( t_u32  stencil_fail,
t_u32  stencil_pass_depth_fail,
t_u32  stencil_pass_depth_pass 
) [inline]
void nux::GpuRenderStates::SubmitChangeStates ( )

The documentation for this class was generated from the following file: