Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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();
 }