3#include <cgv/render/texture.h>
4#include <cgv/render/frame_buffer.h>
6#include "gl_depth_peeler.h"
66#include <cgv/config/lib_end.h>
base class for all drawables, which is independent of the used rendering API.
this class encapsulate frame buffers that live on the GPU and can be used as destination for the rend...
gl_depth_peeler(bool front_to_back=true, float _depth_bias=0.001)
construct uninitialized depth peeler
cgv::signal::signal< context &, texture & > render_callback_2
signal called to render the transparent content for second and further layers with additional depth t...
int render_transparent(context &ctx, int max_nr_layers, int tex_unit=-1)
perform transparent rendering by considering a maximum of the specified number of depth layers
void init_frame(context &ctx)
configure frame buffer and textures
void blend_texture_over_viewport(context &ctx, texture &tex)
renders the given texture over the current viewport
cgv::signal::signal< context & > render_callback
signal called to render the transparent content for first layer without additional depth test
bool init(context &ctx)
checks for extensions and init depth peeler, return success
void create_and_attach_texture(context &ctx, texture &tex, int w, int h, int i=-1)
ensure that texture has the correct dimensions and is created
gl_transparent_renderer(bool front_to_back=true, float _depth_bias=0.001)
construct uninitialized depth peeler
gl_depth_peeler peeler
depth peeler used for visibility sorting
texture color_tex
texture used as color buffer in front to back mode to blend together all transparent layers before bl...
void destruct(context &ctx)
destruct the transparent renderer
std::string last_error
a string that contains the last error, which is only set by the init method
the texture class encapsulates all functionality independent of the rendering api.
namespace for opengl specific GPU programming
namespace for api independent GPU programming
this header is dependency free