1 #ifndef RENDERTARGET_H_
2 #define RENDERTARGET_H_
4 #include "framebuffer.h"
17 std::vector<Texture *> textures;
21 RenderTarget(unsigned, unsigned, const FrameFormat & = (COLOR_ATTACHMENT, DEPTH_ATTACHMENT));
23 RenderTarget(const RenderTarget &);
24 RenderTarget &operator=(const RenderTarget &);
28 unsigned get_width() const { return width; }
29 unsigned get_height() const { return height; }
30 const FrameFormat &get_format() const { return fbo.get_format(); }
31 Framebuffer &get_framebuffer() { return fbo; }
32 const Texture2D &get_target_texture(unsigned) const;
33 const Texture2D &get_target_texture(FrameAttachment) const;
35 void set_debug_name(const std::string &);