OpenGLEffect
Description
- Derived from
-
GLEffect<TParameters> abstract
Full source code is included in the Tinman 3D SDK download. |
Abstract base class for OpenGL 4.1 Core Profile IRenderEffect implementations.
The GLEffect.RenderStateDefault method sets the following state values:
-
Using GL.BlendColor:
GL.BLEND_COLOR = (0,0,0,0) -
Using GL.BlendEquationSeparate:
GL.BLEND_EQUATION_ALPHA = GL.FUNC_ADD
GL.BLEND_EQUATION_RGB = GL.FUNC_ADD -
Using GL.BlendFuncSeparate:
GL.BLEND_DST_ALPHA = GL.ZERO
GL.BLEND_DST_RGB = GL.ZERO
GL.BLEND_SRC_ALPHA = GL.ONE
GL.BLEND_SRC_RGB = GL.ONE -
Using GL.ColorMask:
GL.COLOR_WRITEMASK = (GL.TRUE,…) -
Using GL.CullFace:
GL.CULL_FACE_MODE = GL.BACK -
Using GL.DepthFunc:
GL.DEPTH_FUNC = GL.LESS -
Using GL.DepthMask:
GL.DEPTH_WRITEMASK = GL.TRUE -
Using GL.Disable:
GL.BLEND = GL.FALSE
GL.CLIP_DISTANCE0… n = GL.FALSE
GL.COLOR_LOGIC_OP = GL.FALSE
GL.CULL_FACE = GL.FALSE
GL.DEPTH_CLAMP = GL.FALSE
GL.DEPTH_TEST = GL.FALSE -
Using GL.LogicOp:
GL.LOGIC_OP_MODE = GL.COPY -
TODO: Insert content!
The GLEffect.SamplerStateDefault method sets the following state values:
-
Using GL.SamplerParameteri:
GL.TEXTURE_LOD_BIAS = 0
GL.TEXTURE_COMPARE_FUNC = GL.NEVER
GL.TEXTURE_COMPARE_MODE = GL.NONE
GL.TEXTURE_MAG_FILTER = GL.LINEAR
GL.TEXTURE_MAX_LOD = 1000
GL.TEXTURE_MIN_FILTER = GL.NEAREST_MIPMAP_LINEAR
GL.TEXTURE_MIN_LOD = -1000
GL.TEXTURE_REDUCTION_MODE_ARB = GL.WEIGHTED_AVERAGE_ARB
GL.TEXTURE_WRAP_R = GL.REPEAT
GL.TEXTURE_WRAP_S = GL.REPEAT
GL.TEXTURE_WRAP_T = GL.REPEAT -
Using GL.SamplerParameterf:
GL.TEXTURE_MAX_ANISOTROPY = 1 -
Using GL.SamplerParameterfv:
GL.TEXTURE_BORDER_COLOR = (0,0,0,0)
Render and sampler state of extensions will only be set if the extension is supported.