private static JCGLFramebufferType depthlessFramebuffer( final JCGLFramebuffersType g_fb, final JCGLTexturesType g_tex) { final JCGLTextureUnitType u0 = g_tex.textureGetUnits().get(0); final JCGLTexture2DType t = g_tex.texture2DAllocate( u0, 64L, 64L, JCGLTextureFormat.TEXTURE_FORMAT_RGBA_8_4BPP, JCGLTextureWrapS.TEXTURE_WRAP_REPEAT, JCGLTextureWrapT.TEXTURE_WRAP_REPEAT, JCGLTextureFilterMinification.TEXTURE_FILTER_NEAREST, JCGLTextureFilterMagnification.TEXTURE_FILTER_NEAREST); g_tex.textureUnitUnbind(u0); final JCGLFramebufferBuilderType fbb = g_fb.framebufferNewBuilder(); fbb.attachColorTexture2DAt( g_fb.framebufferGetColorAttachments().get(0), g_fb.framebufferGetDrawBuffers().get(0), t); return g_fb.framebufferAllocate(fbb); }
private static JCGLFramebufferType depthlessFramebuffer( final JCGLFramebuffersType g_fb, final JCGLTexturesType g_tex) { final JCGLTextureUnitType u0 = g_tex.textureGetUnits().get(0); final JCGLTexture2DType t = g_tex.texture2DAllocate( u0, 64L, 64L, JCGLTextureFormat.TEXTURE_FORMAT_RGBA_8_4BPP, JCGLTextureWrapS.TEXTURE_WRAP_REPEAT, JCGLTextureWrapT.TEXTURE_WRAP_REPEAT, JCGLTextureFilterMinification.TEXTURE_FILTER_NEAREST, JCGLTextureFilterMagnification.TEXTURE_FILTER_NEAREST); g_tex.textureUnitUnbind(u0); final JCGLFramebufferBuilderType fbb = g_fb.framebufferNewBuilder(); fbb.attachColorTexture2DAt( g_fb.framebufferGetColorAttachments().get(0), g_fb.framebufferGetDrawBuffers().get(0), t); return g_fb.framebufferAllocate(fbb); }
static JCGLFramebufferType newColorFramebuffer( final JCGLInterfaceGL33Type g, final JCGLTextureFormat f, final int w, final int h) { final JCGLTexturesType gt = g.textures(); final JCGLFramebuffersType fb = g.framebuffers(); final JCGLFramebufferBuilderType fbb = fb.framebufferNewBuilder(); final List<JCGLFramebufferColorAttachmentPointType> points = fb.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> buffers = fb.framebufferGetDrawBuffers(); final List<JCGLTextureUnitType> units = gt.textureGetUnits(); final JCGLTextureUnitType u = units.get(0); final JCGLTexture2DType t = newTexture2D(g, f, w, h, u); fbb.attachColorTexture2DAt(points.get(0), buffers.get(0), t); return fb.framebufferAllocate(fbb); }
private static JCGLFramebufferType stencillessFramebuffer( final JCGLFramebuffersType g_fb, final JCGLTexturesType g_tex) { final JCGLTextureUnitType u0 = g_tex.textureGetUnits().get(0); final JCGLTexture2DType t = g_tex.texture2DAllocate( u0, 64L, 64L, JCGLTextureFormat.TEXTURE_FORMAT_RGBA_8_4BPP, JCGLTextureWrapS.TEXTURE_WRAP_REPEAT, JCGLTextureWrapT.TEXTURE_WRAP_REPEAT, JCGLTextureFilterMinification.TEXTURE_FILTER_NEAREST, JCGLTextureFilterMagnification.TEXTURE_FILTER_NEAREST); g_tex.textureUnitUnbind(u0); final JCGLFramebufferBuilderType fbb = g_fb.framebufferNewBuilder(); fbb.attachColorTexture2DAt( g_fb.framebufferGetColorAttachments().get(0), g_fb.framebufferGetDrawBuffers().get(0), t); return g_fb.framebufferAllocate(fbb); }
private static JCGLFramebufferType stencillessFramebuffer( final JCGLFramebuffersType g_fb, final JCGLTexturesType g_tex) { final JCGLTextureUnitType u0 = g_tex.textureGetUnits().get(0); final JCGLTexture2DType t = g_tex.texture2DAllocate( u0, 64L, 64L, JCGLTextureFormat.TEXTURE_FORMAT_RGBA_8_4BPP, JCGLTextureWrapS.TEXTURE_WRAP_REPEAT, JCGLTextureWrapT.TEXTURE_WRAP_REPEAT, JCGLTextureFilterMinification.TEXTURE_FILTER_NEAREST, JCGLTextureFilterMagnification.TEXTURE_FILTER_NEAREST); g_tex.textureUnitUnbind(u0); final JCGLFramebufferBuilderType fbb = g_fb.framebufferNewBuilder(); fbb.attachColorTexture2DAt( g_fb.framebufferGetColorAttachments().get(0), g_fb.framebufferGetDrawBuffers().get(0), t); return g_fb.framebufferAllocate(fbb); }
static JCGLFramebufferType newColorFramebuffer( final JCGLInterfaceGL33Type g, final JCGLTextureFormat f, final int w, final int h) { final JCGLTexturesType gt = g.getTextures(); final JCGLFramebuffersType fb = g.getFramebuffers(); final JCGLFramebufferBuilderType fbb = fb.framebufferNewBuilder(); final List<JCGLFramebufferColorAttachmentPointType> points = fb.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> buffers = fb.framebufferGetDrawBuffers(); final List<JCGLTextureUnitType> units = gt.textureGetUnits(); final JCGLTextureUnitType u = units.get(0); final JCGLTexture2DType t = JCGLShadersTestUtilities.newTexture2D(g, f, w, h, u); fbb.attachColorTexture2DAt(points.get(0), buffers.get(0), t); return fb.framebufferAllocate(fbb); }
g_fb.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> db = g_fb.framebufferGetDrawBuffers();
g_fb.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> db = g_fb.framebufferGetDrawBuffers();
g_fb.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> db = g_fb.framebufferGetDrawBuffers();
g_fb.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> db = g_fb.framebufferGetDrawBuffers();
g_fb.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> db = g_fb.framebufferGetDrawBuffers();
g_fb.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> db = g_fb.framebufferGetDrawBuffers();
g_fb_alt.framebufferGetDrawBuffers(); ia.context.contextReleaseCurrent();
g_fb_main.framebufferGetDrawBuffers(); final JCGLFramebufferBuilderType fbb = g_fb_main.framebufferNewBuilder();
g_fb_alt.framebufferGetDrawBuffers(); ia.context.contextReleaseCurrent();
g_fb_main.framebufferGetDrawBuffers(); final JCGLFramebufferBuilderType fbb = g_fb_main.framebufferNewBuilder();
g_fb.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> buffers = g_fb.framebufferGetDrawBuffers();
g_fb.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> buffers = g_fb.framebufferGetDrawBuffers();
g_fb_main.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> draw_buffers = g_fb_main.framebufferGetDrawBuffers();
g_fb_main.framebufferGetColorAttachments(); final List<JCGLFramebufferDrawBufferType> draw_buffers = g_fb_main.framebufferGetDrawBuffers();