X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frenderbuffer.h;h=751374bd4a4258f70ca9afa74d1e16bf543b49a3;hp=efcf5658872982f3aaf6f3ca97471c363a797ec5;hb=9d1fa012a23693768bbe287371e97751c03acc50;hpb=e003d7a1497dad3b13e4e88e681f8fa2afc40c83 diff --git a/source/renderbuffer.h b/source/renderbuffer.h index efcf5658..751374bd 100644 --- a/source/renderbuffer.h +++ b/source/renderbuffer.h @@ -31,9 +31,17 @@ public: unsigned get_width() const { return width; } unsigned get_height() const { return height; } +private: + static PixelFormat normalize_format(PixelFormat); + +public: /** Allocates storage for the renderbuffer. */ void storage(PixelFormat fmt, unsigned wd, unsigned ht); + /** Returns the maximum supported sample count for multisampling. If + multisampling is not supported, returns 0. */ + static unsigned get_max_samples(); + /** Allocates multisample storage for the renderbuffer. All attachments in a framebuffer must have the same number of samples. To transfer the contents to a texture for furter processing, use the framebuffer blit