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

Method genFramebuffers

Source/Graphics/graphics.cpp:335–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void Graphics::genFramebuffers(GLuint* fb, const char* human_name) {
336 CHECK_GL_ERROR();
337 glGenFramebuffers(1, fb);
338 framebuffernames[*fb] = std::string(human_name);
339
340 LOGI << "Created framebuffer: " << *fb << " " << framebuffernames[*fb] << std::endl;
341 CHECK_GL_ERROR();
342}
343
344void Graphics::deleteFramebuffer(GLuint* fb) {
345 if (*fb != (GLuint)INVALID_FRAMEBUFFER) {

Callers 12

PreDrawFrameMethod · 0.80
CubemapMipChainFunction · 0.80
BakeFirstPassMethod · 0.80
BakeSecondPassMethod · 0.80
InitMethod · 0.80
GLInitMethod · 0.80
TextureBufferMethod · 0.80
CreateHistogramFunction · 0.80
UpdateShadowCacheFunction · 0.80
DrawMethod · 0.80
InitializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected