public void initStorage( final int internalFormat, final int width, final int height, final int samples) { if (!OpenGL.capabilities.GL_EXT_framebuffer_multisample) throw new RuntimeException("Hardware does not support EXT_framebuffer_multisample"); this.bind(); EXTFramebufferMultisample.glRenderbufferStorageMultisampleEXT( EXTFramebufferObject.GL_RENDERBUFFER_EXT, samples, internalFormat, width, height); RenderBuffer.unbind(); }
public void initStorage(final int internalFormat, final int width, final int height) { this.bind(); EXTFramebufferObject.glRenderbufferStorageEXT( EXTFramebufferObject.GL_RENDERBUFFER_EXT, internalFormat, width, height); RenderBuffer.unbind(); }