Class PGL

java.lang.Object
processing.opengl.PGL
Direct Known Subclasses:
PJOGL

public abstract class PGL extends Object
Processing-OpenGL abstraction layer. Needs to be implemented by subclasses using specific OpenGL-Java bindings. It includes a full GLES 2.0 interface.
  • Field Details

    • primaryPGL

      public boolean primaryPGL
      true if this is the GL interface for a primary surface PGraphics
    • REQUESTED_DEPTH_BITS

      public static int REQUESTED_DEPTH_BITS
    • REQUESTED_STENCIL_BITS

      public static int REQUESTED_STENCIL_BITS
    • REQUESTED_ALPHA_BITS

      public static int REQUESTED_ALPHA_BITS
    • bufferStreamingImmediate

      public static boolean bufferStreamingImmediate
      Controls the use of buffer object streaming: https://www.khronos.org/opengl/wiki/Buffer_Object_Streaming In combination with use direct buffers, the only advantage of enabling it in immediate mode would be to reduce memory footprint since the direct vertex buffers would not be allocated, simply mapped from the OpenGL objects and thus only the vertex arrays would be created. In the case of the retained mode (PShape), memory footprint would be reduced (for the same reason) but it may enable some speed-ups when editing a geometry in within a being/end tessellation update block.
    • bufferStreamingRetained

      public static boolean bufferStreamingRetained
    • bufferUsageRetained

      public static int bufferUsageRetained
      Controls the usage of the buffer data store: https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glBufferData.xhtml Supported options include STATIC_DRAW, DYNAMIC_DRAW, STREAM_DRAW, and STREAM_READ.
    • bufferUsageImmediate

      public static int bufferUsageImmediate
    • bufferMapAccess

      public static int bufferMapAccess
      Controls the access to the mapped buffer object's data store (when using buffer streaming). https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glMapBuffer.xhtml Supported options are READ_ONLY, WRITE_ONLY, and READ_WRITE.
    • reqNumSamples

      public int reqNumSamples
    • WIKI

      public static final String WIKI
      See Also:
    • FRAMEBUFFER_ERROR

      public static final String FRAMEBUFFER_ERROR
      See Also:
    • MISSING_FBO_ERROR

      public static final String MISSING_FBO_ERROR
      See Also:
    • MISSING_GLSL_ERROR

      public static final String MISSING_GLSL_ERROR
      See Also:
    • MISSING_GLFUNC_ERROR

      public static final String MISSING_GLFUNC_ERROR
      See Also:
    • UNSUPPORTED_GLPROF_ERROR

      public static final String UNSUPPORTED_GLPROF_ERROR
      See Also:
    • TEXUNIT_ERROR

      public static final String TEXUNIT_ERROR
      See Also:
    • NONPRIMARY_ERROR

      public static final String NONPRIMARY_ERROR
      See Also:
    • presentX

      public float presentX
    • presentY

      public float presentY
    • FALSE

      public static int FALSE
    • TRUE

      public static int TRUE
    • INT

      public static int INT
    • BYTE

      public static int BYTE
    • SHORT

      public static int SHORT
    • FLOAT

      public static int FLOAT
    • BOOL

      public static int BOOL
    • UNSIGNED_INT

      public static int UNSIGNED_INT
    • UNSIGNED_BYTE

      public static int UNSIGNED_BYTE
    • UNSIGNED_SHORT

      public static int UNSIGNED_SHORT
    • RGB

      public static int RGB
    • RGBA

      public static int RGBA
    • ALPHA

      public static int ALPHA
    • LUMINANCE

      public static int LUMINANCE
    • LUMINANCE_ALPHA

      public static int LUMINANCE_ALPHA
    • UNSIGNED_SHORT_5_6_5

      public static int UNSIGNED_SHORT_5_6_5
    • UNSIGNED_SHORT_4_4_4_4

      public static int UNSIGNED_SHORT_4_4_4_4
    • UNSIGNED_SHORT_5_5_5_1

      public static int UNSIGNED_SHORT_5_5_5_1
    • RGBA4

      public static int RGBA4
    • RGB5_A1

      public static int RGB5_A1
    • RGB565

      public static int RGB565
    • RGB8

      public static int RGB8
    • RGBA8

      public static int RGBA8
    • ALPHA8

      public static int ALPHA8
    • READ_ONLY

      public static int READ_ONLY
    • WRITE_ONLY

      public static int WRITE_ONLY
    • READ_WRITE

      public static int READ_WRITE
    • TESS_WINDING_NONZERO

      public static int TESS_WINDING_NONZERO
    • TESS_WINDING_ODD

      public static int TESS_WINDING_ODD
    • TESS_EDGE_FLAG

      public static int TESS_EDGE_FLAG
    • GENERATE_MIPMAP_HINT

      public static int GENERATE_MIPMAP_HINT
    • FASTEST

      public static int FASTEST
    • NICEST

      public static int NICEST
    • DONT_CARE

      public static int DONT_CARE
    • VENDOR

      public static int VENDOR
    • RENDERER

      public static int RENDERER
    • VERSION

      public static int VERSION
    • EXTENSIONS

      public static int EXTENSIONS
    • SHADING_LANGUAGE_VERSION

      public static int SHADING_LANGUAGE_VERSION
    • MAX_SAMPLES

      public static int MAX_SAMPLES
    • SAMPLES

      public static int SAMPLES
    • ALIASED_LINE_WIDTH_RANGE

      public static int ALIASED_LINE_WIDTH_RANGE
    • ALIASED_POINT_SIZE_RANGE

      public static int ALIASED_POINT_SIZE_RANGE
    • DEPTH_BITS

      public static int DEPTH_BITS
    • STENCIL_BITS

      public static int STENCIL_BITS
    • CCW

      public static int CCW
    • CW

      public static int CW
    • VIEWPORT

      public static int VIEWPORT
    • ARRAY_BUFFER

      public static int ARRAY_BUFFER
    • ELEMENT_ARRAY_BUFFER

      public static int ELEMENT_ARRAY_BUFFER
    • PIXEL_PACK_BUFFER

      public static int PIXEL_PACK_BUFFER
    • MAX_VERTEX_ATTRIBS

      public static int MAX_VERTEX_ATTRIBS
    • STATIC_DRAW

      public static int STATIC_DRAW
    • DYNAMIC_DRAW

      public static int DYNAMIC_DRAW
    • STREAM_DRAW

      public static int STREAM_DRAW
    • STREAM_READ

      public static int STREAM_READ
    • BUFFER_SIZE

      public static int BUFFER_SIZE
    • BUFFER_USAGE

      public static int BUFFER_USAGE
    • POINTS

      public static int POINTS
    • LINE_STRIP

      public static int LINE_STRIP
    • LINE_LOOP

      public static int LINE_LOOP
    • LINES

      public static int LINES
    • TRIANGLE_FAN

      public static int TRIANGLE_FAN
    • TRIANGLE_STRIP

      public static int TRIANGLE_STRIP
    • TRIANGLES

      public static int TRIANGLES
    • CULL_FACE

      public static int CULL_FACE
    • FRONT

      public static int FRONT
    • BACK

      public static int BACK
    • FRONT_AND_BACK

      public static int FRONT_AND_BACK
    • POLYGON_OFFSET_FILL

      public static int POLYGON_OFFSET_FILL
    • UNPACK_ALIGNMENT

      public static int UNPACK_ALIGNMENT
    • PACK_ALIGNMENT

      public static int PACK_ALIGNMENT
    • TEXTURE_2D

      public static int TEXTURE_2D
    • TEXTURE_RECTANGLE

      public static int TEXTURE_RECTANGLE
    • TEXTURE_BINDING_2D

      public static int TEXTURE_BINDING_2D
    • TEXTURE_BINDING_RECTANGLE

      public static int TEXTURE_BINDING_RECTANGLE
    • MAX_TEXTURE_SIZE

      public static int MAX_TEXTURE_SIZE
    • TEXTURE_MAX_ANISOTROPY

      public static int TEXTURE_MAX_ANISOTROPY
    • MAX_TEXTURE_MAX_ANISOTROPY

      public static int MAX_TEXTURE_MAX_ANISOTROPY
    • MAX_VERTEX_TEXTURE_IMAGE_UNITS

      public static int MAX_VERTEX_TEXTURE_IMAGE_UNITS
    • MAX_TEXTURE_IMAGE_UNITS

      public static int MAX_TEXTURE_IMAGE_UNITS
    • MAX_COMBINED_TEXTURE_IMAGE_UNITS

      public static int MAX_COMBINED_TEXTURE_IMAGE_UNITS
    • NUM_COMPRESSED_TEXTURE_FORMATS

      public static int NUM_COMPRESSED_TEXTURE_FORMATS
    • COMPRESSED_TEXTURE_FORMATS

      public static int COMPRESSED_TEXTURE_FORMATS
    • NEAREST

      public static int NEAREST
    • LINEAR

      public static int LINEAR
    • LINEAR_MIPMAP_NEAREST

      public static int LINEAR_MIPMAP_NEAREST
    • LINEAR_MIPMAP_LINEAR

      public static int LINEAR_MIPMAP_LINEAR
    • CLAMP_TO_EDGE

      public static int CLAMP_TO_EDGE
    • REPEAT

      public static int REPEAT
    • TEXTURE0

      public static int TEXTURE0
    • TEXTURE1

      public static int TEXTURE1
    • TEXTURE2

      public static int TEXTURE2
    • TEXTURE3

      public static int TEXTURE3
    • TEXTURE_MIN_FILTER

      public static int TEXTURE_MIN_FILTER
    • TEXTURE_MAG_FILTER

      public static int TEXTURE_MAG_FILTER
    • TEXTURE_WRAP_S

      public static int TEXTURE_WRAP_S
    • TEXTURE_WRAP_T

      public static int TEXTURE_WRAP_T
    • TEXTURE_WRAP_R

      public static int TEXTURE_WRAP_R
    • TEXTURE_CUBE_MAP

      public static int TEXTURE_CUBE_MAP
    • TEXTURE_CUBE_MAP_POSITIVE_X

      public static int TEXTURE_CUBE_MAP_POSITIVE_X
    • TEXTURE_CUBE_MAP_POSITIVE_Y

      public static int TEXTURE_CUBE_MAP_POSITIVE_Y
    • TEXTURE_CUBE_MAP_POSITIVE_Z

      public static int TEXTURE_CUBE_MAP_POSITIVE_Z
    • TEXTURE_CUBE_MAP_NEGATIVE_X

      public static int TEXTURE_CUBE_MAP_NEGATIVE_X
    • TEXTURE_CUBE_MAP_NEGATIVE_Y

      public static int TEXTURE_CUBE_MAP_NEGATIVE_Y
    • TEXTURE_CUBE_MAP_NEGATIVE_Z

      public static int TEXTURE_CUBE_MAP_NEGATIVE_Z
    • VERTEX_SHADER

      public static int VERTEX_SHADER
    • FRAGMENT_SHADER

      public static int FRAGMENT_SHADER
    • INFO_LOG_LENGTH

      public static int INFO_LOG_LENGTH
    • SHADER_SOURCE_LENGTH

      public static int SHADER_SOURCE_LENGTH
    • COMPILE_STATUS

      public static int COMPILE_STATUS
    • VALIDATE_STATUS

      public static int VALIDATE_STATUS
    • SHADER_TYPE

      public static int SHADER_TYPE
    • DELETE_STATUS

      public static int DELETE_STATUS
    • FLOAT_VEC2

      public static int FLOAT_VEC2
    • FLOAT_VEC3

      public static int FLOAT_VEC3
    • FLOAT_VEC4

      public static int FLOAT_VEC4
    • FLOAT_MAT2

      public static int FLOAT_MAT2
    • FLOAT_MAT3

      public static int FLOAT_MAT3
    • FLOAT_MAT4

      public static int FLOAT_MAT4
    • INT_VEC2

      public static int INT_VEC2
    • INT_VEC3

      public static int INT_VEC3
    • INT_VEC4

      public static int INT_VEC4
    • BOOL_VEC2

      public static int BOOL_VEC2
    • BOOL_VEC3

      public static int BOOL_VEC3
    • BOOL_VEC4

      public static int BOOL_VEC4
    • SAMPLER_2D

      public static int SAMPLER_2D
    • SAMPLER_CUBE

      public static int SAMPLER_CUBE
    • LOW_FLOAT

      public static int LOW_FLOAT
    • MEDIUM_FLOAT

      public static int MEDIUM_FLOAT
    • HIGH_FLOAT

      public static int HIGH_FLOAT
    • LOW_INT

      public static int LOW_INT
    • MEDIUM_INT

      public static int MEDIUM_INT
    • HIGH_INT

      public static int HIGH_INT
    • CURRENT_VERTEX_ATTRIB

      public static int CURRENT_VERTEX_ATTRIB
    • VERTEX_ATTRIB_ARRAY_BUFFER_BINDING

      public static int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
    • VERTEX_ATTRIB_ARRAY_ENABLED

      public static int VERTEX_ATTRIB_ARRAY_ENABLED
    • VERTEX_ATTRIB_ARRAY_SIZE

      public static int VERTEX_ATTRIB_ARRAY_SIZE
    • VERTEX_ATTRIB_ARRAY_STRIDE

      public static int VERTEX_ATTRIB_ARRAY_STRIDE
    • VERTEX_ATTRIB_ARRAY_TYPE

      public static int VERTEX_ATTRIB_ARRAY_TYPE
    • VERTEX_ATTRIB_ARRAY_NORMALIZED

      public static int VERTEX_ATTRIB_ARRAY_NORMALIZED
    • VERTEX_ATTRIB_ARRAY_POINTER

      public static int VERTEX_ATTRIB_ARRAY_POINTER
    • BLEND

      public static int BLEND
    • ONE

      public static int ONE
    • ZERO

      public static int ZERO
    • SRC_ALPHA

      public static int SRC_ALPHA
    • DST_ALPHA

      public static int DST_ALPHA
    • ONE_MINUS_SRC_ALPHA

      public static int ONE_MINUS_SRC_ALPHA
    • ONE_MINUS_DST_COLOR

      public static int ONE_MINUS_DST_COLOR
    • ONE_MINUS_SRC_COLOR

      public static int ONE_MINUS_SRC_COLOR
    • DST_COLOR

      public static int DST_COLOR
    • SRC_COLOR

      public static int SRC_COLOR
    • SAMPLE_ALPHA_TO_COVERAGE

      public static int SAMPLE_ALPHA_TO_COVERAGE
    • SAMPLE_COVERAGE

      public static int SAMPLE_COVERAGE
    • KEEP

      public static int KEEP
    • REPLACE

      public static int REPLACE
    • INCR

      public static int INCR
    • DECR

      public static int DECR
    • INVERT

      public static int INVERT
    • INCR_WRAP

      public static int INCR_WRAP
    • DECR_WRAP

      public static int DECR_WRAP
    • NEVER

      public static int NEVER
    • ALWAYS

      public static int ALWAYS
    • EQUAL

      public static int EQUAL
    • LESS

      public static int LESS
    • LEQUAL

      public static int LEQUAL
    • GREATER

      public static int GREATER
    • GEQUAL

      public static int GEQUAL
    • NOTEQUAL

      public static int NOTEQUAL
    • FUNC_ADD

      public static int FUNC_ADD
    • FUNC_MIN

      public static int FUNC_MIN
    • FUNC_MAX

      public static int FUNC_MAX
    • FUNC_REVERSE_SUBTRACT

      public static int FUNC_REVERSE_SUBTRACT
    • FUNC_SUBTRACT

      public static int FUNC_SUBTRACT
    • DITHER

      public static int DITHER
    • CONSTANT_COLOR

      public static int CONSTANT_COLOR
    • CONSTANT_ALPHA

      public static int CONSTANT_ALPHA
    • ONE_MINUS_CONSTANT_COLOR

      public static int ONE_MINUS_CONSTANT_COLOR
    • ONE_MINUS_CONSTANT_ALPHA

      public static int ONE_MINUS_CONSTANT_ALPHA
    • SRC_ALPHA_SATURATE

      public static int SRC_ALPHA_SATURATE
    • SCISSOR_TEST

      public static int SCISSOR_TEST
    • STENCIL_TEST

      public static int STENCIL_TEST
    • DEPTH_TEST

      public static int DEPTH_TEST
    • DEPTH_WRITEMASK

      public static int DEPTH_WRITEMASK
    • COLOR_BUFFER_BIT

      public static int COLOR_BUFFER_BIT
    • DEPTH_BUFFER_BIT

      public static int DEPTH_BUFFER_BIT
    • STENCIL_BUFFER_BIT

      public static int STENCIL_BUFFER_BIT
    • FRAMEBUFFER

      public static int FRAMEBUFFER
    • COLOR_ATTACHMENT0

      public static int COLOR_ATTACHMENT0
    • COLOR_ATTACHMENT1

      public static int COLOR_ATTACHMENT1
    • COLOR_ATTACHMENT2

      public static int COLOR_ATTACHMENT2
    • COLOR_ATTACHMENT3

      public static int COLOR_ATTACHMENT3
    • RENDERBUFFER

      public static int RENDERBUFFER
    • DEPTH_ATTACHMENT

      public static int DEPTH_ATTACHMENT
    • STENCIL_ATTACHMENT

      public static int STENCIL_ATTACHMENT
    • READ_FRAMEBUFFER

      public static int READ_FRAMEBUFFER
    • DRAW_FRAMEBUFFER

      public static int DRAW_FRAMEBUFFER
    • DEPTH24_STENCIL8

      public static int DEPTH24_STENCIL8
    • DEPTH_COMPONENT

      public static int DEPTH_COMPONENT
    • DEPTH_COMPONENT16

      public static int DEPTH_COMPONENT16
    • DEPTH_COMPONENT24

      public static int DEPTH_COMPONENT24
    • DEPTH_COMPONENT32

      public static int DEPTH_COMPONENT32
    • STENCIL_INDEX

      public static int STENCIL_INDEX
    • STENCIL_INDEX1

      public static int STENCIL_INDEX1
    • STENCIL_INDEX4

      public static int STENCIL_INDEX4
    • STENCIL_INDEX8

      public static int STENCIL_INDEX8
    • DEPTH_STENCIL

      public static int DEPTH_STENCIL
    • FRAMEBUFFER_COMPLETE

      public static int FRAMEBUFFER_COMPLETE
    • FRAMEBUFFER_UNDEFINED

      public static int FRAMEBUFFER_UNDEFINED
    • FRAMEBUFFER_INCOMPLETE_ATTACHMENT

      public static int FRAMEBUFFER_INCOMPLETE_ATTACHMENT
    • FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT

      public static int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
    • FRAMEBUFFER_INCOMPLETE_DIMENSIONS

      public static int FRAMEBUFFER_INCOMPLETE_DIMENSIONS
    • FRAMEBUFFER_INCOMPLETE_FORMATS

      public static int FRAMEBUFFER_INCOMPLETE_FORMATS
    • FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER

      public static int FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER
    • FRAMEBUFFER_INCOMPLETE_READ_BUFFER

      public static int FRAMEBUFFER_INCOMPLETE_READ_BUFFER
    • FRAMEBUFFER_UNSUPPORTED

      public static int FRAMEBUFFER_UNSUPPORTED
    • FRAMEBUFFER_INCOMPLETE_MULTISAMPLE

      public static int FRAMEBUFFER_INCOMPLETE_MULTISAMPLE
    • FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS

      public static int FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS
    • FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE

      public static int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
    • FRAMEBUFFER_ATTACHMENT_OBJECT_NAME

      public static int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
    • FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL

      public static int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
    • FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE

      public static int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
    • RENDERBUFFER_WIDTH

      public static int RENDERBUFFER_WIDTH
    • RENDERBUFFER_HEIGHT

      public static int RENDERBUFFER_HEIGHT
    • RENDERBUFFER_RED_SIZE

      public static int RENDERBUFFER_RED_SIZE
    • RENDERBUFFER_GREEN_SIZE

      public static int RENDERBUFFER_GREEN_SIZE
    • RENDERBUFFER_BLUE_SIZE

      public static int RENDERBUFFER_BLUE_SIZE
    • RENDERBUFFER_ALPHA_SIZE

      public static int RENDERBUFFER_ALPHA_SIZE
    • RENDERBUFFER_DEPTH_SIZE

      public static int RENDERBUFFER_DEPTH_SIZE
    • RENDERBUFFER_STENCIL_SIZE

      public static int RENDERBUFFER_STENCIL_SIZE
    • RENDERBUFFER_INTERNAL_FORMAT

      public static int RENDERBUFFER_INTERNAL_FORMAT
    • MULTISAMPLE

      public static int MULTISAMPLE
    • LINE_SMOOTH

      public static int LINE_SMOOTH
    • POLYGON_SMOOTH

      public static int POLYGON_SMOOTH
    • SYNC_GPU_COMMANDS_COMPLETE

      public static int SYNC_GPU_COMMANDS_COMPLETE
    • ALREADY_SIGNALED

      public static int ALREADY_SIGNALED
    • CONDITION_SATISFIED

      public static int CONDITION_SATISFIED
  • Constructor Details

  • Method Details

    • dispose

      public void dispose()
    • setPrimary

      public void setPrimary(boolean primary)
    • smoothToSamples

      public static int smoothToSamples(int smooth)
    • getNative

      public abstract Object getNative()
    • requestFBOLayer

      @Deprecated public void requestFBOLayer()
      Deprecated.
    • enableFBOLayer

      public void enableFBOLayer()
    • disableFBOLayer

      public void disableFBOLayer()
    • resetFBOLayer

      public void resetFBOLayer()
    • initPresentMode

      public void initPresentMode(float x, float y, int stopColor)
    • presentMode

      public boolean presentMode()
    • presentX

      public float presentX()
    • presentY

      public float presentY()
    • insideStopButton

      public boolean insideStopButton(float x, float y)
    • threadIsCurrent

      public boolean threadIsCurrent()
    • setThread

      public void setThread(Thread thread)
    • drawTexture

      public void drawTexture(int target, int id, int width, int height, int X0, int Y0, int X1, int Y1)
      Not an approved function, this will change or be removed in the future.
    • drawTexture

      public void drawTexture(int target, int id, int texW, int texH, int viewX, int viewY, int viewW, int viewH, int texX0, int texY0, int texX1, int texY1, int scrX0, int scrY0, int scrX1, int scrY1)
      Not an approved function, this will change or be removed in the future.
    • drawTexture

      public void drawTexture(int target, int id, int texW, int texH, int viewX, int viewY, int viewW, int viewH, int viewF, int texX0, int texY0, int texX1, int texY1, int scrX0, int scrY0, int scrX1, int scrY1)
    • isFboAllowed

      public boolean isFboAllowed()
    • flush

      public abstract void flush()
    • finish

      public abstract void finish()
    • hint

      public abstract void hint(int target, int hint)
    • enable

      public abstract void enable(int value)
    • disable

      public abstract void disable(int value)
    • getBooleanv

      public abstract void getBooleanv(int value, IntBuffer data)
    • getIntegerv

      public abstract void getIntegerv(int value, IntBuffer data)
    • getFloatv

      public abstract void getFloatv(int value, FloatBuffer data)
    • isEnabled

      public abstract boolean isEnabled(int value)
    • getString

      public abstract String getString(int name)
    • getError

      public abstract int getError()
    • errorString

      public abstract String errorString(int err)
    • genBuffers

      public abstract void genBuffers(int n, IntBuffer buffers)
    • deleteBuffers

      public abstract void deleteBuffers(int n, IntBuffer buffers)
    • bindBuffer

      public abstract void bindBuffer(int target, int buffer)
    • bufferData

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

      public abstract void bufferSubData(int target, int offset, int size, Buffer data)
    • isBuffer

      public abstract void isBuffer(int buffer)
    • getBufferParameteriv

      public abstract void getBufferParameteriv(int target, int value, IntBuffer data)
    • mapBuffer

      public abstract ByteBuffer mapBuffer(int target, int access)
    • mapBufferRange

      public abstract ByteBuffer mapBufferRange(int target, int offset, int length, int access)
    • unmapBuffer

      public abstract void unmapBuffer(int target)
    • fenceSync

      public abstract long fenceSync(int condition, int flags)
    • deleteSync

      public abstract void deleteSync(long sync)
    • clientWaitSync

      public abstract int clientWaitSync(long sync, int flags, long timeout)
    • depthRangef

      public abstract void depthRangef(float n, float f)
    • viewport

      public abstract void viewport(int x, int y, int w, int h)
    • readPixels

      public void readPixels(int x, int y, int width, int height, int format, int type, Buffer buffer)
    • readPixels

      public void readPixels(int x, int y, int width, int height, int format, int type, long offset)
    • vertexAttrib1f

      public abstract void vertexAttrib1f(int index, float value)
    • vertexAttrib2f

      public abstract void vertexAttrib2f(int index, float value0, float value1)
    • vertexAttrib3f

      public abstract void vertexAttrib3f(int index, float value0, float value1, float value2)
    • vertexAttrib4f

      public abstract void vertexAttrib4f(int index, float value0, float value1, float value2, float value3)
    • vertexAttrib1fv

      public abstract void vertexAttrib1fv(int index, FloatBuffer values)
    • vertexAttrib2fv

      public abstract void vertexAttrib2fv(int index, FloatBuffer values)
    • vertexAttrib3fv

      public abstract void vertexAttrib3fv(int index, FloatBuffer values)
    • vertexAttrib4fv

      public abstract void vertexAttrib4fv(int index, FloatBuffer values)
    • vertexAttribPointer

      public abstract void vertexAttribPointer(int index, int size, int type, boolean normalized, int stride, int offset)
    • enableVertexAttribArray

      public abstract void enableVertexAttribArray(int index)
    • disableVertexAttribArray

      public abstract void disableVertexAttribArray(int index)
    • drawArrays

      public void drawArrays(int mode, int first, int count)
    • drawArraysImpl

      public abstract void drawArraysImpl(int mode, int first, int count)
    • drawElements

      public void drawElements(int mode, int count, int type, int offset)
    • drawElementsImpl

      public abstract void drawElementsImpl(int mode, int count, int type, int offset)
    • lineWidth

      public abstract void lineWidth(float width)
    • frontFace

      public abstract void frontFace(int dir)
    • cullFace

      public abstract void cullFace(int mode)
    • polygonOffset

      public abstract void polygonOffset(float factor, float units)
    • pixelStorei

      public abstract void pixelStorei(int pname, int param)
    • texImage2D

      public abstract void texImage2D(int target, int level, int internalFormat, int width, int height, int border, int format, int type, Buffer data)
    • copyTexImage2D

      public abstract void copyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border)
    • texSubImage2D

      public abstract void texSubImage2D(int target, int level, int xOffset, int yOffset, int width, int height, int format, int type, Buffer data)
    • copyTexSubImage2D

      public abstract void copyTexSubImage2D(int target, int level, int xOffset, int yOffset, int x, int y, int width, int height)
    • compressedTexImage2D

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

      public abstract void compressedTexSubImage2D(int target, int level, int xOffset, int yOffset, int width, int height, int format, int imageSize, Buffer data)
    • texParameteri

      public abstract void texParameteri(int target, int pname, int param)
    • texParameterf

      public abstract void texParameterf(int target, int pname, float param)
    • texParameteriv

      public abstract void texParameteriv(int target, int pname, IntBuffer params)
    • texParameterfv

      public abstract void texParameterfv(int target, int pname, FloatBuffer params)
    • generateMipmap

      public abstract void generateMipmap(int target)
    • genTextures

      public abstract void genTextures(int n, IntBuffer textures)
    • deleteTextures

      public abstract void deleteTextures(int n, IntBuffer textures)
    • getTexParameteriv

      public abstract void getTexParameteriv(int target, int pname, IntBuffer params)
    • getTexParameterfv

      public abstract void getTexParameterfv(int target, int pname, FloatBuffer params)
    • isTexture

      public abstract boolean isTexture(int texture)
    • activeTexture

      public void activeTexture(int texture)
    • bindTexture

      public void bindTexture(int target, int texture)
    • createShader

      public abstract int createShader(int type)
    • shaderSource

      public abstract void shaderSource(int shader, String source)
    • compileShader

      public abstract void compileShader(int shader)
    • releaseShaderCompiler

      public abstract void releaseShaderCompiler()
    • deleteShader

      public abstract void deleteShader(int shader)
    • shaderBinary

      public abstract void shaderBinary(int count, IntBuffer shaders, int binaryFormat, Buffer binary, int length)
    • createProgram

      public abstract int createProgram()
    • attachShader

      public abstract void attachShader(int program, int shader)
    • detachShader

      public abstract void detachShader(int program, int shader)
    • linkProgram

      public abstract void linkProgram(int program)
    • useProgram

      public abstract void useProgram(int program)
    • deleteProgram

      public abstract void deleteProgram(int program)
    • getActiveAttrib

      public abstract String getActiveAttrib(int program, int index, IntBuffer size, IntBuffer type)
    • getAttribLocation

      public abstract int getAttribLocation(int program, String name)
    • bindAttribLocation

      public abstract void bindAttribLocation(int program, int index, String name)
    • getUniformLocation

      public abstract int getUniformLocation(int program, String name)
    • getActiveUniform

      public abstract String getActiveUniform(int program, int index, IntBuffer size, IntBuffer type)
    • uniform1i

      public abstract void uniform1i(int location, int value)
    • uniform2i

      public abstract void uniform2i(int location, int value0, int value1)
    • uniform3i

      public abstract void uniform3i(int location, int value0, int value1, int value2)
    • uniform4i

      public abstract void uniform4i(int location, int value0, int value1, int value2, int value3)
    • uniform1f

      public abstract void uniform1f(int location, float value)
    • uniform2f

      public abstract void uniform2f(int location, float value0, float value1)
    • uniform3f

      public abstract void uniform3f(int location, float value0, float value1, float value2)
    • uniform4f

      public abstract void uniform4f(int location, float value0, float value1, float value2, float value3)
    • uniform1iv

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

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

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

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

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

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

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

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

      public abstract void uniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer mat)
    • uniformMatrix3fv

      public abstract void uniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer mat)
    • uniformMatrix4fv

      public abstract void uniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer mat)
    • validateProgram

      public abstract void validateProgram(int program)
    • isShader

      public abstract boolean isShader(int shader)
    • getShaderiv

      public abstract void getShaderiv(int shader, int pname, IntBuffer params)
    • getAttachedShaders

      public abstract void getAttachedShaders(int program, int maxCount, IntBuffer count, IntBuffer shaders)
    • getShaderInfoLog

      public abstract String getShaderInfoLog(int shader)
    • getShaderSource

      public abstract String getShaderSource(int shader)
    • getShaderPrecisionFormat

      public abstract void getShaderPrecisionFormat(int shaderType, int precisionType, IntBuffer range, IntBuffer precision)
    • getVertexAttribfv

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

      public abstract void getVertexAttribiv(int index, int pname, IntBuffer params)
    • getVertexAttribPointerv

      public abstract void getVertexAttribPointerv(int index, int pname, ByteBuffer data)
    • getUniformfv

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

      public abstract void getUniformiv(int program, int location, IntBuffer params)
    • isProgram

      public abstract boolean isProgram(int program)
    • getProgramiv

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

      public abstract String getProgramInfoLog(int program)
    • scissor

      public abstract void scissor(int x, int y, int w, int h)
    • sampleCoverage

      public abstract void sampleCoverage(float value, boolean invert)
    • stencilFunc

      public abstract void stencilFunc(int func, int ref, int mask)
    • stencilFuncSeparate

      public abstract void stencilFuncSeparate(int face, int func, int ref, int mask)
    • stencilOp

      public abstract void stencilOp(int sfail, int dpfail, int dppass)
    • stencilOpSeparate

      public abstract void stencilOpSeparate(int face, int sfail, int dpfail, int dppass)
    • depthFunc

      public abstract void depthFunc(int func)
    • blendEquation

      public abstract void blendEquation(int mode)
    • blendEquationSeparate

      public abstract void blendEquationSeparate(int modeRGB, int modeAlpha)
    • blendFunc

      public abstract void blendFunc(int src, int dst)
    • blendFuncSeparate

      public abstract void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
    • blendColor

      public abstract void blendColor(float red, float green, float blue, float alpha)
    • colorMask

      public abstract void colorMask(boolean r, boolean g, boolean b, boolean a)
    • depthMask

      public abstract void depthMask(boolean mask)
    • stencilMask

      public abstract void stencilMask(int mask)
    • stencilMaskSeparate

      public abstract void stencilMaskSeparate(int face, int mask)
    • clearColor

      public abstract void clearColor(float r, float g, float b, float a)
    • clearDepth

      public abstract void clearDepth(float d)
    • clearStencil

      public abstract void clearStencil(int s)
    • clear

      public abstract void clear(int buf)
    • bindFramebuffer

      public void bindFramebuffer(int target, int framebuffer)
    • deleteFramebuffers

      public abstract void deleteFramebuffers(int n, IntBuffer framebuffers)
    • genFramebuffers

      public abstract void genFramebuffers(int n, IntBuffer framebuffers)
    • bindRenderbuffer

      public abstract void bindRenderbuffer(int target, int renderbuffer)
    • deleteRenderbuffers

      public abstract void deleteRenderbuffers(int n, IntBuffer renderbuffers)
    • genRenderbuffers

      public abstract void genRenderbuffers(int n, IntBuffer renderbuffers)
    • renderbufferStorage

      public abstract void renderbufferStorage(int target, int internalFormat, int width, int height)
    • framebufferRenderbuffer

      public abstract void framebufferRenderbuffer(int target, int attachment, int rendbuferfTarget, int renderbuffer)
    • framebufferTexture2D

      public abstract void framebufferTexture2D(int target, int attachment, int texTarget, int texture, int level)
    • checkFramebufferStatus

      public abstract int checkFramebufferStatus(int target)
    • isFramebuffer

      public abstract boolean isFramebuffer(int framebuffer)
    • getFramebufferAttachmentParameteriv

      public abstract void getFramebufferAttachmentParameteriv(int target, int attachment, int pname, IntBuffer params)
    • isRenderbuffer

      public abstract boolean isRenderbuffer(int renderbuffer)
    • getRenderbufferParameteriv

      public abstract void getRenderbufferParameteriv(int target, int pname, IntBuffer params)
    • blitFramebuffer

      public abstract void blitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter)
    • renderbufferStorageMultisample

      public abstract void renderbufferStorageMultisample(int target, int samples, int format, int width, int height)
    • readBuffer

      public abstract void readBuffer(int buf)
    • drawBuffer

      public abstract void drawBuffer(int buf)