Package playn.core

Class GL20


public abstract class GL20 extends Object
Interface and values for OpenGL ES 2.0, based on the official JOGL GL2ES2 interface.
  • Field Details

  • Method Details

    • checkError

      public boolean checkError(String op)
      Checks for any GL error codes and logs them (if checkErrors is true).
      true if any errors were reported.
    • glDeleteBuffer

      public void glDeleteBuffer(int id)
    • glDeleteBuffers

      public void glDeleteBuffers(int n, int[] buffers, int offset)
    • glDeleteFramebuffer

      public void glDeleteFramebuffer(int id)
    • glDeleteFramebuffers

      public void glDeleteFramebuffers(int n, int[] framebuffers, int offset)
    • glDeleteRenderbuffer

      public void glDeleteRenderbuffer(int id)
    • glDeleteRenderbuffers

      public void glDeleteRenderbuffers(int n, int[] renderbuffers, int offset)
    • glDeleteTexture

      public void glDeleteTexture(int id)
    • glDeleteTextures

      public void glDeleteTextures(int n, int[] textures, int offset)
    • glGenBuffer

      public int glGenBuffer()
    • glGenBuffers

      public void glGenBuffers(int n, int[] buffers, int offset)
    • glGenFramebuffer

      public int glGenFramebuffer()
    • glGenFramebuffers

      public void glGenFramebuffers(int n, int[] framebuffers, int offset)
    • glGenRenderbuffer

      public int glGenRenderbuffer()
    • glGenRenderbuffers

      public void glGenRenderbuffers(int n, int[] renderbuffers, int offset)
    • glGenTexture

      public int glGenTexture()
    • glGenTextures

      public void glGenTextures(int n, int[] textures, int offset)
    • glGetAttachedShaders

      public void glGetAttachedShaders(int program, int maxcount, int[] count, int countOffset, int[] shaders, int shadersOffset)
    • glGetBooleanv

      public void glGetBooleanv(int pname, byte[] params, int offset)
    • glGetBufferParameteriv

      public void glGetBufferParameteriv(int target, int pname, int[] params, int offset)
    • glGetFloatv

      public void glGetFloatv(int pname, float[] params, int offset)
    • glGetFramebufferAttachmentParameteriv

      public void glGetFramebufferAttachmentParameteriv(int target, int attachment, int pname, int[] params, int offset)
    • glGetIntegerv

      public void glGetIntegerv(int pname, int[] params, int offset)
    • glGetProgramBinary

      public void glGetProgramBinary(int program, int bufsize, int[] length, int lengthOffset, int[] binaryformat, int binaryformatOffset, Buffer binary)
    • glGetProgramInfoLog

      public void glGetProgramInfoLog(int program, int bufsize, int[] length, int lengthOffset, byte[] infolog, int infologOffset)
    • glGetProgramiv

      public void glGetProgramiv(int program, int pname, int[] params, int offset)
    • glGetRenderbufferParameteriv

      public void glGetRenderbufferParameteriv(int target, int pname, int[] params, int offset)
    • glGetShaderInfoLog

      public void glGetShaderInfoLog(int shader, int bufsize, int[] length, int lengthOffset, byte[] infolog, int infologOffset)
    • glGetShaderiv

      public void glGetShaderiv(int shader, int pname, int[] params, int offset)
    • glGetTexParameterfv

      public void glGetTexParameterfv(int target, int pname, float[] params, int offset)
    • glGetTexParameteriv

      public void glGetTexParameteriv(int target, int pname, int[] params, int offset)
    • glGetUniformfv

      public void glGetUniformfv(int program, int location, float[] params, int offset)
    • glGetUniformiv

      public void glGetUniformiv(int program, int location, int[] params, int offset)
    • glGetVertexAttribfv

      public void glGetVertexAttribfv(int index, int pname, float[] params, int offset)
    • glGetVertexAttribiv

      public void glGetVertexAttribiv(int index, int pname, int[] params, int offset)
    • glTexParameterfv

      public void glTexParameterfv(int target, int pname, float[] params, int offset)
    • glTexParameteriv

      public void glTexParameteriv(int target, int pname, int[] params, int offset)
    • glUniform1fv

      public void glUniform1fv(int location, int count, float[] v, int offset)
    • glUniform1iv

      public void glUniform1iv(int location, int count, int[] v, int offset)
    • glUniform2fv

      public void glUniform2fv(int location, int count, float[] v, int offset)
    • glUniform2iv

      public void glUniform2iv(int location, int count, int[] v, int offset)
    • glUniform3fv

      public void glUniform3fv(int location, int count, float[] v, int offset)
    • glUniform3iv

      public void glUniform3iv(int location, int count, int[] v, int offset)
    • glUniform4fv

      public void glUniform4fv(int location, int count, float[] v, int offset)
    • glUniform4iv

      public void glUniform4iv(int location, int count, int[] v, int offset)
    • glUniformMatrix2fv

      public void glUniformMatrix2fv(int location, int count, boolean transpose, float[] value, int offset)
    • glUniformMatrix3fv

      public void glUniformMatrix3fv(int location, int count, boolean transpose, float[] value, int offset)
    • glUniformMatrix4fv

      public void glUniformMatrix4fv(int location, int count, boolean transpose, float[] value, int offset)
    • glVertexAttrib1fv

      public void glVertexAttrib1fv(int indx, float[] values, int offset)
    • glVertexAttrib2fv

      public void glVertexAttrib2fv(int indx, float[] values, int offset)
    • glVertexAttrib3fv

      public void glVertexAttrib3fv(int indx, float[] values, int offset)
    • glVertexAttrib4fv

      public void glVertexAttrib4fv(int indx, float[] values, int offset)
    • getPlatformGLExtensions

      public abstract String getPlatformGLExtensions()
    • getSwapInterval

      public abstract int getSwapInterval()
    • glActiveTexture

      public abstract void glActiveTexture(int texture)
    • glAttachShader

      public abstract void glAttachShader(int program, int shader)
    • glBindAttribLocation

      public abstract void glBindAttribLocation(int program, int index, String name)
    • glBindBuffer

      public abstract void glBindBuffer(int target, int buffer)
    • glBindFramebuffer

      public abstract void glBindFramebuffer(int target, int framebuffer)
    • glBindRenderbuffer

      public abstract void glBindRenderbuffer(int target, int renderbuffer)
    • glBindTexture

      public abstract void glBindTexture(int target, int texture)
    • glBlendColor

      public abstract void glBlendColor(float red, float green, float blue, float alpha)
    • glBlendEquation

      public abstract void glBlendEquation(int mode)
    • glBlendEquationSeparate

      public abstract void glBlendEquationSeparate(int modeRGB, int modeAlpha)
    • glBlendFunc

      public abstract void glBlendFunc(int sfactor, int dfactor)
    • glBlendFuncSeparate

      public abstract void glBlendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
    • glBufferData

      public abstract void glBufferData(int target, int size, Buffer data, int usage)
    • glBufferSubData

      public abstract void glBufferSubData(int target, int offset, int size, Buffer data)
    • glCheckFramebufferStatus

      public abstract int glCheckFramebufferStatus(int target)
    • glClear

      public abstract void glClear(int mask)
    • glClearColor

      public abstract void glClearColor(float red, float green, float blue, float alpha)
    • glClearDepth

      public abstract void glClearDepth(double depth)
    • glClearDepthf

      public abstract void glClearDepthf(float depth)
    • glClearStencil

      public abstract void glClearStencil(int s)
    • glColorMask

      public abstract void glColorMask(boolean red, boolean green, boolean blue, boolean alpha)
    • glCompileShader

      public abstract void glCompileShader(int shader)
    • glCompressedTexImage2D

      public abstract void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data)
    • glCompressedTexImage2D

      public abstract void glCompressedTexImage2D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
    • glCompressedTexImage3D

      public abstract void glCompressedTexImage3D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, Buffer arg8)
    • glCompressedTexImage3D

      public abstract void glCompressedTexImage3D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
    • glCompressedTexSubImage2D

      public abstract void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data)
    • glCompressedTexSubImage2D

      public abstract void glCompressedTexSubImage2D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
    • glCompressedTexSubImage3D

      public abstract void glCompressedTexSubImage3D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, Buffer arg10)
    • glCompressedTexSubImage3D

      public abstract void glCompressedTexSubImage3D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10)
    • glCopyTexImage2D

      public abstract void glCopyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border)
    • glCopyTexSubImage2D

      public abstract void glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
    • glCopyTexSubImage3D

      public abstract void glCopyTexSubImage3D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
    • glCreateProgram

      public abstract int glCreateProgram()
    • glCreateShader

      public abstract int glCreateShader(int type)
    • glCullFace

      public abstract void glCullFace(int mode)
    • glDeleteBuffers

      public abstract void glDeleteBuffers(int n, IntBuffer buffers)
    • glDeleteFramebuffers

      public abstract void glDeleteFramebuffers(int n, IntBuffer framebuffers)
    • glDeleteProgram

      public abstract void glDeleteProgram(int program)
    • glDeleteRenderbuffers

      public abstract void glDeleteRenderbuffers(int n, IntBuffer renderbuffers)
    • glDeleteShader

      public abstract void glDeleteShader(int shader)
    • glDeleteTextures

      public abstract void glDeleteTextures(int n, IntBuffer textures)
    • glDepthFunc

      public abstract void glDepthFunc(int func)
    • glDepthMask

      public abstract void glDepthMask(boolean flag)
    • glDepthRange

      public abstract void glDepthRange(double zNear, double zFar)
    • glDepthRangef

      public abstract void glDepthRangef(float zNear, float zFar)
    • glDetachShader

      public abstract void glDetachShader(int program, int shader)
    • glDisable

      public abstract void glDisable(int cap)
    • glDisableVertexAttribArray

      public abstract void glDisableVertexAttribArray(int index)
    • glDrawArrays

      public abstract void glDrawArrays(int mode, int first, int count)
    • glDrawElements

      public abstract void glDrawElements(int mode, int count, int type, Buffer indices)
    • glDrawElements

      public abstract void glDrawElements(int mode, int count, int type, int offset)
    • glEnable

      public abstract void glEnable(int cap)
    • glEnableVertexAttribArray

      public abstract void glEnableVertexAttribArray(int index)
    • glFinish

      public abstract void glFinish()
    • glFlush

      public abstract void glFlush()
    • glFramebufferRenderbuffer

      public abstract void glFramebufferRenderbuffer(int target, int attachment, int renderbuffertarget, int renderbuffer)
    • glFramebufferTexture2D

      public abstract void glFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level)
    • glFramebufferTexture3D

      public abstract void glFramebufferTexture3D(int target, int attachment, int textarget, int texture, int level, int zoffset)
    • glFrontFace

      public abstract void glFrontFace(int mode)
    • glGenBuffers

      public abstract void glGenBuffers(int n, IntBuffer buffers)
    • glGenerateMipmap

      public abstract void glGenerateMipmap(int target)
    • glGenFramebuffers

      public abstract void glGenFramebuffers(int n, IntBuffer framebuffers)
    • glGenRenderbuffers

      public abstract void glGenRenderbuffers(int n, IntBuffer renderbuffers)
    • glGenTextures

      public abstract void glGenTextures(int n, IntBuffer textures)
    • glGetActiveAttrib

      public abstract String glGetActiveAttrib(int program, int index, IntBuffer size, IntBuffer type)
    • glGetActiveUniform

      public abstract String glGetActiveUniform(int program, int index, IntBuffer size, IntBuffer type)
    • glGetAttachedShaders

      public abstract void glGetAttachedShaders(int program, int maxcount, IntBuffer count, IntBuffer shaders)
    • glGetAttribLocation

      public abstract int glGetAttribLocation(int program, String name)
    • glGetBoolean

      public abstract boolean glGetBoolean(int pname)
    • glGetBooleanv

      public abstract void glGetBooleanv(int pname, ByteBuffer params)
    • glGetBoundBuffer

      public abstract int glGetBoundBuffer(int arg0)
    • glGetBufferParameteriv

      public abstract void glGetBufferParameteriv(int target, int pname, IntBuffer params)
    • glGetError

      public abstract int glGetError()
    • glGetFloat

      public abstract float glGetFloat(int pname)
    • glGetFloatv

      public abstract void glGetFloatv(int pname, FloatBuffer params)
    • glGetFramebufferAttachmentParameteriv

      public abstract void glGetFramebufferAttachmentParameteriv(int target, int attachment, int pname, IntBuffer params)
    • glGetInteger

      public abstract int glGetInteger(int pname)
    • glGetIntegerv

      public abstract void glGetIntegerv(int pname, IntBuffer params)
    • glGetProgramBinary

      public abstract void glGetProgramBinary(int arg0, int arg1, IntBuffer arg2, IntBuffer arg3, Buffer arg4)
    • glGetProgramInfoLog

      public abstract void glGetProgramInfoLog(int program, int bufsize, IntBuffer length, ByteBuffer infolog)
    • glGetProgramInfoLog

      public abstract String glGetProgramInfoLog(int program)
    • glGetProgramiv

      public abstract void glGetProgramiv(int program, int pname, IntBuffer params)
    • glGetRenderbufferParameteriv

      public abstract void glGetRenderbufferParameteriv(int target, int pname, IntBuffer params)
    • glGetShaderInfoLog

      public abstract void glGetShaderInfoLog(int shader, int bufsize, IntBuffer length, ByteBuffer infolog)
    • glGetShaderInfoLog

      public abstract String glGetShaderInfoLog(int shader)
    • glGetShaderiv

      public abstract void glGetShaderiv(int shader, int pname, IntBuffer params)
    • glGetShaderPrecisionFormat

      public abstract void glGetShaderPrecisionFormat(int shadertype, int precisiontype, int[] range, int rangeOffset, int[] precision, int precisionOffset)
    • glGetShaderPrecisionFormat

      public abstract void glGetShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range, IntBuffer precision)
    • glGetShaderSource

      public abstract void glGetShaderSource(int shader, int bufsize, int[] length, int lengthOffset, byte[] source, int sourceOffset)
    • glGetShaderSource

      public abstract void glGetShaderSource(int shader, int bufsize, IntBuffer length, ByteBuffer source)
    • glGetString

      public abstract String glGetString(int name)
    • glGetTexParameterfv

      public abstract void glGetTexParameterfv(int target, int pname, FloatBuffer params)
    • glGetTexParameteriv

      public abstract void glGetTexParameteriv(int target, int pname, IntBuffer params)
    • glGetUniformfv

      public abstract void glGetUniformfv(int program, int location, FloatBuffer params)
    • glGetUniformiv

      public abstract void glGetUniformiv(int program, int location, IntBuffer params)
    • glGetUniformLocation

      public abstract int glGetUniformLocation(int program, String name)
    • glGetVertexAttribfv

      public abstract void glGetVertexAttribfv(int index, int pname, FloatBuffer params)
    • glGetVertexAttribiv

      public abstract void glGetVertexAttribiv(int index, int pname, IntBuffer params)
    • glHint

      public abstract void glHint(int target, int mode)
    • glIsBuffer

      public abstract boolean glIsBuffer(int buffer)
    • glIsEnabled

      public abstract boolean glIsEnabled(int cap)
    • glIsFramebuffer

      public abstract boolean glIsFramebuffer(int framebuffer)
    • glIsProgram

      public abstract boolean glIsProgram(int program)
    • glIsRenderbuffer

      public abstract boolean glIsRenderbuffer(int renderbuffer)
    • glIsShader

      public abstract boolean glIsShader(int shader)
    • glIsTexture

      public abstract boolean glIsTexture(int texture)
    • glIsVBOArrayEnabled

      public abstract boolean glIsVBOArrayEnabled()
    • glIsVBOElementEnabled

      public abstract boolean glIsVBOElementEnabled()
    • glLineWidth

      public abstract void glLineWidth(float width)
    • glLinkProgram

      public abstract void glLinkProgram(int program)
    • glMapBuffer

      public abstract ByteBuffer glMapBuffer(int arg0, int arg1)
    • glPixelStorei

      public abstract void glPixelStorei(int pname, int param)
    • glPolygonOffset

      public abstract void glPolygonOffset(float factor, float units)
    • glProgramBinary

      public abstract void glProgramBinary(int arg0, int arg1, Buffer arg2, int arg3)
    • glReadPixels

      public abstract void glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels)
    • glReadPixels

      public abstract void glReadPixels(int x, int y, int width, int height, int format, int type, int pixelsBufferOffset)
    • glReleaseShaderCompiler

      public abstract void glReleaseShaderCompiler()
    • glRenderbufferStorage

      public abstract void glRenderbufferStorage(int target, int internalformat, int width, int height)
    • glSampleCoverage

      public abstract void glSampleCoverage(float value, boolean invert)
    • glScissor

      public abstract void glScissor(int x, int y, int width, int height)
    • glShaderBinary

      public abstract void glShaderBinary(int n, int[] shaders, int offset, int binaryformat, Buffer binary, int length)
    • glShaderBinary

      public abstract void glShaderBinary(int n, IntBuffer shaders, int binaryformat, Buffer binary, int length)
    • glShaderSource

      public abstract void glShaderSource(int shader, int count, String[] strings, int[] length, int lengthOffset)
    • glShaderSource

      public abstract void glShaderSource(int shader, int count, String[] strings, IntBuffer length)
    • glShaderSource

      public abstract void glShaderSource(int shader, String string)
    • glStencilFunc

      public abstract void glStencilFunc(int func, int ref, int mask)
    • glStencilFuncSeparate

      public abstract void glStencilFuncSeparate(int face, int func, int ref, int mask)
    • glStencilMask

      public abstract void glStencilMask(int mask)
    • glStencilMaskSeparate

      public abstract void glStencilMaskSeparate(int face, int mask)
    • glStencilOp

      public abstract void glStencilOp(int fail, int zfail, int zpass)
    • glStencilOpSeparate

      public abstract void glStencilOpSeparate(int face, int fail, int zfail, int zpass)
    • glTexImage2D

      public abstract void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels)
    • glTexImage2D

      public abstract void glTexImage2D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
    • glTexImage3D

      public abstract void glTexImage3D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, Buffer arg9)
    • glTexImage3D

      public abstract void glTexImage3D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9)
    • glTexParameterf

      public abstract void glTexParameterf(int target, int pname, float param)
    • glTexParameterfv

      public abstract void glTexParameterfv(int target, int pname, FloatBuffer params)
    • glTexParameteri

      public abstract void glTexParameteri(int target, int pname, int param)
    • glTexParameteriv

      public abstract void glTexParameteriv(int target, int pname, IntBuffer params)
    • glTexSubImage2D

      public abstract void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels)
    • glTexSubImage2D

      public abstract void glTexSubImage2D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
    • glTexSubImage3D

      public abstract void glTexSubImage3D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, Buffer arg10)
    • glTexSubImage3D

      public abstract void glTexSubImage3D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10)
    • glUniform1f

      public abstract void glUniform1f(int location, float x)
    • glUniform1fv

      public abstract void glUniform1fv(int location, int count, FloatBuffer v)
    • glUniform1i

      public abstract void glUniform1i(int location, int x)
    • glUniform1iv

      public abstract void glUniform1iv(int location, int count, IntBuffer v)
    • glUniform2f

      public abstract void glUniform2f(int location, float x, float y)
    • glUniform2fv

      public abstract void glUniform2fv(int location, int count, FloatBuffer v)
    • glUniform2i

      public abstract void glUniform2i(int location, int x, int y)
    • glUniform2iv

      public abstract void glUniform2iv(int location, int count, IntBuffer v)
    • glUniform3f

      public abstract void glUniform3f(int location, float x, float y, float z)
    • glUniform3fv

      public abstract void glUniform3fv(int location, int count, FloatBuffer v)
    • glUniform3i

      public abstract void glUniform3i(int location, int x, int y, int z)
    • glUniform3iv

      public abstract void glUniform3iv(int location, int count, IntBuffer v)
    • glUniform4f

      public abstract void glUniform4f(int location, float x, float y, float z, float w)
    • glUniform4fv

      public abstract void glUniform4fv(int location, int count, FloatBuffer v)
    • glUniform4i

      public abstract void glUniform4i(int location, int x, int y, int z, int w)
    • glUniform4iv

      public abstract void glUniform4iv(int location, int count, IntBuffer v)
    • glUniformMatrix2fv

      public abstract void glUniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer value)
    • glUniformMatrix3fv

      public abstract void glUniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value)
    • glUniformMatrix4fv

      public abstract void glUniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value)
    • glUnmapBuffer

      public abstract boolean glUnmapBuffer(int arg0)
    • glUseProgram

      public abstract void glUseProgram(int program)
    • glValidateProgram

      public abstract void glValidateProgram(int program)
    • glVertexAttrib1f

      public abstract void glVertexAttrib1f(int indx, float x)
    • glVertexAttrib1fv

      public abstract void glVertexAttrib1fv(int indx, FloatBuffer values)
    • glVertexAttrib2f

      public abstract void glVertexAttrib2f(int indx, float x, float y)
    • glVertexAttrib2fv

      public abstract void glVertexAttrib2fv(int indx, FloatBuffer values)
    • glVertexAttrib3f

      public abstract void glVertexAttrib3f(int indx, float x, float y, float z)
    • glVertexAttrib3fv

      public abstract void glVertexAttrib3fv(int indx, FloatBuffer values)
    • glVertexAttrib4f

      public abstract void glVertexAttrib4f(int indx, float x, float y, float z, float w)
    • glVertexAttrib4fv

      public abstract void glVertexAttrib4fv(int indx, FloatBuffer values)
    • glVertexAttribPointer

      public abstract void glVertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, Buffer ptr)
    • glVertexAttribPointer

      public abstract void glVertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, int ptr)
    • glViewport

      public abstract void glViewport(int x, int y, int width, int height)
    • hasGLSL

      public abstract boolean hasGLSL()
    • isExtensionAvailable

      public abstract boolean isExtensionAvailable(String extension)
    • isFunctionAvailable

      public abstract boolean isFunctionAvailable(String function)