Tatooine
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
tatooine::gl::framebuffer Class Reference

#include <framebuffer.h>

Inheritance diagram for tatooine::gl::framebuffer:
[legend]
Collaboration diagram for tatooine::gl::framebuffer:
[legend]

Public Member Functions

DLL_API framebuffer ()
 
DLL_API ~framebuffer ()
 
template<typename... Textures>
DLL_API framebuffer (const Textures &... textures)
 
template<typename T , typename Components >
DLL_API GLenum attach (const tex2< T, Components > &tex, unsigned int i=0)
 
template<typename T >
DLL_API GLenum attach (const tex2< T, Depth > &depth_tex)
 
DLL_API void bind ()
 
DLL_API void clear ()
 
- Public Member Functions inherited from tatooine::gl::id_holder< GLuint >
 id_holder ()
 
 id_holder (GLuint _id)
 
 id_holder (id_holder const &other)=delete
 
 id_holder (id_holder &&other) noexcept
 
auto operator= (id_holder const &other) -> id_holder &=delete
 
auto operator= (id_holder &&other) noexcept -> id_holder &
 
 ~id_holder ()=default
 
auto id () const
 
void swap (id_holder &other)
 

Static Public Member Functions

static DLL_API void unbind ()
 

Private Member Functions

template<typename T >
constexpr GLenum attach (const tex2< T, Depth > &depth_tex, unsigned int)
 

Static Private Member Functions

template<typename... Cs>
static constexpr auto num_color_components ()
 
template<typename... Ts>
static constexpr auto sum (Ts... ts)
 

Additional Inherited Members

- Static Public Attributes inherited from tatooine::gl::id_holder< GLuint >
static constexpr auto default_val
 
- Protected Member Functions inherited from tatooine::gl::id_holder< GLuint >
void set_id (GLuint id)
 
auto id_ptr ()
 
auto id_ref () -> auto &
 

Constructor & Destructor Documentation

◆ framebuffer() [1/2]

◆ ~framebuffer()

DLL_API tatooine::gl::framebuffer::~framebuffer ( )

◆ framebuffer() [2/2]

template<typename... Textures>
DLL_API tatooine::gl::framebuffer::framebuffer ( const Textures &...  textures)
inline

Member Function Documentation

◆ attach() [1/3]

template<typename T , typename Components >
DLL_API GLenum tatooine::gl::framebuffer::attach ( const tex2< T, Components > &  tex,
unsigned int  i = 0 
)

◆ attach() [2/3]

template<typename T >
DLL_API GLenum tatooine::gl::framebuffer::attach ( const tex2< T, Depth > &  depth_tex)

◆ attach() [3/3]

template<typename T >
constexpr GLenum tatooine::gl::framebuffer::attach ( const tex2< T, Depth > &  depth_tex,
unsigned int   
)
inlineconstexprprivate

◆ bind()

DLL_API void tatooine::gl::framebuffer::bind ( )

◆ clear()

DLL_API void tatooine::gl::framebuffer::clear ( )

◆ num_color_components()

template<typename... Cs>
static constexpr auto tatooine::gl::framebuffer::num_color_components ( )
inlinestaticconstexprprivate

◆ sum()

template<typename... Ts>
static constexpr auto tatooine::gl::framebuffer::sum ( Ts...  ts)
inlinestaticconstexprprivate

◆ unbind()

static DLL_API void tatooine::gl::framebuffer::unbind ( )
static

The documentation for this class was generated from the following file: