public JoglTextureRenderer(final int width, final int height, final int depthBits, final int samples, final Renderer parentRenderer, final ContextCapabilities caps) { super(width, height, depthBits, samples, parentRenderer, caps); if (caps.getMaxFBOColorAttachments() > 1) { _attachBuffer = BufferUtils.createIntBuffer(caps.getMaxFBOColorAttachments()); for (int i = 0; i < caps.getMaxFBOColorAttachments(); i++) { _attachBuffer.put(GL.GL_COLOR_ATTACHMENT0 + i); } } }
public Lwjgl3TextureRenderer(final int width, final int height, final int depthBits, final int samples, final Renderer parentRenderer, final ContextCapabilities caps) { super(width, height, depthBits, samples, parentRenderer, caps); if (caps.getMaxFBOColorAttachments() > 1) { _attachBuffer = BufferUtils.createIntBuffer(caps.getMaxFBOColorAttachments()); for (int i = 0; i < caps.getMaxFBOColorAttachments(); i++) { _attachBuffer.put(GL30C.GL_COLOR_ATTACHMENT0 + i); } } }
public LwjglTextureRenderer(final int width, final int height, final int depthBits, final int samples, final Renderer parentRenderer, final ContextCapabilities caps) { super(width, height, depthBits, samples, parentRenderer, caps); if (caps.getMaxFBOColorAttachments() > 1) { _attachBuffer = BufferUtils.createIntBuffer(caps.getMaxFBOColorAttachments()); for (int i = 0; i < caps.getMaxFBOColorAttachments(); i++) { _attachBuffer.put(EXTFramebufferObject.GL_COLOR_ATTACHMENT0_EXT + i); } } }
protected <T> void render(final T toRender, final Consumer<T> consumer, final List<Texture> texs, final int clear) { final int maxDrawBuffers = ContextManager.getCurrentContext().getCapabilities().getMaxFBOColorAttachments();
private void render(final List<? extends Spatial> toDrawA, final Spatial toDrawB, final Scene toDrawC, final List<Texture> texs, final int clear) { final int maxDrawBuffers = ContextManager.getCurrentContext().getCapabilities().getMaxFBOColorAttachments();
final GL gl = GLContext.getCurrentGL(); final int maxDrawBuffers = ContextManager.getCurrentContext().getCapabilities().getMaxFBOColorAttachments();