public void glAlphaFunc(int func, float ref) { gl2.glAlphaFunc(func, ref); checkError(); }
if (target == GL2.GL_TEXTURE_3D) { gl2.glCompressedTexImage3D(target, level, format.internalFormat, gl2.glCompressedTexSubImage3D(target, level, 0, } else { gl2.glCompressedTexImage2D(target, level, format.internalFormat, gl2.glTexImage3D(target, level, format.internalFormat, if (slice == -1) { gl2.glTexImage3D(target, level, format.internalFormat, gl2.glTexSubImage3D(target,
public void glDrawBuffer(int mode) { gl2.glDrawBuffer(mode); checkError(); }
gl2.glDrawBuffer(context.initialDrawBuf); context.boundDrawBuf = INITIAL; gl2.glReadBuffer(context.initialReadBuf); context.boundReadBuf = INITIAL; gl2.glDrawBuffer(GL.GL_NONE); context.boundDrawBuf = NONE; gl2.glReadBuffer(GL.GL_NONE); context.boundReadBuf = NONE; gl2.glDrawBuffer(GLFbo.GL_COLOR_ATTACHMENT0_EXT + rb.getSlot()); context.boundDrawBuf = rb.getSlot();
public void glReadBuffer(int mode) { gl2.glReadBuffer(mode); checkError(); }
public void glPolygonMode(int face, int mode) { gl2.glPolygonMode(face, mode); checkError(); }
public void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, ByteBuffer data) { gl2.glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, data); checkError(); }
public void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ByteBuffer data) { gl2.glTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, data); checkError(); }
public void glPointSize(float size) { gl2.glPointSize(size); checkError(); }
public void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, ByteBuffer data) { gl2.glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, data); checkError(); }
@SuppressWarnings("fallthrough") public void initialize() { loadCapabilities(); // Initialize default state.. gl.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, 1); if (caps.contains(Caps.SeamlessCubemap)) { // Enable this globally. Should be OK. gl.glEnable(GLExt.GL_TEXTURE_CUBE_MAP_SEAMLESS); } if (caps.contains(Caps.CoreProfile)) { // Core Profile requires VAO to be bound. gl3.glGenVertexArrays(intBuf16); int vaoId = intBuf16.get(0); gl3.glBindVertexArray(vaoId); } if (gl2 != null) { gl2.glEnable(GL2.GL_VERTEX_PROGRAM_POINT_SIZE); if (!caps.contains(Caps.CoreProfile)) { gl2.glEnable(GL2.GL_POINT_SPRITE); } } }
gl2.glDrawBuffer(context.initialDrawBuf); context.boundDrawBuf = INITIAL; gl2.glReadBuffer(context.initialReadBuf); context.boundReadBuf = INITIAL; gl2.glDrawBuffer(GL.GL_NONE); context.boundDrawBuf = NONE; gl2.glReadBuffer(GL.GL_NONE); context.boundReadBuf = NONE; gl2.glDrawBuffer(GLFbo.GL_COLOR_ATTACHMENT0_EXT + rb.getSlot()); context.boundDrawBuf = rb.getSlot();
private void readFrameBufferWithGLFormat(FrameBuffer fb, ByteBuffer byteBuf, int glFormat, int dataType) { if (fb != null) { RenderBuffer rb = fb.getColorBuffer(); if (rb == null) { throw new IllegalArgumentException("Specified framebuffer" + " does not have a colorbuffer"); } setFrameBuffer(fb); if (gl2 != null) { if (context.boundReadBuf != rb.getSlot()) { gl2.glReadBuffer(GLFbo.GL_COLOR_ATTACHMENT0_EXT + rb.getSlot()); context.boundReadBuf = rb.getSlot(); } } } else { setFrameBuffer(null); } gl.glReadPixels(vpX, vpY, vpW, vpH, glFormat, dataType, byteBuf); }
public void applyRenderState(RenderState state) { if (gl2 != null) { if (state.isWireframe() && !context.wireframe) { gl2.glPolygonMode(GL.GL_FRONT_AND_BACK, GL2.GL_LINE); context.wireframe = true; } else if (!state.isWireframe() && context.wireframe) { gl2.glPolygonMode(GL.GL_FRONT_AND_BACK, GL2.GL_FILL); context.wireframe = false;
public void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, ByteBuffer data) { gl2.glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, data); checkError(); }
public void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ByteBuffer data) { gl2.glTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, data); checkError(); }
public void glPointSize(float size) { gl2.glPointSize(size); checkError(); }
public void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, ByteBuffer data) { gl2.glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, data); checkError(); }
@SuppressWarnings("fallthrough") public void initialize() { loadCapabilities(); // Initialize default state.. gl.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, 1); if (caps.contains(Caps.SeamlessCubemap)) { // Enable this globally. Should be OK. gl.glEnable(GLExt.GL_TEXTURE_CUBE_MAP_SEAMLESS); } if (caps.contains(Caps.CoreProfile)) { // Core Profile requires VAO to be bound. gl3.glGenVertexArrays(intBuf16); int vaoId = intBuf16.get(0); gl3.glBindVertexArray(vaoId); } if (gl2 != null) { gl2.glEnable(GL2.GL_VERTEX_PROGRAM_POINT_SIZE); if (!caps.contains(Caps.CoreProfile)) { gl2.glEnable(GL2.GL_POINT_SPRITE); } } }
if (target == GL2.GL_TEXTURE_3D) { gl2.glCompressedTexImage3D(target, level, format.internalFormat, gl2.glCompressedTexSubImage3D(target, level, 0, } else { gl2.glCompressedTexImage2D(target, level, format.internalFormat, gl2.glTexImage3D(target, level, format.internalFormat, if (slice == -1) { gl2.glTexImage3D(target, level, format.internalFormat, gl2.glTexSubImage3D(target,