nux-0.9.48
|
#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) |
nux::GpuRenderStates::~GpuRenderStates | ( | ) |
void nux::GpuRenderStates::CheckRenderStatesConformity | ( | ) |
Check that all render states ar conform to the default.
void nux::GpuRenderStates::CheckStateChange | ( | ) |
Referenced by nux::GraphicsEngine::VerifyRenderStates().
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] |
References nux::GFXRS_LINEHINT, nux::GFXRS_LINESMOOTHENABLE, nux::GFXRS_LINEWIDTH, and RS_VALUE.
void nux::GpuRenderStates::EnablePointSmooth | ( | bool | EnablePointSmooth = TRUE , |
t_u32 | PointSize = 1 , |
||
t_u32 | HINT = GL_FASTEST |
||
) | [inline] |
References nux::GFXRS_POINTHINT, nux::GFXRS_POINTSIZE, nux::GFXRS_POINTSMOOTHENABLE, and RS_VALUE.
void nux::GpuRenderStates::EnableScissor | ( | t_u32 | bScissor = FALSE | ) | [inline] |
References nux::GFXRS_SCISSORTESTENABLE, and RS_VALUE.
void nux::GpuRenderStates::GetBlend | ( | t_u32 & | AlphaBlendEnable_, |
t_u32 & | SrcBlendFactor_, | ||
t_u32 & | DestBlendFactor_ | ||
) | [inline] |
References nux::GFXRS_ALPHABLENDENABLE, nux::GFXRS_DESTBLEND, nux::GFXRS_SRCBLEND, and RS_VALUE.
void nux::GpuRenderStates::ResetDefault | ( | ) |
void nux::GpuRenderStates::ResetStateChangeToDefault | ( | ) |
Referenced by nux::GraphicsEngine::ResetRenderStates().
void nux::GpuRenderStates::SetAlphaTest | ( | bool | EnableAlphaTest_, |
t_u32 | AlphaTestFunc_ = GL_ALWAYS , |
||
BYTE | AlphaTestRef_ = 0 |
||
) | [inline] |
References nux::GFXRS_ALPHATESTENABLE, nux::GFXRS_ALPHATESTFUNC, nux::GFXRS_ALPHATESTREF, and RS_VALUE.
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] |
References nux::GFXRS_DESTBLEND, nux::GFXRS_SRCBLEND, RS_VALUE, and SetBlend().
void nux::GpuRenderStates::SetBlendOp | ( | t_u32 | BlendOp = GL_FUNC_ADD | ) | [inline] |
References nux::GFXRS_BLENDOP, and RS_VALUE.
void nux::GpuRenderStates::SetCullMode | ( | bool | EnableCullFace, |
t_u32 | FrontFace_ = GL_CCW , |
||
t_u32 | Cullface_ = GL_BACK |
||
) | [inline] |
References nux::GFXRS_CULLFACE, nux::GFXRS_CULLFACEENABLE, nux::GFXRS_FRONTFACE, and RS_VALUE.
void nux::GpuRenderStates::SetDepthMask | ( | t_u32 | bDepth = TRUE | ) | [inline] |
References nux::GFXRS_ZWRITEENABLE, and RS_VALUE.
void nux::GpuRenderStates::SetDepthRange | ( | float | zNear = 0.0f , |
float | zFar = 1.0f |
||
) | [inline] |
References nux::GFXRS_ZFAR, nux::GFXRS_ZNEAR, and RS_VALUE.
void nux::GpuRenderStates::SetDepthTest | ( | bool | EnableDepthTest, |
t_u32 | WriteEnable_ = GL_TRUE , |
||
t_u32 | DepthFunc_ = GL_LEQUAL |
||
) | [inline] |
References nux::GFXRS_ZFUNC, nux::GFXRS_ZTESTENABLE, nux::GFXRS_ZWRITEENABLE, and RS_VALUE.
void nux::GpuRenderStates::SetPolygonMode | ( | t_u32 | FrontMode = GL_FILL , |
t_u32 | BackMode = GL_FILL |
||
) | [inline] |
References nux::GFXRS_BACK_POLYGONMODE, nux::GFXRS_FRONT_POLYGONMODE, and RS_VALUE.
void nux::GpuRenderStates::SetPolygonOffset | ( | t_u32 | bEnable, |
float | Factor = 0.0f , |
||
float | Units = 0.0f |
||
) | [inline] |
void nux::GpuRenderStates::SetPremultipliedBlend | ( | PorterDuffOperator | op | ) | [inline] |
References nux::GFXRS_DESTBLEND, nux::GFXRS_SRCBLEND, and RS_VALUE.
void nux::GpuRenderStates::SetSeparateBlendOp | ( | t_u32 | BlendOpRGB_ = GL_FUNC_ADD , |
t_u32 | BlendOpAlpha_ = GL_FUNC_ADD |
||
) | [inline] |
References nux::GFXRS_BLENDOP, nux::GFXRS_BLENDOPALPHA, and RS_VALUE.
void nux::GpuRenderStates::SetStencil | ( | bool | enable_stencil | ) | [inline] |
References nux::GFXRS_STENCILENABLE, and RS_VALUE.
void nux::GpuRenderStates::SubmitChangeStates | ( | ) |