]> git.tdb.fi Git - libs/gl.git/blobdiff - source/rendertarget.h
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / rendertarget.h
index e38f6f51ad40589ab4321c958056b10258900121..7d796a3cefe80540a409f5e6b80a6535aefa87f0 100644 (file)
@@ -31,7 +31,7 @@ public:
        bool empty() const { return !count; }
        const unsigned char *begin() const { return outputs; }
        const unsigned char *end() const { return outputs+count; }
-       int index(RenderOutput);
+       int index(RenderOutput) const;
 };
 
 inline RenderTargetFormat operator,(RenderOutput o1, RenderOutput o2)
@@ -63,6 +63,7 @@ private:
        Framebuffer fbo;
 
 public:
+       RenderTarget(unsigned, unsigned, RenderOutput);
        RenderTarget(unsigned, unsigned, const RenderTargetFormat & = (RENDER_COLOR, RENDER_DEPTH));
        RenderTarget(unsigned, unsigned, unsigned, const RenderTargetFormat & = (RENDER_COLOR, RENDER_DEPTH));
 private:
@@ -72,10 +73,13 @@ private:
 public:
        ~RenderTarget();
 
+       unsigned get_width() const { return width; }
+       unsigned get_height() const { return height; }
        const RenderTargetFormat &get_format() const { return format; }
        Framebuffer &get_framebuffer() { return fbo; }
-       const Texture2D &get_target_texture(unsigned);
-       const Texture2D &get_target_texture(RenderOutput);
+       void set_texture_filter(TextureFilter);
+       const Texture2D &get_target_texture(unsigned) const;
+       const Texture2D &get_target_texture(RenderOutput) const;
        void blit_from(const RenderTarget &);
 };