CSCI441 OpenGL Library 5.9.0
CS@Mines CSCI441 Computer Graphics Course Library
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Namespaces | Functions
FramebufferUtils.hpp File Reference

Helper functions to work with OpenGL Framebuffer. More...

#include <glad/gl.h>
#include <cstdio>

Go to the source code of this file.

Namespaces

namespace  CSCI441
 CSCI441 Helper Functions for OpenGL.
 
namespace  FramebufferUtils
 OpenGL Framebuffer Utility functions.
 

Functions

void CSCI441::FramebufferUtils::printFramebufferInfo (GLenum target, GLuint fbo)
 Prints the framebuffer information for the FBO attached to the corresponding target.
 
void CSCI441::FramebufferUtils::printFramebufferStatusMessage (GLenum target, GLuint fbo)
 Prints the framebuffer status for the FBO attached to the corresponding target.
 
void CSCI441::FramebufferUtils::printFramebufferStatusMessage (GLenum target)
 Prints the framebuffer status for the FBO currently attached to the corresponding target.
 

Detailed Description

Helper functions to work with OpenGL Framebuffer.

Author
Dr. Jeffrey Paone

These functions, classes, and constants help minimize common code that needs to be written.

Warning
This header file depends upon GLAD (or alternatively GLEW)

Function Documentation

◆ printFramebufferInfo()

void CSCI441::FramebufferUtils::printFramebufferInfo ( GLenum  target,
GLuint  fbo 
)
inline

Prints the framebuffer information for the FBO attached to the corresponding target.

Parameters
targetframebuffer target to bind named framebuffer to
fboname of a framebuffer object

◆ printFramebufferStatusMessage() [1/2]

void CSCI441::FramebufferUtils::printFramebufferStatusMessage ( GLenum  target)
inline

Prints the framebuffer status for the FBO currently attached to the corresponding target.

Parameters
targetframebuffer target to check status of bound framebuffer

◆ printFramebufferStatusMessage() [2/2]

void CSCI441::FramebufferUtils::printFramebufferStatusMessage ( GLenum  target,
GLuint  fbo 
)
inline

Prints the framebuffer status for the FBO attached to the corresponding target.

Parameters
targetframebuffer target to bind named framebuffer to
fboname of a framebuffer object