MCPcopy Create free account
hub / github.com/cginternals/globjects / useStages

Method useStages

source/globjects/source/ProgramPipeline.cpp:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void ProgramPipeline::useStages(Program * program, gl::UseProgramStageMask stages)
67{
68 program->setParameter(gl::GL_PROGRAM_SEPARABLE, gl::GL_TRUE);
69
70 program->registerListener(this);
71 m_programs.emplace(program);
72
73 program->link();
74
75 gl::glUseProgramStages(id(), stages, program->id());
76
77 invalidate();
78}
79
80void ProgramPipeline::releaseStages(gl::UseProgramStageMask stages)
81{

Callers 1

initializeFunction · 0.80

Calls 4

registerListenerMethod · 0.80
linkMethod · 0.80
setParameterMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected