X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frenderbuffer.h;h=afc6ed204298a7bbcfe02d6c95a87af83c6a1bba;hp=0ccf49675897c6b9864da27adb708eed45c458e8;hb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;hpb=96fb9a0237a7c3f6fc23406ce50cd1c6fe484111 diff --git a/source/renderbuffer.h b/source/renderbuffer.h index 0ccf4967..afc6ed20 100644 --- a/source/renderbuffer.h +++ b/source/renderbuffer.h @@ -31,13 +31,13 @@ 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