Package arc.graphics

Class Gl

java.lang.Object
arc.graphics.Gl

public class Gl extends Object
  • Field Details

  • Constructor Details

    • Gl

      public Gl()
  • Method Details

    • reset

      public static void reset()
      Reset optimization cache.
    • activeTexture

      public static void activeTexture(int texture)
    • bindTexture

      public static void bindTexture(int target, int texture)
    • blendFunc

      public static void blendFunc(int sfactor, int dfactor)
    • clear

      public static void clear(int mask)
    • clearColor

      public static void clearColor(float red, float green, float blue, float alpha)
    • clearDepthf

      public static void clearDepthf(float depth)
    • clearStencil

      public static void clearStencil(int s)
    • colorMask

      public static void colorMask(boolean red, boolean green, boolean blue, boolean alpha)
    • compressedTexImage2D

      public static void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data)
    • compressedTexSubImage2D

      public static void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data)
    • copyTexImage2D

      public static void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border)
    • copyTexSubImage2D

      public static void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
    • cullFace

      public static void cullFace(int mode)
    • deleteTexture

      public static void deleteTexture(int texture)
    • depthFunc

      public static void depthFunc(int func)
    • depthMask

      public static void depthMask(boolean flag)
    • depthRangef

      public static void depthRangef(float zNear, float zFar)
    • disable

      public static void disable(int cap)
    • drawArrays

      public static void drawArrays(int mode, int first, int count)
    • drawElements

      public static void drawElements(int mode, int count, int type, Buffer indices)
    • enable

      public static void enable(int cap)
    • finish

      public static void finish()
    • flush

      public static void flush()
    • frontFace

      public static void frontFace(int mode)
    • genTexture

      public static int genTexture()
    • getError

      public static int getError()
    • getIntegerv

      public static void getIntegerv(int pname, IntBuffer params)
    • getInt

      public static int getInt(int name)
    • getString

      public static String getString(int name)
    • hint

      public static void hint(int target, int mode)
    • pixelStorei

      public static void pixelStorei(int pname, int param)
    • polygonOffset

      public static void polygonOffset(float factor, float units)
    • readPixels

      public static void readPixels(int x, int y, int width, int height, int format, int type, Buffer pixels)
    • scissor

      public static void scissor(int x, int y, int width, int height)
    • stencilFunc

      public static void stencilFunc(int func, int ref, int mask)
    • stencilMask

      public static void stencilMask(int mask)
    • stencilOp

      public static void stencilOp(int fail, int zfail, int zpass)
    • texImage2D

      public static void texImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels)
    • texParameterf

      public static void texParameterf(int target, int pname, float param)
    • texSubImage2D

      public static void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels)
    • viewport

      public static void viewport(int x, int y, int width, int height)
    • attachShader

      public static void attachShader(int program, int shader)
    • bindAttribLocation

      public static void bindAttribLocation(int program, int index, String name)
    • bindBuffer

      public static void bindBuffer(int target, int buffer)
    • bindFramebuffer

      public static void bindFramebuffer(int target, int framebuffer)
    • bindRenderbuffer

      public static void bindRenderbuffer(int target, int renderbuffer)
    • blendColor

      public static void blendColor(float red, float green, float blue, float alpha)
    • blendEquation

      public static void blendEquation(int mode)
    • blendEquationSeparate

      public static void blendEquationSeparate(int modeRGB, int modeAlpha)
    • blendFuncSeparate

      public static void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
    • bufferData

      public static void bufferData(int target, int size, Buffer data, int usage)
    • bufferSubData

      public static void bufferSubData(int target, int offset, int size, Buffer data)
    • checkFramebufferStatus

      public static int checkFramebufferStatus(int target)
    • compileShader

      public static void compileShader(int shader)
    • createProgram

      public static int createProgram()
    • createShader

      public static int createShader(int type)
    • deleteBuffer

      public static void deleteBuffer(int buffer)
    • deleteFramebuffer

      public static void deleteFramebuffer(int framebuffer)
    • deleteProgram

      public static void deleteProgram(int program)
    • deleteRenderbuffer

      public static void deleteRenderbuffer(int renderbuffer)
    • deleteShader

      public static void deleteShader(int shader)
    • detachShader

      public static void detachShader(int program, int shader)
    • disableVertexAttribArray

      public static void disableVertexAttribArray(int index)
    • drawElements

      public static void drawElements(int mode, int count, int type, int indices)
    • enableVertexAttribArray

      public static void enableVertexAttribArray(int index)
    • framebufferRenderbuffer

      public static void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, int renderbuffer)
    • framebufferTexture2D

      public static void framebufferTexture2D(int target, int attachment, int textarget, int texture, int level)
    • genBuffer

      public static int genBuffer()
    • generateMipmap

      public static void generateMipmap(int target)
    • genFramebuffer

      public static int genFramebuffer()
    • genRenderbuffer

      public static int genRenderbuffer()
    • getActiveAttrib

      public static String getActiveAttrib(int program, int index, IntBuffer size, IntBuffer type)
    • getActiveUniform

      public static String getActiveUniform(int program, int index, IntBuffer size, IntBuffer type)
    • getAttribLocation

      public static int getAttribLocation(int program, String name)
    • getBooleanv

      public static void getBooleanv(int pname, Buffer params)
    • getBufferParameteriv

      public static void getBufferParameteriv(int target, int pname, IntBuffer params)
    • getFloatv

      public static void getFloatv(int pname, FloatBuffer params)
    • getFramebufferAttachmentParameteriv

      public static void getFramebufferAttachmentParameteriv(int target, int attachment, int pname, IntBuffer params)
    • getProgramiv

      public static void getProgramiv(int program, int pname, IntBuffer params)
    • getProgramInfoLog

      public static String getProgramInfoLog(int program)
    • getRenderbufferParameteriv

      public static void getRenderbufferParameteriv(int target, int pname, IntBuffer params)
    • getShaderiv

      public static void getShaderiv(int shader, int pname, IntBuffer params)
    • getShaderInfoLog

      public static String getShaderInfoLog(int shader)
    • getShaderPrecisionFormat

      public static void getShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range, IntBuffer precision)
    • getTexParameterfv

      public static void getTexParameterfv(int target, int pname, FloatBuffer params)
    • getTexParameteriv

      public static void getTexParameteriv(int target, int pname, IntBuffer params)
    • getUniformfv

      public static void getUniformfv(int program, int location, FloatBuffer params)
    • getUniformiv

      public static void getUniformiv(int program, int location, IntBuffer params)
    • getUniformLocation

      public static int getUniformLocation(int program, String name)
    • getVertexAttribfv

      public static void getVertexAttribfv(int index, int pname, FloatBuffer params)
    • getVertexAttribiv

      public static void getVertexAttribiv(int index, int pname, IntBuffer params)
    • isBuffer

      public static boolean isBuffer(int buffer)
    • isEnabled

      public static boolean isEnabled(int cap)
    • isFramebuffer

      public static boolean isFramebuffer(int framebuffer)
    • isProgram

      public static boolean isProgram(int program)
    • isRenderbuffer

      public static boolean isRenderbuffer(int renderbuffer)
    • isShader

      public static boolean isShader(int shader)
    • isTexture

      public static boolean isTexture(int texture)
    • linkProgram

      public static void linkProgram(int program)
    • releaseShaderCompiler

      public static void releaseShaderCompiler()
    • renderbufferStorage

      public static void renderbufferStorage(int target, int internalformat, int width, int height)
    • sampleCoverage

      public static void sampleCoverage(float value, boolean invert)
    • shaderSource

      public static void shaderSource(int shader, String string)
    • stencilFuncSeparate

      public static void stencilFuncSeparate(int face, int func, int ref, int mask)
    • stencilMaskSeparate

      public static void stencilMaskSeparate(int face, int mask)
    • stencilOpSeparate

      public static void stencilOpSeparate(int face, int fail, int zfail, int zpass)
    • texParameterfv

      public static void texParameterfv(int target, int pname, FloatBuffer params)
    • texParameteri

      public static void texParameteri(int target, int pname, int param)
    • texParameteriv

      public static void texParameteriv(int target, int pname, IntBuffer params)
    • uniform1f

      public static void uniform1f(int location, float x)
    • uniform1fv

      public static void uniform1fv(int location, int count, FloatBuffer v)
    • uniform1fv

      public static void uniform1fv(int location, int count, float[] v, int offset)
    • uniform1i

      public static void uniform1i(int location, int x)
    • uniform1iv

      public static void uniform1iv(int location, int count, IntBuffer v)
    • uniform1iv

      public static void uniform1iv(int location, int count, int[] v, int offset)
    • uniform2f

      public static void uniform2f(int location, float x, float y)
    • uniform2fv

      public static void uniform2fv(int location, int count, FloatBuffer v)
    • uniform2fv

      public static void uniform2fv(int location, int count, float[] v, int offset)
    • uniform2i

      public static void uniform2i(int location, int x, int y)
    • uniform2iv

      public static void uniform2iv(int location, int count, IntBuffer v)
    • uniform2iv

      public static void uniform2iv(int location, int count, int[] v, int offset)
    • uniform3f

      public static void uniform3f(int location, float x, float y, float z)
    • uniform3fv

      public static void uniform3fv(int location, int count, FloatBuffer v)
    • uniform3fv

      public static void uniform3fv(int location, int count, float[] v, int offset)
    • uniform3i

      public static void uniform3i(int location, int x, int y, int z)
    • uniform3iv

      public static void uniform3iv(int location, int count, IntBuffer v)
    • uniform3iv

      public static void uniform3iv(int location, int count, int[] v, int offset)
    • uniform4f

      public static void uniform4f(int location, float x, float y, float z, float w)
    • uniform4fv

      public static void uniform4fv(int location, int count, FloatBuffer v)
    • uniform4fv

      public static void uniform4fv(int location, int count, float[] v, int offset)
    • uniform4i

      public static void uniform4i(int location, int x, int y, int z, int w)
    • uniform4iv

      public static void uniform4iv(int location, int count, IntBuffer v)
    • uniform4iv

      public static void uniform4iv(int location, int count, int[] v, int offset)
    • uniformMatrix2fv

      public static void uniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer value)
    • uniformMatrix2fv

      public static void uniformMatrix2fv(int location, int count, boolean transpose, float[] value, int offset)
    • uniformMatrix3fv

      public static void uniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value)
    • uniformMatrix3fv

      public static void uniformMatrix3fv(int location, int count, boolean transpose, float[] value, int offset)
    • uniformMatrix4fv

      public static void uniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value)
    • uniformMatrix4fv

      public static void uniformMatrix4fv(int location, int count, boolean transpose, float[] value, int offset)
    • useProgram

      public static void useProgram(int program)
    • validateProgram

      public static void validateProgram(int program)
    • vertexAttrib1f

      public static void vertexAttrib1f(int indx, float x)
    • vertexAttrib1fv

      public static void vertexAttrib1fv(int indx, FloatBuffer values)
    • vertexAttrib2f

      public static void vertexAttrib2f(int indx, float x, float y)
    • vertexAttrib2fv

      public static void vertexAttrib2fv(int indx, FloatBuffer values)
    • vertexAttrib3f

      public static void vertexAttrib3f(int indx, float x, float y, float z)
    • vertexAttrib3fv

      public static void vertexAttrib3fv(int indx, FloatBuffer values)
    • vertexAttrib4f

      public static void vertexAttrib4f(int indx, float x, float y, float z, float w)
    • vertexAttrib4fv

      public static void vertexAttrib4fv(int indx, FloatBuffer values)
    • vertexAttribPointer

      public static void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, Buffer ptr)
    • vertexAttribPointer

      public static void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, int ptr)