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

Method attach

source/globjects/source/Program.cpp:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void Program::attach(Shader * shader)
136{
137 assert(shader != nullptr);
138
139 gl::glAttachShader(id(), shader->id());
140
141 shader->registerListener(this);
142 m_shaders.insert(shader);
143
144 invalidate();
145}
146
147void Program::detach(Shader * shader)
148{

Callers 11

ScreenAlignedQuadMethod · 0.80
initializeGLMethod · 0.80
ScreenAlignedQuadMethod · 0.80
initializeFunction · 0.80
initializeFunction · 0.80
ScreenAlignedQuadMethod · 0.80
ScreenAlignedQuadMethod · 0.80
ScreenAlignedQuadMethod · 0.80
initializeFunction · 0.80
initializeFunction · 0.80
initializeFunction · 0.80

Calls 2

registerListenerMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected