/* $Id$
This file is part of libmspgl
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007-2011 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
#include "extension.h"
+#include "ext_framebuffer_multisample.h"
#include "ext_framebuffer_object.h"
#include "renderbuffer.h"
glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, fmt, width, height);
}
+void Renderbuffer::storage_multisample(unsigned samples, PixelFormat fmt, unsigned w, unsigned h)
+{
+ static RequireExtension _ext("GL_EXT_framebuffer_multisample");
+
+ Bind _bind(this, true);
+ width = w;
+ height = h;
+ glRenderbufferStorageMultisampleEXT(GL_RENDERBUFFER_EXT, samples, fmt, width, height);
+}
+
void Renderbuffer::bind() const
{
if(set_current(this))