MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / Unattach

Method Unattach

cpp/5_Domain_Specific/smokeParticles/framebufferObject.cpp:164–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void FramebufferObject::Unattach(GLenum attachment)
165{
166 _GuardedBind();
167 GLenum type = GetAttachedType(attachment);
168
169 switch (type) {
170 case GL_NONE:
171 break;
172
173 case GL_RENDERBUFFER_EXT:
174 AttachRenderBuffer(0, attachment);
175 break;
176
177 case GL_TEXTURE:
178 AttachTexture(GL_TEXTURE_2D, 0, attachment);
179 break;
180
181 default:
182 cerr << "FramebufferObject::unbind_attachment ERROR: Unknown attached "
183 "resource type\n";
184 }
185
186 _GuardedUnbind();
187}
188
189void FramebufferObject::UnattachAll()
190{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected