Carna  Version 3.3.2
Classes | Namespaces | Macros
Framebuffer.h File Reference

Defines Carna::base::Framebuffer. More...

#include <Carna/Carna.h>
#include <Carna/base/noncopyable.h>
#include <Carna/base/math.h>
#include <stack>
#include <set>
+ Include dependency graph for Framebuffer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Carna::base::Framebuffer
 Maintains a framebuffer object that supports up to 8 color components simultaneously. More...
 
class  Carna::base::Framebuffer::MinimalBinding
 Maintains the binding of a Framebuffer in a RAII-manner. More...
 
class  Carna::base::Framebuffer::Binding
 Acts like MinimalBinding, but checks the bound framebuffer for validity and allows rendering. More...
 

Namespaces

 Carna::base
 Contains the core framework components.
 

Macros

#define CARNA_RENDER_TO_FRAMEBUFFER_EX(fbo, binding, instructions)
 Binds fbo using a binding named binding and performs instructions before revoking the binding. More...
 
#define CARNA_RENDER_TO_FRAMEBUFFER(fbo, instructions)   CARNA_RENDER_TO_FRAMEBUFFER_EX( fbo, fboBinding##__COUNTER__, instructions )
 

Detailed Description

Defines Carna::base::Framebuffer.

Definition in file Framebuffer.h.

Macro Definition Documentation

◆ CARNA_RENDER_TO_FRAMEBUFFER

#define CARNA_RENDER_TO_FRAMEBUFFER (   fbo,
  instructions 
)    CARNA_RENDER_TO_FRAMEBUFFER_EX( fbo, fboBinding##__COUNTER__, instructions )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 317 of file Framebuffer.h.

◆ CARNA_RENDER_TO_FRAMEBUFFER_EX

#define CARNA_RENDER_TO_FRAMEBUFFER_EX (   fbo,
  binding,
  instructions 
)
Value:
{ \
Carna::base::Framebuffer::Binding binding( fbo ); \
instructions; \
}

Binds fbo using a binding named binding and performs instructions before revoking the binding.

Definition at line 303 of file Framebuffer.h.