@Override public int compareTo(final JCGLFramebufferColorAttachmentPointType o) { return Integer.compare(this.index, o.colorAttachmentPointGetIndex()); } }
@Override public int compareTo(final JCGLFramebufferColorAttachmentPointType o) { return Integer.compare(this.index, o.colorAttachmentPointGetIndex()); } }
private void framebufferAllocateConfigureDrawBuffers( final Builder bb, final int f_id) { for (int index = 0; index < this.draw_buffers.size(); ++index) { final JCGLFramebufferDrawBufferType buffer = this.draw_buffers.get(index); if (bb.draw_buffers.containsKey(buffer)) { final JCGLFramebufferColorAttachmentPointType attach = bb.draw_buffers.get(buffer); FakeFramebuffers.LOG.debug( "[{}] draw buffer {} -> color {}", Integer.valueOf(f_id), Integer.valueOf(index), Integer.valueOf(attach.colorAttachmentPointGetIndex())); } else { FakeFramebuffers.LOG.debug( "[{}] draw buffer {} -> none", Integer.valueOf(f_id), Integer.valueOf(index)); } } }
@Override public void detachColorAttachment( final JCGLFramebufferColorAttachmentPointType point) { NullCheck.notNull(point); LWJGL3Framebuffers.checkColorAttachmentPoint(this.context, point); final int index = point.colorAttachmentPointGetIndex(); this.color_attaches.set(index, null); this.draw_buffers.values().remove(point); }
@Override public void detachColorAttachment( final JCGLFramebufferColorAttachmentPointType point) { NullCheck.notNull(point); FakeFramebuffers.checkColorAttachmentPoint(this.context, point); final int index = point.colorAttachmentPointGetIndex(); this.color_attaches.set(index, null); }
Integer.valueOf(f_id), Integer.valueOf(index), Integer.valueOf(attach.colorAttachmentPointGetIndex())); GL30.GL_COLOR_ATTACHMENT0 + attach.colorAttachmentPointGetIndex()); } else { if (LWJGL3Framebuffers.LOG.isDebugEnabled()) {
@Override public void attachColorTexture2DAt( final JCGLFramebufferColorAttachmentPointType point, final JCGLFramebufferDrawBufferType buffer, final JCGLTexture2DUsableType texture) { NullCheck.notNull(point); LWJGL3Framebuffers.checkColorAttachmentPoint(this.context, point); LWJGL3Framebuffers.checkDrawBuffer(this.context, buffer); LWJGL3Textures.checkTexture2D(this.context, texture); JCGLTextureFormats.checkColorRenderableTexture2D( texture.textureGetFormat()); this.color_attaches.set(point.colorAttachmentPointGetIndex(), texture); this.draw_buffers.put(buffer, point); }
@Override public void attachColorTexture2DAt( final JCGLFramebufferColorAttachmentPointType point, final JCGLFramebufferDrawBufferType buffer, final JCGLTexture2DUsableType texture) { NullCheck.notNull(point); FakeFramebuffers.checkColorAttachmentPoint(this.context, point); FakeFramebuffers.checkDrawBuffer(this.context, buffer); FakeTextures.checkTexture2D(this.context, texture); JCGLTextureFormats.checkColorRenderableTexture2D( texture.textureGetFormat()); this.color_attaches.set(point.colorAttachmentPointGetIndex(), texture); this.draw_buffers.put(buffer, point); }
@Override public void attachColorTextureCubeAt( final JCGLFramebufferColorAttachmentPointType point, final JCGLFramebufferDrawBufferType buffer, final JCGLTextureCubeUsableType texture, final JCGLCubeMapFaceLH face) { NullCheck.notNull(point); NullCheck.notNull(face); FakeFramebuffers.checkColorAttachmentPoint(this.context, point); FakeFramebuffers.checkDrawBuffer(this.context, buffer); FakeTextures.checkTextureCube(this.context, texture); JCGLTextureFormats.checkColorRenderableTexture2D( texture.textureGetFormat()); this.color_attaches.set( point.colorAttachmentPointGetIndex(), new CubeAttachment(texture, face)); this.draw_buffers.put(buffer, point); }
@Override public void attachColorTextureCubeAt( final JCGLFramebufferColorAttachmentPointType point, final JCGLFramebufferDrawBufferType buffer, final JCGLTextureCubeUsableType texture, final JCGLCubeMapFaceLH face) { NullCheck.notNull(point); NullCheck.notNull(face); LWJGL3Framebuffers.checkColorAttachmentPoint(this.context, point); LWJGL3Framebuffers.checkDrawBuffer(this.context, buffer); LWJGL3Textures.checkTextureCube(this.context, texture); JCGLTextureFormats.checkColorRenderableTexture2D( texture.textureGetFormat()); this.color_attaches.set( point.colorAttachmentPointGetIndex(), new CubeAttachment(texture, face)); this.draw_buffers.put(buffer, point); }