@Override public int compareTo(final JCGLFramebufferColorAttachmentPointType o) { return Integer.compare(this.index, o.colorAttachmentPointIndex()); } }
@Override public int compareTo(final JCGLFramebufferColorAttachmentPointType o) { return Integer.compare(this.index, o.colorAttachmentPointIndex()); } }
@Override public void detachColorAttachment( final JCGLFramebufferColorAttachmentPointType point) { NullCheck.notNull(point, "Point"); checkColorAttachmentPoint(this.context, point); final int index = point.colorAttachmentPointIndex(); this.color_attaches.set(index, null); this.draw_buffers.values().remove(point); }
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); LOG.debug( "[{}] draw buffer {} -> color {}", Integer.valueOf(f_id), Integer.valueOf(index), Integer.valueOf(attach.colorAttachmentPointIndex())); } else { LOG.debug( "[{}] draw buffer {} -> none", Integer.valueOf(f_id), Integer.valueOf(index)); } } }
@Override public void detachColorAttachment( final JCGLFramebufferColorAttachmentPointType point) { NullCheck.notNull(point, "Point"); checkColorAttachmentPoint(this.context, point); final int index = point.colorAttachmentPointIndex(); this.color_attaches.set(index, null); }
Integer.valueOf(f_id), Integer.valueOf(index), Integer.valueOf(attach.colorAttachmentPointIndex())); GL30.GL_COLOR_ATTACHMENT0 + attach.colorAttachmentPointIndex()); } else { if (LOG.isDebugEnabled()) {
@Override public void attachColorTexture2DAt( final JCGLFramebufferColorAttachmentPointType point, final JCGLFramebufferDrawBufferType buffer, final JCGLTexture2DUsableType texture) { NullCheck.notNull(point, "Point"); checkColorAttachmentPoint(this.context, point); checkDrawBuffer(this.context, buffer); FakeTextures.checkTexture2D(this.context, texture); JCGLTextureFormats.checkColorRenderableTexture2D( texture.format()); this.color_attaches.set(point.colorAttachmentPointIndex(), texture); this.draw_buffers.put(buffer, point); }
@Override public void attachColorTexture2DAt( final JCGLFramebufferColorAttachmentPointType point, final JCGLFramebufferDrawBufferType buffer, final JCGLTexture2DUsableType texture) { NullCheck.notNull(point, "Point"); checkColorAttachmentPoint(this.context, point); checkDrawBuffer(this.context, buffer); LWJGL3Textures.checkTexture2D(this.context, texture); JCGLTextureFormats.checkColorRenderableTexture2D( texture.format()); this.color_attaches.set(point.colorAttachmentPointIndex(), 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, "Point"); NullCheck.notNull(face, "Face"); checkColorAttachmentPoint(this.context, point); checkDrawBuffer(this.context, buffer); FakeTextures.checkTextureCube(this.context, texture); JCGLTextureFormats.checkColorRenderableTexture2D( texture.format()); this.color_attaches.set( point.colorAttachmentPointIndex(), 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, "Point"); NullCheck.notNull(face, "Face"); checkColorAttachmentPoint(this.context, point); checkDrawBuffer(this.context, buffer); LWJGL3Textures.checkTextureCube(this.context, texture); JCGLTextureFormats.checkColorRenderableTexture2D( texture.format()); this.color_attaches.set( point.colorAttachmentPointIndex(), new CubeAttachment(texture, face)); this.draw_buffers.put(buffer, point); }