18#ifndef HEADER_RTTS_HPP
19#define HEADER_RTTS_HPP
21#include "utils/leak_check.hpp"
30 FBO_NORMAL_AND_DEPTHS,
34 FBO_COMBINED_DIFFUSE_SPECULAR,
64enum TypeRTT :
unsigned int
103 RTT(
unsigned int width,
unsigned int height,
float rtt_scale = 1.0f,
104 bool use_default_fbo_only =
false);
107 unsigned int getWidth ()
const {
return m_width ; }
108 unsigned int getHeight()
const {
return m_height; }
111 unsigned getDepthStencilTexture()
const
113 assert(m_depth_stencil_tex != 0);
114 return m_depth_stencil_tex;
116 unsigned getRenderTarget(
enum TypeRTT target)
const
118 assert(m_render_target_textures[target] != 0);
119 return m_render_target_textures[target];
123 assert(m_frame_buffers[fbo] != NULL);
124 return *m_frame_buffers[fbo];
128 unsigned m_render_target_textures[RTT_COUNT] = {};
130 unsigned m_depth_stencil_tex = 0;
132 unsigned int m_width;
133 unsigned int m_height;
135 unsigned m_shadow_depth_tex = 0;
Definition: frame_buffer_layer.hpp:26
Definition: frame_buffer.hpp:33