StapleGL
Header-only C++20 OpenGL wrapper
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages Concepts
framebuffer.hpp File Reference

Wrapper for OpenGL Framebuffer Objects. More...

#include "gl_functions.hpp"
#include "renderbuffer.hpp"
#include "texture.hpp"
#include "utility.hpp"
#include <array>
#include <cstdint>
#include <exception>
#include <functional>
#include <optional>
#include <span>
Include dependency graph for framebuffer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  staplegl::framebuffer
 Framebuffer Object (FBO) wrapper. More...
 

Namespaces

namespace  staplegl
 

Enumerations

enum class  staplegl::fbo_attachment : std::uint8_t { staplegl::NONE = 0x00 , staplegl::ATTACH_DEPTH_BUFFER = 0x01 , staplegl::ATTACH_STENCIL_BUFFER = 0x02 , staplegl::ATTACH_DEPTH_STENCIL_BUFFER = 0x03 }
 enum class for framebuffer attachments. More...
 

Detailed Description

Wrapper for OpenGL Framebuffer Objects.

Author
Dario Loi
Date
2023-09-18

Wraps FBOs allowing for easy creation and usage. functionalities include the internal management of renderbuffers, some utility functions to transfer contents from one framebuffer to another, and some functions to bind/unbind the FBO to the OpenGL context.

Definition in file framebuffer.hpp.