示例#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();
 }
示例#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();
 }