Package org.oscim.gdx

Class LwjglGL20

java.lang.Object
org.oscim.gdx.LwjglGL20
All Implemented Interfaces:
org.oscim.backend.GL
Direct Known Subclasses:
LwjglGL30

public class LwjglGL20 extends Object implements org.oscim.backend.GL
An implementation of the GL20 interface based on LWJGL. Note that LWJGL shaders and OpenGL ES shaders will not be 100% compatible. Some glGetXXX methods are not implemented.

See https://github.com/libgdx/libgdx/blob/master/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglGL20.java

  • Field Summary

    Fields inherited from interface org.oscim.backend.GL

    ACTIVE_ATTRIBUTE_MAX_LENGTH, ACTIVE_ATTRIBUTES, ACTIVE_TEXTURE, ACTIVE_UNIFORM_MAX_LENGTH, ACTIVE_UNIFORMS, ALIASED_LINE_WIDTH_RANGE, ALIASED_POINT_SIZE_RANGE, ALPHA, ALPHA_BITS, ALWAYS, ARRAY_BUFFER, ARRAY_BUFFER_BINDING, ATTACHED_SHADERS, BACK, BLEND, BLEND_COLOR, BLEND_DST_ALPHA, BLEND_DST_RGB, BLEND_EQUATION, BLEND_EQUATION_ALPHA, BLEND_EQUATION_RGB, BLEND_SRC_ALPHA, BLEND_SRC_RGB, BLUE_BITS, BOOL, BOOL_VEC2, BOOL_VEC3, BOOL_VEC4, BUFFER_SIZE, BUFFER_USAGE, BYTE, CCW, CLAMP_TO_EDGE, COLOR_ATTACHMENT0, COLOR_BUFFER_BIT, COLOR_CLEAR_VALUE, COLOR_WRITEMASK, COMPILE_STATUS, COMPRESSED_TEXTURE_FORMATS, CONSTANT_ALPHA, CONSTANT_COLOR, COVERAGE_BUFFER_BIT_NV, CULL_FACE, CULL_FACE_MODE, CURRENT_PROGRAM, CURRENT_VERTEX_ATTRIB, CW, DECR, DECR_WRAP, DELETE_STATUS, DEPTH_ATTACHMENT, DEPTH_BITS, DEPTH_BUFFER_BIT, DEPTH_CLEAR_VALUE, DEPTH_COMPONENT, DEPTH_COMPONENT16, DEPTH_FUNC, DEPTH_RANGE, DEPTH_TEST, DEPTH_WRITEMASK, DITHER, DONT_CARE, DST_ALPHA, DST_COLOR, DYNAMIC_DRAW, ELEMENT_ARRAY_BUFFER, ELEMENT_ARRAY_BUFFER_BINDING, EQUAL, ES_VERSION_2_0, EXTENSIONS, FALSE, FASTEST, FIXED, FLOAT, FLOAT_MAT2, FLOAT_MAT3, FLOAT_MAT4, FLOAT_VEC2, FLOAT_VEC3, FLOAT_VEC4, FRAGMENT_SHADER, FRAMEBUFFER, FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE, FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL, FRAMEBUFFER_BINDING, FRAMEBUFFER_COMPLETE, FRAMEBUFFER_INCOMPLETE_ATTACHMENT, FRAMEBUFFER_INCOMPLETE_DIMENSIONS, FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT, FRAMEBUFFER_UNSUPPORTED, FRONT, FRONT_AND_BACK, FRONT_FACE, FUNC_ADD, FUNC_REVERSE_SUBTRACT, FUNC_SUBTRACT, GENERATE_MIPMAP, GENERATE_MIPMAP_HINT, GEQUAL, GREATER, GREEN_BITS, HIGH_FLOAT, HIGH_INT, IMPLEMENTATION_COLOR_READ_FORMAT, IMPLEMENTATION_COLOR_READ_TYPE, INCR, INCR_WRAP, INFO_LOG_LENGTH, INT, INT_VEC2, INT_VEC3, INT_VEC4, INVALID_ENUM, INVALID_FRAMEBUFFER_OPERATION, INVALID_OPERATION, INVALID_VALUE, INVERT, KEEP, LEQUAL, LESS, LINE_LOOP, LINE_STRIP, LINE_WIDTH, LINEAR, LINEAR_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST, LINES, LINK_STATUS, LOW_FLOAT, LOW_INT, LUMINANCE, LUMINANCE_ALPHA, MAX_COMBINED_TEXTURE_IMAGE_UNITS, MAX_CUBE_MAP_TEXTURE_SIZE, MAX_FRAGMENT_UNIFORM_VECTORS, MAX_RENDERBUFFER_SIZE, MAX_TEXTURE_IMAGE_UNITS, MAX_TEXTURE_MAX_ANISOTROPY_EXT, MAX_TEXTURE_SIZE, MAX_TEXTURE_UNITS, MAX_VARYING_VECTORS, MAX_VERTEX_ATTRIBS, MAX_VERTEX_TEXTURE_IMAGE_UNITS, MAX_VERTEX_UNIFORM_VECTORS, MAX_VIEWPORT_DIMS, MEDIUM_FLOAT, MEDIUM_INT, MIRRORED_REPEAT, NEAREST, NEAREST_MIPMAP_LINEAR, NEAREST_MIPMAP_NEAREST, NEVER, NICEST, NO_ERROR, NONE, NOTEQUAL, NUM_COMPRESSED_TEXTURE_FORMATS, NUM_SHADER_BINARY_FORMATS, ONE, ONE_MINUS_CONSTANT_ALPHA, ONE_MINUS_CONSTANT_COLOR, ONE_MINUS_DST_ALPHA, ONE_MINUS_DST_COLOR, ONE_MINUS_SRC_ALPHA, ONE_MINUS_SRC_COLOR, OUT_OF_MEMORY, PACK_ALIGNMENT, POINTS, POLYGON_OFFSET_FACTOR, POLYGON_OFFSET_FILL, POLYGON_OFFSET_UNITS, RED_BITS, RENDERBUFFER, RENDERBUFFER_ALPHA_SIZE, RENDERBUFFER_BINDING, RENDERBUFFER_BLUE_SIZE, RENDERBUFFER_DEPTH_SIZE, RENDERBUFFER_GREEN_SIZE, RENDERBUFFER_HEIGHT, RENDERBUFFER_INTERNAL_FORMAT, RENDERBUFFER_RED_SIZE, RENDERBUFFER_STENCIL_SIZE, RENDERBUFFER_WIDTH, RENDERER, REPEAT, REPLACE, RGB, RGB5_A1, RGB565, RGBA, RGBA4, SAMPLE_ALPHA_TO_COVERAGE, SAMPLE_BUFFERS, SAMPLE_COVERAGE, SAMPLE_COVERAGE_INVERT, SAMPLE_COVERAGE_VALUE, SAMPLER_2D, SAMPLER_CUBE, SAMPLES, SCISSOR_BOX, SCISSOR_TEST, SHADER_BINARY_FORMATS, SHADER_COMPILER, SHADER_SOURCE_LENGTH, SHADER_TYPE, SHADING_LANGUAGE_VERSION, SHORT, SRC_ALPHA, SRC_ALPHA_SATURATE, SRC_COLOR, STATIC_DRAW, STENCIL_ATTACHMENT, STENCIL_BACK_FAIL, STENCIL_BACK_FUNC, STENCIL_BACK_PASS_DEPTH_FAIL, STENCIL_BACK_PASS_DEPTH_PASS, STENCIL_BACK_REF, STENCIL_BACK_VALUE_MASK, STENCIL_BACK_WRITEMASK, STENCIL_BITS, STENCIL_BUFFER_BIT, STENCIL_CLEAR_VALUE, STENCIL_FAIL, STENCIL_FUNC, STENCIL_INDEX, STENCIL_INDEX8, STENCIL_PASS_DEPTH_FAIL, STENCIL_PASS_DEPTH_PASS, STENCIL_REF, STENCIL_TEST, STENCIL_VALUE_MASK, STENCIL_WRITEMASK, STREAM_DRAW, SUBPIXEL_BITS, TEXTURE, TEXTURE_2D, TEXTURE_BINDING_2D, TEXTURE_BINDING_CUBE_MAP, TEXTURE_CUBE_MAP, TEXTURE_CUBE_MAP_NEGATIVE_X, TEXTURE_CUBE_MAP_NEGATIVE_Y, TEXTURE_CUBE_MAP_NEGATIVE_Z, TEXTURE_CUBE_MAP_POSITIVE_X, TEXTURE_CUBE_MAP_POSITIVE_Y, TEXTURE_CUBE_MAP_POSITIVE_Z, TEXTURE_MAG_FILTER, TEXTURE_MAX_ANISOTROPY_EXT, TEXTURE_MIN_FILTER, TEXTURE_WRAP_S, TEXTURE_WRAP_T, TEXTURE0, TEXTURE1, TEXTURE10, TEXTURE11, TEXTURE12, TEXTURE13, TEXTURE14, TEXTURE15, TEXTURE16, TEXTURE17, TEXTURE18, TEXTURE19, TEXTURE2, TEXTURE20, TEXTURE21, TEXTURE22, TEXTURE23, TEXTURE24, TEXTURE25, TEXTURE26, TEXTURE27, TEXTURE28, TEXTURE29, TEXTURE3, TEXTURE30, TEXTURE31, TEXTURE4, TEXTURE5, TEXTURE6, TEXTURE7, TEXTURE8, TEXTURE9, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TRUE, UNPACK_ALIGNMENT, UNSIGNED_BYTE, UNSIGNED_INT, UNSIGNED_SHORT, UNSIGNED_SHORT_4_4_4_4, UNSIGNED_SHORT_5_5_5_1, UNSIGNED_SHORT_5_6_5, VALIDATE_STATUS, VENDOR, VERSION, VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, VERTEX_ATTRIB_ARRAY_ENABLED, VERTEX_ATTRIB_ARRAY_NORMALIZED, VERTEX_ATTRIB_ARRAY_POINTER, VERTEX_ATTRIB_ARRAY_SIZE, VERTEX_ATTRIB_ARRAY_STRIDE, VERTEX_ATTRIB_ARRAY_TYPE, VERTEX_PROGRAM_POINT_SIZE, VERTEX_SHADER, VIEWPORT, ZERO
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    activeTexture(int texture)
     
    void
    attachShader(int program, int shader)
     
    void
    bindAttribLocation(int program, int index, String name)
     
    void
    bindBuffer(int target, int buffer)
     
    void
    bindFramebuffer(int target, int framebuffer)
     
    void
    bindRenderbuffer(int target, int renderbuffer)
     
    void
    bindTexture(int target, int texture)
     
    void
    blendColor(float red, float green, float blue, float alpha)
     
    void
    blendEquation(int mode)
     
    void
    blendEquationSeparate(int modeRGB, int modeAlpha)
     
    void
    blendFunc(int sfactor, int dfactor)
     
    void
    blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
     
    void
    bufferData(int target, int size, Buffer data, int usage)
     
    void
    bufferSubData(int target, int offset, int size, Buffer data)
     
    int
     
    void
    clear(int mask)
     
    void
    clearColor(float red, float green, float blue, float alpha)
     
    void
    clearDepthf(float depth)
     
    void
    clearStencil(int s)
     
    void
    colorMask(boolean red, boolean green, boolean blue, boolean alpha)
     
    void
    compileShader(int shader)
     
    void
    compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data)
     
    void
    compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data)
     
    void
    copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border)
     
    void
    copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
     
    int
     
    int
    createShader(int type)
     
    void
    cullFace(int mode)
     
    void
    deleteBuffer(int buffer)
     
    void
    deleteBuffers(int n, IntBuffer buffers)
     
    void
    deleteFramebuffer(int framebuffer)
     
    void
    deleteFramebuffers(int n, IntBuffer framebuffers)
     
    void
    deleteProgram(int program)
     
    void
    deleteRenderbuffer(int renderbuffer)
     
    void
    deleteRenderbuffers(int n, IntBuffer renderbuffers)
     
    void
    deleteShader(int shader)
     
    void
    deleteTexture(int texture)
     
    void
    deleteTextures(int n, IntBuffer textures)
     
    void
    depthFunc(int func)
     
    void
    depthMask(boolean flag)
     
    void
    depthRangef(float zNear, float zFar)
     
    void
    detachShader(int program, int shader)
     
    void
    disable(int cap)
     
    void
     
    void
    drawArrays(int mode, int first, int count)
     
    void
    drawElements(int mode, int count, int type, int indices)
     
    void
    drawElements(int mode, int count, int type, Buffer indices)
     
    void
    enable(int cap)
     
    void
     
    void
     
    void
     
    void
    framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, int renderbuffer)
     
    void
    framebufferTexture2D(int target, int attachment, int textarget, int texture, int level)
     
    void
    frontFace(int mode)
     
    int
     
    void
    genBuffers(int n, IntBuffer buffers)
     
    void
    generateMipmap(int target)
     
    int
     
    void
    genFramebuffers(int n, IntBuffer framebuffers)
     
    int
     
    void
    genRenderbuffers(int n, IntBuffer renderbuffers)
     
    int
     
    void
    genTextures(int n, IntBuffer textures)
     
    getActiveAttrib(int program, int index, IntBuffer size, Buffer type)
     
    getActiveUniform(int program, int index, IntBuffer size, Buffer type)
     
    void
    getAttachedShaders(int program, int maxcount, Buffer count, IntBuffer shaders)
     
    int
    getAttribLocation(int program, String name)
     
    void
    getBooleanv(int pname, Buffer params)
     
    void
    getBufferParameteriv(int target, int pname, IntBuffer params)
     
    int
     
    void
    getFloatv(int pname, FloatBuffer params)
     
    void
    getFramebufferAttachmentParameteriv(int target, int attachment, int pname, IntBuffer params)
     
    void
    getIntegerv(int pname, IntBuffer params)
     
    getProgramInfoLog(int program)
     
    void
    getProgramiv(int program, int pname, IntBuffer params)
     
    void
    getRenderbufferParameteriv(int target, int pname, IntBuffer params)
     
    getShaderInfoLog(int shader)
     
    void
    getShaderiv(int shader, int pname, IntBuffer params)
     
    void
    getShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range, IntBuffer precision)
     
    getString(int name)
     
    void
    getTexParameterfv(int target, int pname, FloatBuffer params)
     
    void
    getTexParameteriv(int target, int pname, IntBuffer params)
     
    void
    getUniformfv(int program, int location, FloatBuffer params)
     
    void
    getUniformiv(int program, int location, IntBuffer params)
     
    int
    getUniformLocation(int program, String name)
     
    void
    getVertexAttribfv(int index, int pname, FloatBuffer params)
     
    void
    getVertexAttribiv(int index, int pname, IntBuffer params)
     
    void
    getVertexAttribPointerv(int index, int pname, Buffer pointer)
     
    void
    hint(int target, int mode)
     
    boolean
    isBuffer(int buffer)
     
    boolean
    isEnabled(int cap)
     
    boolean
    isFramebuffer(int framebuffer)
     
    boolean
    isProgram(int program)
     
    boolean
    isRenderbuffer(int renderbuffer)
     
    boolean
    isShader(int shader)
     
    boolean
    isTexture(int texture)
     
    void
    lineWidth(float width)
     
    void
    linkProgram(int program)
     
    void
    pixelStorei(int pname, int param)
     
    void
    polygonOffset(float factor, float units)
     
    void
    readPixels(int x, int y, int width, int height, int format, int type, Buffer pixels)
     
    void
     
    void
    renderbufferStorage(int target, int internalformat, int width, int height)
     
    void
    sampleCoverage(float value, boolean invert)
     
    void
    scissor(int x, int y, int width, int height)
     
    void
    shaderBinary(int n, IntBuffer shaders, int binaryformat, Buffer binary, int length)
     
    void
    shaderSource(int shader, String string)
     
    void
    stencilFunc(int func, int ref, int mask)
     
    void
    stencilFuncSeparate(int face, int func, int ref, int mask)
     
    void
    stencilMask(int mask)
     
    void
    stencilMaskSeparate(int face, int mask)
     
    void
    stencilOp(int fail, int zfail, int zpass)
     
    void
    stencilOpSeparate(int face, int fail, int zfail, int zpass)
     
    void
    texImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels)
     
    void
    texParameterf(int target, int pname, float param)
     
    void
    texParameterfv(int target, int pname, FloatBuffer params)
     
    void
    texParameteri(int target, int pname, int param)
     
    void
    texParameteriv(int target, int pname, IntBuffer params)
     
    void
    texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels)
     
    void
    uniform1f(int location, float x)
     
    void
    uniform1fv(int location, int count, float[] v, int offset)
     
    void
    uniform1fv(int location, int count, FloatBuffer v)
     
    void
    uniform1i(int location, int x)
     
    void
    uniform1iv(int location, int count, int[] v, int offset)
     
    void
    uniform1iv(int location, int count, IntBuffer v)
     
    void
    uniform2f(int location, float x, float y)
     
    void
    uniform2fv(int location, int count, float[] v, int offset)
     
    void
    uniform2fv(int location, int count, FloatBuffer v)
     
    void
    uniform2i(int location, int x, int y)
     
    void
    uniform2iv(int location, int count, int[] v, int offset)
     
    void
    uniform2iv(int location, int count, IntBuffer v)
     
    void
    uniform3f(int location, float x, float y, float z)
     
    void
    uniform3fv(int location, int count, float[] v, int offset)
     
    void
    uniform3fv(int location, int count, FloatBuffer v)
     
    void
    uniform3i(int location, int x, int y, int z)
     
    void
    uniform3iv(int location, int count, int[] v, int offset)
     
    void
    uniform3iv(int location, int count, IntBuffer v)
     
    void
    uniform4f(int location, float x, float y, float z, float w)
     
    void
    uniform4fv(int location, int count, float[] v, int offset)
     
    void
    uniform4fv(int location, int count, FloatBuffer v)
     
    void
    uniform4i(int location, int x, int y, int z, int w)
     
    void
    uniform4iv(int location, int count, int[] v, int offset)
     
    void
    uniform4iv(int location, int count, IntBuffer v)
     
    void
    uniformMatrix2fv(int location, int count, boolean transpose, float[] value, int offset)
     
    void
    uniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer value)
     
    void
    uniformMatrix3fv(int location, int count, boolean transpose, float[] value, int offset)
     
    void
    uniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value)
     
    void
    uniformMatrix4fv(int location, int count, boolean transpose, float[] value, int offset)
     
    void
    uniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value)
     
    void
    useProgram(int program)
     
    void
    validateProgram(int program)
     
    void
    vertexAttrib1f(int indx, float x)
     
    void
    vertexAttrib1fv(int indx, FloatBuffer values)
     
    void
    vertexAttrib2f(int indx, float x, float y)
     
    void
    vertexAttrib2fv(int indx, FloatBuffer values)
     
    void
    vertexAttrib3f(int indx, float x, float y, float z)
     
    void
    vertexAttrib3fv(int indx, FloatBuffer values)
     
    void
    vertexAttrib4f(int indx, float x, float y, float z, float w)
     
    void
    vertexAttrib4fv(int indx, FloatBuffer values)
     
    void
    vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, int ptr)
     
    void
    vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, Buffer buffer)
     
    void
    viewport(int x, int y, int width, int height)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LwjglGL20

      public LwjglGL20()
  • Method Details

    • activeTexture

      public void activeTexture(int texture)
      Specified by:
      activeTexture in interface org.oscim.backend.GL
    • attachShader

      public void attachShader(int program, int shader)
      Specified by:
      attachShader in interface org.oscim.backend.GL
    • bindAttribLocation

      public void bindAttribLocation(int program, int index, String name)
      Specified by:
      bindAttribLocation in interface org.oscim.backend.GL
    • bindBuffer

      public void bindBuffer(int target, int buffer)
      Specified by:
      bindBuffer in interface org.oscim.backend.GL
    • bindFramebuffer

      public void bindFramebuffer(int target, int framebuffer)
      Specified by:
      bindFramebuffer in interface org.oscim.backend.GL
    • bindRenderbuffer

      public void bindRenderbuffer(int target, int renderbuffer)
      Specified by:
      bindRenderbuffer in interface org.oscim.backend.GL
    • bindTexture

      public void bindTexture(int target, int texture)
      Specified by:
      bindTexture in interface org.oscim.backend.GL
    • blendColor

      public void blendColor(float red, float green, float blue, float alpha)
      Specified by:
      blendColor in interface org.oscim.backend.GL
    • blendEquation

      public void blendEquation(int mode)
      Specified by:
      blendEquation in interface org.oscim.backend.GL
    • blendEquationSeparate

      public void blendEquationSeparate(int modeRGB, int modeAlpha)
      Specified by:
      blendEquationSeparate in interface org.oscim.backend.GL
    • blendFunc

      public void blendFunc(int sfactor, int dfactor)
      Specified by:
      blendFunc in interface org.oscim.backend.GL
    • blendFuncSeparate

      public void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
      Specified by:
      blendFuncSeparate in interface org.oscim.backend.GL
    • bufferData

      public void bufferData(int target, int size, Buffer data, int usage)
      Specified by:
      bufferData in interface org.oscim.backend.GL
    • bufferSubData

      public void bufferSubData(int target, int offset, int size, Buffer data)
      Specified by:
      bufferSubData in interface org.oscim.backend.GL
    • checkFramebufferStatus

      public int checkFramebufferStatus(int target)
      Specified by:
      checkFramebufferStatus in interface org.oscim.backend.GL
    • clear

      public void clear(int mask)
      Specified by:
      clear in interface org.oscim.backend.GL
    • clearColor

      public void clearColor(float red, float green, float blue, float alpha)
      Specified by:
      clearColor in interface org.oscim.backend.GL
    • clearDepthf

      public void clearDepthf(float depth)
      Specified by:
      clearDepthf in interface org.oscim.backend.GL
    • clearStencil

      public void clearStencil(int s)
      Specified by:
      clearStencil in interface org.oscim.backend.GL
    • colorMask

      public void colorMask(boolean red, boolean green, boolean blue, boolean alpha)
      Specified by:
      colorMask in interface org.oscim.backend.GL
    • compileShader

      public void compileShader(int shader)
      Specified by:
      compileShader in interface org.oscim.backend.GL
    • compressedTexImage2D

      public void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data)
      Specified by:
      compressedTexImage2D in interface org.oscim.backend.GL
    • compressedTexSubImage2D

      public void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data)
      Specified by:
      compressedTexSubImage2D in interface org.oscim.backend.GL
    • copyTexImage2D

      public void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border)
      Specified by:
      copyTexImage2D in interface org.oscim.backend.GL
    • copyTexSubImage2D

      public void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
      Specified by:
      copyTexSubImage2D in interface org.oscim.backend.GL
    • createProgram

      public int createProgram()
      Specified by:
      createProgram in interface org.oscim.backend.GL
    • createShader

      public int createShader(int type)
      Specified by:
      createShader in interface org.oscim.backend.GL
    • cullFace

      public void cullFace(int mode)
      Specified by:
      cullFace in interface org.oscim.backend.GL
    • deleteBuffers

      public void deleteBuffers(int n, IntBuffer buffers)
      Specified by:
      deleteBuffers in interface org.oscim.backend.GL
    • deleteBuffer

      public void deleteBuffer(int buffer)
      Specified by:
      deleteBuffer in interface org.oscim.backend.GL
    • deleteFramebuffers

      public void deleteFramebuffers(int n, IntBuffer framebuffers)
      Specified by:
      deleteFramebuffers in interface org.oscim.backend.GL
    • deleteFramebuffer

      public void deleteFramebuffer(int framebuffer)
      Specified by:
      deleteFramebuffer in interface org.oscim.backend.GL
    • deleteProgram

      public void deleteProgram(int program)
      Specified by:
      deleteProgram in interface org.oscim.backend.GL
    • deleteRenderbuffers

      public void deleteRenderbuffers(int n, IntBuffer renderbuffers)
      Specified by:
      deleteRenderbuffers in interface org.oscim.backend.GL
    • deleteRenderbuffer

      public void deleteRenderbuffer(int renderbuffer)
      Specified by:
      deleteRenderbuffer in interface org.oscim.backend.GL
    • deleteShader

      public void deleteShader(int shader)
      Specified by:
      deleteShader in interface org.oscim.backend.GL
    • deleteTextures

      public void deleteTextures(int n, IntBuffer textures)
      Specified by:
      deleteTextures in interface org.oscim.backend.GL
    • deleteTexture

      public void deleteTexture(int texture)
      Specified by:
      deleteTexture in interface org.oscim.backend.GL
    • depthFunc

      public void depthFunc(int func)
      Specified by:
      depthFunc in interface org.oscim.backend.GL
    • depthMask

      public void depthMask(boolean flag)
      Specified by:
      depthMask in interface org.oscim.backend.GL
    • depthRangef

      public void depthRangef(float zNear, float zFar)
      Specified by:
      depthRangef in interface org.oscim.backend.GL
    • detachShader

      public void detachShader(int program, int shader)
      Specified by:
      detachShader in interface org.oscim.backend.GL
    • disable

      public void disable(int cap)
      Specified by:
      disable in interface org.oscim.backend.GL
    • disableVertexAttribArray

      public void disableVertexAttribArray(int index)
      Specified by:
      disableVertexAttribArray in interface org.oscim.backend.GL
    • drawArrays

      public void drawArrays(int mode, int first, int count)
      Specified by:
      drawArrays in interface org.oscim.backend.GL
    • drawElements

      public void drawElements(int mode, int count, int type, Buffer indices)
      Specified by:
      drawElements in interface org.oscim.backend.GL
    • enable

      public void enable(int cap)
      Specified by:
      enable in interface org.oscim.backend.GL
    • enableVertexAttribArray

      public void enableVertexAttribArray(int index)
      Specified by:
      enableVertexAttribArray in interface org.oscim.backend.GL
    • finish

      public void finish()
      Specified by:
      finish in interface org.oscim.backend.GL
    • flush

      public void flush()
      Specified by:
      flush in interface org.oscim.backend.GL
    • framebufferRenderbuffer

      public void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, int renderbuffer)
      Specified by:
      framebufferRenderbuffer in interface org.oscim.backend.GL
    • framebufferTexture2D

      public void framebufferTexture2D(int target, int attachment, int textarget, int texture, int level)
      Specified by:
      framebufferTexture2D in interface org.oscim.backend.GL
    • frontFace

      public void frontFace(int mode)
      Specified by:
      frontFace in interface org.oscim.backend.GL
    • genBuffers

      public void genBuffers(int n, IntBuffer buffers)
      Specified by:
      genBuffers in interface org.oscim.backend.GL
    • genBuffer

      public int genBuffer()
      Specified by:
      genBuffer in interface org.oscim.backend.GL
    • genFramebuffers

      public void genFramebuffers(int n, IntBuffer framebuffers)
      Specified by:
      genFramebuffers in interface org.oscim.backend.GL
    • genFramebuffer

      public int genFramebuffer()
      Specified by:
      genFramebuffer in interface org.oscim.backend.GL
    • genRenderbuffers

      public void genRenderbuffers(int n, IntBuffer renderbuffers)
      Specified by:
      genRenderbuffers in interface org.oscim.backend.GL
    • genRenderbuffer

      public int genRenderbuffer()
      Specified by:
      genRenderbuffer in interface org.oscim.backend.GL
    • genTextures

      public void genTextures(int n, IntBuffer textures)
      Specified by:
      genTextures in interface org.oscim.backend.GL
    • genTexture

      public int genTexture()
      Specified by:
      genTexture in interface org.oscim.backend.GL
    • generateMipmap

      public void generateMipmap(int target)
      Specified by:
      generateMipmap in interface org.oscim.backend.GL
    • getActiveAttrib

      public String getActiveAttrib(int program, int index, IntBuffer size, Buffer type)
      Specified by:
      getActiveAttrib in interface org.oscim.backend.GL
    • getActiveUniform

      public String getActiveUniform(int program, int index, IntBuffer size, Buffer type)
      Specified by:
      getActiveUniform in interface org.oscim.backend.GL
    • getAttachedShaders

      public void getAttachedShaders(int program, int maxcount, Buffer count, IntBuffer shaders)
      Specified by:
      getAttachedShaders in interface org.oscim.backend.GL
    • getAttribLocation

      public int getAttribLocation(int program, String name)
      Specified by:
      getAttribLocation in interface org.oscim.backend.GL
    • getBooleanv

      public void getBooleanv(int pname, Buffer params)
      Specified by:
      getBooleanv in interface org.oscim.backend.GL
    • getBufferParameteriv

      public void getBufferParameteriv(int target, int pname, IntBuffer params)
      Specified by:
      getBufferParameteriv in interface org.oscim.backend.GL
    • getError

      public int getError()
      Specified by:
      getError in interface org.oscim.backend.GL
    • getFloatv

      public void getFloatv(int pname, FloatBuffer params)
      Specified by:
      getFloatv in interface org.oscim.backend.GL
    • getFramebufferAttachmentParameteriv

      public void getFramebufferAttachmentParameteriv(int target, int attachment, int pname, IntBuffer params)
      Specified by:
      getFramebufferAttachmentParameteriv in interface org.oscim.backend.GL
    • getIntegerv

      public void getIntegerv(int pname, IntBuffer params)
      Specified by:
      getIntegerv in interface org.oscim.backend.GL
    • getProgramInfoLog

      public String getProgramInfoLog(int program)
      Specified by:
      getProgramInfoLog in interface org.oscim.backend.GL
    • getProgramiv

      public void getProgramiv(int program, int pname, IntBuffer params)
      Specified by:
      getProgramiv in interface org.oscim.backend.GL
    • getRenderbufferParameteriv

      public void getRenderbufferParameteriv(int target, int pname, IntBuffer params)
      Specified by:
      getRenderbufferParameteriv in interface org.oscim.backend.GL
    • getShaderInfoLog

      public String getShaderInfoLog(int shader)
      Specified by:
      getShaderInfoLog in interface org.oscim.backend.GL
    • getShaderPrecisionFormat

      public void getShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range, IntBuffer precision)
      Specified by:
      getShaderPrecisionFormat in interface org.oscim.backend.GL
    • getShaderiv

      public void getShaderiv(int shader, int pname, IntBuffer params)
      Specified by:
      getShaderiv in interface org.oscim.backend.GL
    • getString

      public String getString(int name)
      Specified by:
      getString in interface org.oscim.backend.GL
    • getTexParameterfv

      public void getTexParameterfv(int target, int pname, FloatBuffer params)
      Specified by:
      getTexParameterfv in interface org.oscim.backend.GL
    • getTexParameteriv

      public void getTexParameteriv(int target, int pname, IntBuffer params)
      Specified by:
      getTexParameteriv in interface org.oscim.backend.GL
    • getUniformLocation

      public int getUniformLocation(int program, String name)
      Specified by:
      getUniformLocation in interface org.oscim.backend.GL
    • getUniformfv

      public void getUniformfv(int program, int location, FloatBuffer params)
      Specified by:
      getUniformfv in interface org.oscim.backend.GL
    • getUniformiv

      public void getUniformiv(int program, int location, IntBuffer params)
      Specified by:
      getUniformiv in interface org.oscim.backend.GL
    • getVertexAttribPointerv

      public void getVertexAttribPointerv(int index, int pname, Buffer pointer)
      Specified by:
      getVertexAttribPointerv in interface org.oscim.backend.GL
    • getVertexAttribfv

      public void getVertexAttribfv(int index, int pname, FloatBuffer params)
      Specified by:
      getVertexAttribfv in interface org.oscim.backend.GL
    • getVertexAttribiv

      public void getVertexAttribiv(int index, int pname, IntBuffer params)
      Specified by:
      getVertexAttribiv in interface org.oscim.backend.GL
    • hint

      public void hint(int target, int mode)
      Specified by:
      hint in interface org.oscim.backend.GL
    • isBuffer

      public boolean isBuffer(int buffer)
      Specified by:
      isBuffer in interface org.oscim.backend.GL
    • isEnabled

      public boolean isEnabled(int cap)
      Specified by:
      isEnabled in interface org.oscim.backend.GL
    • isFramebuffer

      public boolean isFramebuffer(int framebuffer)
      Specified by:
      isFramebuffer in interface org.oscim.backend.GL
    • isProgram

      public boolean isProgram(int program)
      Specified by:
      isProgram in interface org.oscim.backend.GL
    • isRenderbuffer

      public boolean isRenderbuffer(int renderbuffer)
      Specified by:
      isRenderbuffer in interface org.oscim.backend.GL
    • isShader

      public boolean isShader(int shader)
      Specified by:
      isShader in interface org.oscim.backend.GL
    • isTexture

      public boolean isTexture(int texture)
      Specified by:
      isTexture in interface org.oscim.backend.GL
    • lineWidth

      public void lineWidth(float width)
      Specified by:
      lineWidth in interface org.oscim.backend.GL
    • linkProgram

      public void linkProgram(int program)
      Specified by:
      linkProgram in interface org.oscim.backend.GL
    • pixelStorei

      public void pixelStorei(int pname, int param)
      Specified by:
      pixelStorei in interface org.oscim.backend.GL
    • polygonOffset

      public void polygonOffset(float factor, float units)
      Specified by:
      polygonOffset in interface org.oscim.backend.GL
    • readPixels

      public void readPixels(int x, int y, int width, int height, int format, int type, Buffer pixels)
      Specified by:
      readPixels in interface org.oscim.backend.GL
    • releaseShaderCompiler

      public void releaseShaderCompiler()
      Specified by:
      releaseShaderCompiler in interface org.oscim.backend.GL
    • renderbufferStorage

      public void renderbufferStorage(int target, int internalformat, int width, int height)
      Specified by:
      renderbufferStorage in interface org.oscim.backend.GL
    • sampleCoverage

      public void sampleCoverage(float value, boolean invert)
      Specified by:
      sampleCoverage in interface org.oscim.backend.GL
    • scissor

      public void scissor(int x, int y, int width, int height)
      Specified by:
      scissor in interface org.oscim.backend.GL
    • shaderBinary

      public void shaderBinary(int n, IntBuffer shaders, int binaryformat, Buffer binary, int length)
      Specified by:
      shaderBinary in interface org.oscim.backend.GL
    • shaderSource

      public void shaderSource(int shader, String string)
      Specified by:
      shaderSource in interface org.oscim.backend.GL
    • stencilFunc

      public void stencilFunc(int func, int ref, int mask)
      Specified by:
      stencilFunc in interface org.oscim.backend.GL
    • stencilFuncSeparate

      public void stencilFuncSeparate(int face, int func, int ref, int mask)
      Specified by:
      stencilFuncSeparate in interface org.oscim.backend.GL
    • stencilMask

      public void stencilMask(int mask)
      Specified by:
      stencilMask in interface org.oscim.backend.GL
    • stencilMaskSeparate

      public void stencilMaskSeparate(int face, int mask)
      Specified by:
      stencilMaskSeparate in interface org.oscim.backend.GL
    • stencilOp

      public void stencilOp(int fail, int zfail, int zpass)
      Specified by:
      stencilOp in interface org.oscim.backend.GL
    • stencilOpSeparate

      public void stencilOpSeparate(int face, int fail, int zfail, int zpass)
      Specified by:
      stencilOpSeparate in interface org.oscim.backend.GL
    • texImage2D

      public void texImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels)
      Specified by:
      texImage2D in interface org.oscim.backend.GL
    • texParameterf

      public void texParameterf(int target, int pname, float param)
      Specified by:
      texParameterf in interface org.oscim.backend.GL
    • texParameterfv

      public void texParameterfv(int target, int pname, FloatBuffer params)
      Specified by:
      texParameterfv in interface org.oscim.backend.GL
    • texParameteri

      public void texParameteri(int target, int pname, int param)
      Specified by:
      texParameteri in interface org.oscim.backend.GL
    • texParameteriv

      public void texParameteriv(int target, int pname, IntBuffer params)
      Specified by:
      texParameteriv in interface org.oscim.backend.GL
    • texSubImage2D

      public void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels)
      Specified by:
      texSubImage2D in interface org.oscim.backend.GL
    • uniform1f

      public void uniform1f(int location, float x)
      Specified by:
      uniform1f in interface org.oscim.backend.GL
    • uniform1fv

      public void uniform1fv(int location, int count, FloatBuffer v)
      Specified by:
      uniform1fv in interface org.oscim.backend.GL
    • uniform1fv

      public void uniform1fv(int location, int count, float[] v, int offset)
      Specified by:
      uniform1fv in interface org.oscim.backend.GL
    • uniform1i

      public void uniform1i(int location, int x)
      Specified by:
      uniform1i in interface org.oscim.backend.GL
    • uniform1iv

      public void uniform1iv(int location, int count, IntBuffer v)
      Specified by:
      uniform1iv in interface org.oscim.backend.GL
    • uniform1iv

      public void uniform1iv(int location, int count, int[] v, int offset)
      Specified by:
      uniform1iv in interface org.oscim.backend.GL
    • uniform2f

      public void uniform2f(int location, float x, float y)
      Specified by:
      uniform2f in interface org.oscim.backend.GL
    • uniform2fv

      public void uniform2fv(int location, int count, FloatBuffer v)
      Specified by:
      uniform2fv in interface org.oscim.backend.GL
    • uniform2fv

      public void uniform2fv(int location, int count, float[] v, int offset)
      Specified by:
      uniform2fv in interface org.oscim.backend.GL
    • uniform2i

      public void uniform2i(int location, int x, int y)
      Specified by:
      uniform2i in interface org.oscim.backend.GL
    • uniform2iv

      public void uniform2iv(int location, int count, IntBuffer v)
      Specified by:
      uniform2iv in interface org.oscim.backend.GL
    • uniform2iv

      public void uniform2iv(int location, int count, int[] v, int offset)
      Specified by:
      uniform2iv in interface org.oscim.backend.GL
    • uniform3f

      public void uniform3f(int location, float x, float y, float z)
      Specified by:
      uniform3f in interface org.oscim.backend.GL
    • uniform3fv

      public void uniform3fv(int location, int count, FloatBuffer v)
      Specified by:
      uniform3fv in interface org.oscim.backend.GL
    • uniform3fv

      public void uniform3fv(int location, int count, float[] v, int offset)
      Specified by:
      uniform3fv in interface org.oscim.backend.GL
    • uniform3i

      public void uniform3i(int location, int x, int y, int z)
      Specified by:
      uniform3i in interface org.oscim.backend.GL
    • uniform3iv

      public void uniform3iv(int location, int count, IntBuffer v)
      Specified by:
      uniform3iv in interface org.oscim.backend.GL
    • uniform3iv

      public void uniform3iv(int location, int count, int[] v, int offset)
      Specified by:
      uniform3iv in interface org.oscim.backend.GL
    • uniform4f

      public void uniform4f(int location, float x, float y, float z, float w)
      Specified by:
      uniform4f in interface org.oscim.backend.GL
    • uniform4fv

      public void uniform4fv(int location, int count, FloatBuffer v)
      Specified by:
      uniform4fv in interface org.oscim.backend.GL
    • uniform4fv

      public void uniform4fv(int location, int count, float[] v, int offset)
      Specified by:
      uniform4fv in interface org.oscim.backend.GL
    • uniform4i

      public void uniform4i(int location, int x, int y, int z, int w)
      Specified by:
      uniform4i in interface org.oscim.backend.GL
    • uniform4iv

      public void uniform4iv(int location, int count, IntBuffer v)
      Specified by:
      uniform4iv in interface org.oscim.backend.GL
    • uniform4iv

      public void uniform4iv(int location, int count, int[] v, int offset)
      Specified by:
      uniform4iv in interface org.oscim.backend.GL
    • uniformMatrix2fv

      public void uniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer value)
      Specified by:
      uniformMatrix2fv in interface org.oscim.backend.GL
    • uniformMatrix2fv

      public void uniformMatrix2fv(int location, int count, boolean transpose, float[] value, int offset)
      Specified by:
      uniformMatrix2fv in interface org.oscim.backend.GL
    • uniformMatrix3fv

      public void uniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value)
      Specified by:
      uniformMatrix3fv in interface org.oscim.backend.GL
    • uniformMatrix3fv

      public void uniformMatrix3fv(int location, int count, boolean transpose, float[] value, int offset)
      Specified by:
      uniformMatrix3fv in interface org.oscim.backend.GL
    • uniformMatrix4fv

      public void uniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value)
      Specified by:
      uniformMatrix4fv in interface org.oscim.backend.GL
    • uniformMatrix4fv

      public void uniformMatrix4fv(int location, int count, boolean transpose, float[] value, int offset)
      Specified by:
      uniformMatrix4fv in interface org.oscim.backend.GL
    • useProgram

      public void useProgram(int program)
      Specified by:
      useProgram in interface org.oscim.backend.GL
    • validateProgram

      public void validateProgram(int program)
      Specified by:
      validateProgram in interface org.oscim.backend.GL
    • vertexAttrib1f

      public void vertexAttrib1f(int indx, float x)
      Specified by:
      vertexAttrib1f in interface org.oscim.backend.GL
    • vertexAttrib1fv

      public void vertexAttrib1fv(int indx, FloatBuffer values)
      Specified by:
      vertexAttrib1fv in interface org.oscim.backend.GL
    • vertexAttrib2f

      public void vertexAttrib2f(int indx, float x, float y)
      Specified by:
      vertexAttrib2f in interface org.oscim.backend.GL
    • vertexAttrib2fv

      public void vertexAttrib2fv(int indx, FloatBuffer values)
      Specified by:
      vertexAttrib2fv in interface org.oscim.backend.GL
    • vertexAttrib3f

      public void vertexAttrib3f(int indx, float x, float y, float z)
      Specified by:
      vertexAttrib3f in interface org.oscim.backend.GL
    • vertexAttrib3fv

      public void vertexAttrib3fv(int indx, FloatBuffer values)
      Specified by:
      vertexAttrib3fv in interface org.oscim.backend.GL
    • vertexAttrib4f

      public void vertexAttrib4f(int indx, float x, float y, float z, float w)
      Specified by:
      vertexAttrib4f in interface org.oscim.backend.GL
    • vertexAttrib4fv

      public void vertexAttrib4fv(int indx, FloatBuffer values)
      Specified by:
      vertexAttrib4fv in interface org.oscim.backend.GL
    • vertexAttribPointer

      public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, Buffer buffer)
      Specified by:
      vertexAttribPointer in interface org.oscim.backend.GL
    • viewport

      public void viewport(int x, int y, int width, int height)
      Specified by:
      viewport in interface org.oscim.backend.GL
    • drawElements

      public void drawElements(int mode, int count, int type, int indices)
      Specified by:
      drawElements in interface org.oscim.backend.GL
    • vertexAttribPointer

      public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, int ptr)
      Specified by:
      vertexAttribPointer in interface org.oscim.backend.GL