MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / attachToProgramObject

Method attachToProgramObject

RenderSystems/GL3Plus/src/GLSL/OgreGLSLShader.cpp:486–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484 }
485
486 void GLSLShader::attachToProgramObject( const GLuint programObject )
487 {
488 // attach child objects
489 GLSLShaderContainerIterator childProgramCurrent = mAttachedGLSLShaders.begin();
490 GLSLShaderContainerIterator childProgramEnd = mAttachedGLSLShaders.end();
491
492 for( ; childProgramCurrent != childProgramEnd; ++childProgramCurrent )
493 {
494 GLSLShader *childShader = *childProgramCurrent;
495 childShader->compile( true );
496 childShader->attachToProgramObject( programObject );
497 }
498 OGRE_CHECK_GL_ERROR( glAttachShader( programObject, mGLShaderHandle ) );
499 }
500
501 void GLSLShader::detachFromProgramObject( const GLuint programObject )
502 {

Callers 1

compileAndLinkMethod · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected