MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / framebufferDepthTexture2D

Method framebufferDepthTexture2D

Source/Graphics/graphics.cpp:299–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void Graphics::framebufferDepthTexture2D(TextureRef t, int mipmap_level) {
300 CHECK_GL_ERROR();
301 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, Textures::Instance()->returnTexture(t), mipmap_level);
302 CHECK_GL_ERROR();
303}
304
305// #pragma optimize("",off)
306void Graphics::framebufferColorTexture2D(TextureRef t, int mipmap_level) {

Callers 1

ApplyPostEffectsFunction · 0.80

Calls 1

returnTextureMethod · 0.80

Tested by

no test coverage detected