Axiom.RenderSystems.OpenGL.GLSL.GLSLLinkProgramManager.SetActiveVertexShader C# (CSharp) Method

SetActiveVertexShader() public method

Set the active vertex shader for the next rendering state.
The active program object will be cleared. Normally called from the GLSLGpuProgram.BindProgram and UnbindProgram methods
public SetActiveVertexShader ( GLSLGpuProgram vertexProgram ) : void
vertexProgram GLSLGpuProgram
return void
        public void SetActiveVertexShader(GLSLGpuProgram vertexProgram)
        {
            if (vertexProgram != activeVertexProgram)
            {
                activeVertexProgram = vertexProgram;

                // active link program is no longer valid
                activeLinkProgram = null;

                // change back to fixed pipeline
                Gl.glUseProgramObjectARB(0);
            }
        }