List of usage examples for org.lwjgl.opengl GL30 glFramebufferTexture3D
public static void glFramebufferTexture3D(@NativeType("GLenum") int target, @NativeType("GLenum") int attachment, @NativeType("GLenum") int textarget, @NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int layer)
From source file:com.samrj.devil.gl.FBO.java
License:Open Source License
/** * Attaches a layer of the given 3D texture to this frame buffer. This frame * buffer must be bound./* w w w .ja v a 2 s . c om*/ * * @param texture The 3D texture to attach. * @param layer The layer of the given texture to attach. * @param attachment The attachment type. */ public void texture3D(Texture3D texture, int layer, int attachment) { ensureBound(); if (layer < 0 || layer >= texture.getDepth()) throw new ArrayIndexOutOfBoundsException(); GL30.glFramebufferTexture3D(GL30.GL_FRAMEBUFFER, attachment, texture.target, texture.id, 0, layer); }
From source file:playn.java.JavaGL20.java
License:Apache License
@Override public void glFramebufferTexture3D(int target, int attachment, int textarget, int texture, int level, int zoffset) { GL30.glFramebufferTexture3D(target, attachment, textarget, texture, level, zoffset); }