Class PGL


  • 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 Detail

      • graphics

        protected PGraphicsOpenGL graphics
        The PGraphics and PApplet objects using this interface
      • glThread

        protected Thread glThread
        OpenGL thread
      • glContext

        protected int glContext
        ID of the GL context associated to the surface
      • 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
      • USE_DIRECT_BUFFERS

        protected static boolean USE_DIRECT_BUFFERS
        Switches between the use of regular and direct buffers.
      • MIN_DIRECT_BUFFER_SIZE

        protected static int MIN_DIRECT_BUFFER_SIZE
      • MIPMAPS_ENABLED

        protected static boolean MIPMAPS_ENABLED
        Enables/disables mipmap use.
      • DEFAULT_IN_VERTICES

        protected static int DEFAULT_IN_VERTICES
        Initial sizes for arrays of input and tessellated data.
      • DEFAULT_IN_EDGES

        protected static int DEFAULT_IN_EDGES
      • DEFAULT_IN_TEXTURES

        protected static int DEFAULT_IN_TEXTURES
      • DEFAULT_TESS_VERTICES

        protected static int DEFAULT_TESS_VERTICES
      • DEFAULT_TESS_INDICES

        protected static int DEFAULT_TESS_INDICES
      • MAX_LIGHTS

        protected static int MAX_LIGHTS
        Maximum lights by default is 8, the minimum defined by OpenGL.
      • MAX_VERTEX_INDEX

        protected static int MAX_VERTEX_INDEX
        Maximum index value of a tessellated vertex. GLES restricts the vertex indices to be of type unsigned short. Since Java only supports signed shorts as primitive type we have 2^15 = 32768 as the maximum number of vertices that can be referred to within a single VBO.
      • MAX_VERTEX_INDEX1

        protected static int MAX_VERTEX_INDEX1
      • FLUSH_VERTEX_COUNT

        protected static int FLUSH_VERTEX_COUNT
        Count of tessellated fill, line or point vertices that will trigger a flush in the immediate mode. It doesn't necessarily be equal to MAX_VERTEX_INDEX1, since the number of vertices can be effectively much large since the renderer uses offsets to refer to vertices beyond the MAX_VERTEX_INDEX limit.
      • MIN_FONT_TEX_SIZE

        protected static int MIN_FONT_TEX_SIZE
        Minimum/maximum dimensions of a texture used to hold font data.
      • MAX_FONT_TEX_SIZE

        protected static int MAX_FONT_TEX_SIZE
      • MIN_CAPS_JOINS_WEIGHT

        protected static float MIN_CAPS_JOINS_WEIGHT
        Minimum stroke weight needed to apply the full path stroking algorithm that properly generates caps and joins.
      • MAX_CAPS_JOINS_LENGTH

        protected static int MAX_CAPS_JOINS_LENGTH
        Maximum length of linear paths to be stroked with the full algorithm that generates accurate caps and joins.
      • MIN_ARRAYCOPY_SIZE

        protected static int MIN_ARRAYCOPY_SIZE
        Minimum array size to use arrayCopy method().
      • STROKE_DISPLACEMENT

        protected static float STROKE_DISPLACEMENT
        Factor used to displace the stroke vertices towards the camera in order to make sure the lines are always on top of the fill geometry
      • SINGLE_BUFFERED

        protected static boolean SINGLE_BUFFERED
      • fboLayerEnabled

        protected boolean fboLayerEnabled
      • fboLayerCreated

        protected boolean fboLayerCreated
      • fboLayerEnabledReq

        protected boolean fboLayerEnabledReq
      • fboLayerDisableReq

        protected boolean fboLayerDisableReq
      • fbolayerResetReq

        protected boolean fbolayerResetReq
      • reqNumSamples

        public int reqNumSamples
      • numSamples

        protected int numSamples
      • glDepthStencil

        protected IntBuffer glDepthStencil
      • glMultiColor

        protected IntBuffer glMultiColor
      • glMultiDepthStencil

        protected IntBuffer glMultiDepthStencil
      • glMultiDepth

        protected IntBuffer glMultiDepth
      • glMultiStencil

        protected IntBuffer glMultiStencil
      • fboWidth

        protected int fboWidth
      • fboHeight

        protected int fboHeight
      • backTex

        protected int backTex
      • frontTex

        protected int frontTex
      • usingFrontTex

        protected boolean usingFrontTex
        Flags used to handle the creation of a separate front texture
      • needSepFrontTex

        protected boolean needSepFrontTex
      • loadedTex2DShader

        protected boolean loadedTex2DShader
      • tex2DShaderProgram

        protected int tex2DShaderProgram
      • tex2DVertShader

        protected int tex2DVertShader
      • tex2DFragShader

        protected int tex2DFragShader
      • tex2DShaderContext

        protected int tex2DShaderContext
      • tex2DVertLoc

        protected int tex2DVertLoc
      • tex2DTCoordLoc

        protected int tex2DTCoordLoc
      • tex2DSamplerLoc

        protected int tex2DSamplerLoc
      • tex2DGeoVBO

        protected int tex2DGeoVBO
      • loadedTexRectShader

        protected boolean loadedTexRectShader
      • texRectShaderProgram

        protected int texRectShaderProgram
      • texRectVertShader

        protected int texRectVertShader
      • texRectFragShader

        protected int texRectFragShader
      • texRectShaderContext

        protected int texRectShaderContext
      • texRectVertLoc

        protected int texRectVertLoc
      • texRectTCoordLoc

        protected int texRectTCoordLoc
      • texRectSamplerLoc

        protected int texRectSamplerLoc
      • texRectGeoVBO

        protected int texRectGeoVBO
      • texCoords

        protected float[] texCoords
      • texVertShaderSource

        protected static String[] texVertShaderSource
      • tex2DFragShaderSource

        protected static String[] tex2DFragShaderSource
      • texRectFragShaderSource

        protected static String[] texRectFragShaderSource
      • texturingTargets

        protected boolean[] texturingTargets
        Which texturing targets are enabled
      • maxTexUnits

        protected int maxTexUnits
        Used to keep track of which textures are bound to each target
      • activeTexUnit

        protected int activeTexUnit
      • boundTextures

        protected int[][] boundTextures
      • targetFps

        protected float targetFps
      • currentFps

        protected float currentFps
      • setFps

        protected boolean setFps
      • colorBuffer

        protected IntBuffer colorBuffer
      • stencilBuffer

        protected ByteBuffer stencilBuffer
      • geomCount

        protected int geomCount
        Used to register amount of geometry rendered in each frame.
      • pgeomCount

        protected int pgeomCount
      • clearColor

        protected boolean clearColor
        Used to register calls to background.
      • pclearColor

        protected boolean pclearColor
      • clearDepth

        protected boolean clearDepth
      • pclearDepth

        protected boolean pclearDepth
      • clearStencil

        protected boolean clearStencil
      • pclearStencil

        protected boolean pclearStencil
      • SIZEOF_SHORT

        protected static int SIZEOF_SHORT
        Size of different types in bytes
      • SIZEOF_INT

        protected static int SIZEOF_INT
      • SIZEOF_FLOAT

        protected static int SIZEOF_FLOAT
      • SIZEOF_BYTE

        protected static int SIZEOF_BYTE
      • SIZEOF_INDEX

        protected static int SIZEOF_INDEX
      • INDEX_TYPE

        protected static int INDEX_TYPE
      • FLOAT_EPS

        protected static float FLOAT_EPS
        Machine Epsilon for float precision.
      • BIG_ENDIAN

        protected static boolean BIG_ENDIAN
        Set to true if the host system is big endian (PowerPC, MIPS, SPARC), false if little endian (x86 Intel for Mac or PC).
      • presentMode

        protected boolean presentMode
      • showStopButton

        protected boolean showStopButton
      • presentX

        public float presentX
      • presentY

        public float presentY
      • closeButtonTex

        protected IntBuffer closeButtonTex
      • stopButtonColor

        protected int stopButtonColor
      • stopButtonWidth

        protected int stopButtonWidth
      • stopButtonHeight

        protected int stopButtonHeight
      • stopButtonX

        protected int stopButtonX
      • closeButtonY

        protected int closeButtonY
      • closeButtonPix

        protected static int[] closeButtonPix
      • SHAPE_TEXT_SUPPORTED

        protected static boolean SHAPE_TEXT_SUPPORTED
      • SEG_MOVETO

        protected static int SEG_MOVETO
      • SEG_LINETO

        protected static int SEG_LINETO
      • SEG_QUADTO

        protected static int SEG_QUADTO
      • SEG_CUBICTO

        protected static int SEG_CUBICTO
      • SEG_CLOSE

        protected static int SEG_CLOSE
      • 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
      • LINK_STATUS

        public static int LINK_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
    • Method Detail

      • dispose

        public void dispose()
      • setPrimary

        public void setPrimary​(boolean primary)
      • smoothToSamples

        public static int smoothToSamples​(int smooth)
      • getNative

        public abstract Object getNative()
      • setFrameRate

        protected abstract void setFrameRate​(float fps)
      • initSurface

        protected abstract void initSurface​(int antialias)
      • reinitSurface

        protected abstract void reinitSurface()
      • registerListeners

        protected abstract void registerListeners()
      • getReadFramebuffer

        protected int getReadFramebuffer()
      • getDrawFramebuffer

        protected int getDrawFramebuffer()
      • getDefaultDrawBuffer

        protected int getDefaultDrawBuffer()
      • getDefaultReadBuffer

        protected int getDefaultReadBuffer()
      • isFBOBacked

        protected boolean isFBOBacked()
      • requestFBOLayer

        @Deprecated
        public void requestFBOLayer()
        Deprecated.
      • enableFBOLayer

        public void enableFBOLayer()
      • disableFBOLayer

        public void disableFBOLayer()
      • resetFBOLayer

        public void resetFBOLayer()
      • isMultisampled

        protected boolean isMultisampled()
      • getDepthBits

        protected abstract int getDepthBits()
      • getStencilBits

        protected abstract int getStencilBits()
      • getDepthTest

        protected boolean getDepthTest()
      • getDepthWriteMask

        protected boolean getDepthWriteMask()
      • wrapBackTexture

        protected Texture wrapBackTexture​(Texture texture)
      • wrapFrontTexture

        protected Texture wrapFrontTexture​(Texture texture)
      • bindFrontTexture

        protected void bindFrontTexture()
      • unbindFrontTexture

        protected void unbindFrontTexture()
      • syncBackTexture

        protected void syncBackTexture()
      • getPixelScale

        protected abstract float getPixelScale()
      • 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)
      • clearDepthStencil

        protected void clearDepthStencil()
      • clearBackground

        protected void clearBackground​(float r,
                                       float g,
                                       float b,
                                       float a,
                                       boolean depth,
                                       boolean stencil)
      • beginRender

        protected void beginRender()
      • endRender

        protected void endRender​(int windowColor)
      • getGL

        protected abstract void getGL​(PGL pgl)
      • canDraw

        protected abstract boolean canDraw()
      • requestFocus

        protected abstract void requestFocus()
      • requestDraw

        protected abstract void requestDraw()
      • swapBuffers

        protected abstract void swapBuffers()
      • threadIsCurrent

        public boolean threadIsCurrent()
      • setThread

        public void setThread​(Thread thread)
      • beginGL

        protected void beginGL()
      • endGL

        protected void endGL()
      • initFBOLayer

        protected abstract void initFBOLayer()
      • saveFirstFrame

        protected void saveFirstFrame()
      • restoreFirstFrame

        protected void restoreFirstFrame()
      • destroyFBOLayer

        protected void destroyFBOLayer()
      • createEmptyContext

        protected int createEmptyContext()
      • getCurrentContext

        protected int getCurrentContext()
      • contextIsCurrent

        protected boolean contextIsCurrent​(int other)
      • enableTexturing

        protected void enableTexturing​(int target)
      • disableTexturing

        protected void disableTexturing​(int target)
      • texturingIsEnabled

        protected boolean texturingIsEnabled​(int target)
      • textureIsBound

        protected boolean textureIsBound​(int target,
                                         int id)
      • initTexture

        protected void initTexture​(int target,
                                   int format,
                                   int width,
                                   int height)
      • initTexture

        protected void initTexture​(int target,
                                   int format,
                                   int width,
                                   int height,
                                   int initColor)
      • copyToTexture

        protected void copyToTexture​(int target,
                                     int format,
                                     int id,
                                     int x,
                                     int y,
                                     int w,
                                     int h,
                                     int[] buffer)
      • copyToTexture

        protected void copyToTexture​(int target,
                                     int format,
                                     int id,
                                     int x,
                                     int y,
                                     int w,
                                     int h,
                                     IntBuffer buffer)
      • 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)
      • initTex2DShader

        protected PGL initTex2DShader()
      • drawTexture2D

        protected void drawTexture2D​(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)
      • initTexRectShader

        protected PGL initTexRectShader()
      • drawTextureRect

        protected void drawTextureRect​(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)
      • getColorValue

        protected int getColorValue​(int scrX,
                                    int scrY)
      • getDepthValue

        protected float getDepthValue​(int scrX,
                                      int scrY)
      • getStencilValue

        protected byte getStencilValue​(int scrX,
                                       int scrY)
      • isPowerOfTwo

        protected static boolean isPowerOfTwo​(int val)
      • nextPowerOfTwo

        protected static int nextPowerOfTwo​(int val)
      • nativeToJavaARGB

        protected static int nativeToJavaARGB​(int color)
        Converts input native OpenGL value (RGBA on big endian, ABGR on little endian) to Java ARGB.
      • nativeToJavaARGB

        protected static void nativeToJavaARGB​(int[] pixels,
                                               int width,
                                               int height)
        Converts input array of native OpenGL values (RGBA on big endian, ABGR on little endian) representing an image of width x height resolution to Java ARGB. It also rearranges the elements in the array so that the image is flipped vertically.
      • nativeToJavaRGB

        protected static int nativeToJavaRGB​(int color)
        Converts input native OpenGL value (RGBA on big endian, ABGR on little endian) to Java RGB, so that the alpha component of the result is set to opaque (255).
      • nativeToJavaRGB

        protected static void nativeToJavaRGB​(int[] pixels,
                                              int width,
                                              int height)
        Converts input array of native OpenGL values (RGBA on big endian, ABGR on little endian) representing an image of width x height resolution to Java RGB, so that the alpha component of all pixels is set to opaque (255). It also rearranges the elements in the array so that the image is flipped vertically.
      • javaToNativeARGB

        protected static int javaToNativeARGB​(int color)
        Converts input Java ARGB value to native OpenGL format (RGBA on big endian, BGRA on little endian).
      • javaToNativeARGB

        protected static void javaToNativeARGB​(int[] pixels,
                                               int width,
                                               int height)
        Converts input array of Java ARGB values representing an image of width x height resolution to native OpenGL format (RGBA on big endian, BGRA on little endian). It also rearranges the elements in the array so that the image is flipped vertically.
      • javaToNativeRGB

        protected static int javaToNativeRGB​(int color)
        Converts input Java ARGB value to native OpenGL format (RGBA on big endian, BGRA on little endian), setting alpha component to opaque (255).
      • javaToNativeRGB

        protected static void javaToNativeRGB​(int[] pixels,
                                              int width,
                                              int height)
        Converts input array of Java ARGB values representing an image of width x height resolution to native OpenGL format (RGBA on big endian, BGRA on little endian), while setting alpha component of all pixels to opaque (255). It also rearranges the elements in the array so that the image is flipped vertically.
      • qualityToSamples

        protected static int qualityToSamples​(int quality)
      • getGLSLVersion

        protected abstract int getGLSLVersion()
      • getGLSLVersionSuffix

        protected abstract String getGLSLVersionSuffix()
      • loadVertexShader

        protected String[] loadVertexShader​(String filename)
      • loadFragmentShader

        protected String[] loadFragmentShader​(String filename)
      • loadFragmentShader

        protected String[] loadFragmentShader​(URL url)
      • loadVertexShader

        protected String[] loadVertexShader​(URL url)
      • loadVertexShader

        protected String[] loadVertexShader​(String filename,
                                            int version,
                                            String versionSuffix)
      • loadFragmentShader

        protected String[] loadFragmentShader​(String filename,
                                              int version,
                                              String versionSuffix)
      • loadFragmentShader

        protected String[] loadFragmentShader​(URL url,
                                              int version,
                                              String versionSuffix)
      • loadVertexShader

        protected String[] loadVertexShader​(URL url,
                                            int version,
                                            String versionSuffix)
      • preprocessFragmentSource

        protected static String[] preprocessFragmentSource​(String[] fragSrc0,
                                                           int version,
                                                           String versionSuffix)
      • preprocessVertexSource

        protected static String[] preprocessVertexSource​(String[] vertSrc0,
                                                         int version,
                                                         String versionSuffix)
      • preprocessShaderSource

        protected static String[] preprocessShaderSource​(String[] src0,
                                                         Pattern[] search,
                                                         String[] replace,
                                                         int offset)
      • containsVersionDirective

        protected static boolean containsVersionDirective​(String[] shSrc)
      • createShader

        protected int createShader​(int shaderType,
                                   String source)
      • createProgram

        protected int createProgram​(int vertexShader,
                                    int fragmentShader)
      • compiled

        protected boolean compiled​(int shader)
      • linked

        protected boolean linked​(int program)
      • validateFramebuffer

        protected int validateFramebuffer()
      • isES

        protected boolean isES()
      • getGLVersion

        protected int[] getGLVersion()
      • hasFBOs

        protected boolean hasFBOs()
      • hasShaders

        protected boolean hasShaders()
      • hasNpotTexSupport

        protected boolean hasNpotTexSupport()
      • hasAutoMipmapGenSupport

        protected boolean hasAutoMipmapGenSupport()
      • hasFboMultisampleSupport

        protected boolean hasFboMultisampleSupport()
      • hasPackedDepthStencilSupport

        protected boolean hasPackedDepthStencilSupport()
      • hasAnisoSamplingSupport

        protected boolean hasAnisoSamplingSupport()
      • hasSynchronization

        protected boolean hasSynchronization()
      • hasPBOs

        protected boolean hasPBOs()
      • hasReadBuffer

        protected boolean hasReadBuffer()
      • hasDrawBuffer

        protected boolean hasDrawBuffer()
      • maxSamples

        protected int maxSamples()
      • getMaxTexUnits

        protected int getMaxTexUnits()
      • allocateDirectByteBuffer

        protected static ByteBuffer allocateDirectByteBuffer​(int size)
      • allocateByteBuffer

        protected static ByteBuffer allocateByteBuffer​(int size)
      • allocateByteBuffer

        protected static ByteBuffer allocateByteBuffer​(byte[] arr)
      • updateByteBuffer

        protected static ByteBuffer updateByteBuffer​(ByteBuffer buf,
                                                     byte[] arr,
                                                     boolean wrap)
      • updateByteBuffer

        protected static void updateByteBuffer​(ByteBuffer buf,
                                               byte[] arr,
                                               int offset,
                                               int size)
      • getByteArray

        protected static void getByteArray​(ByteBuffer buf,
                                           byte[] arr)
      • putByteArray

        protected static void putByteArray​(ByteBuffer buf,
                                           byte[] arr)
      • fillByteBuffer

        protected static void fillByteBuffer​(ByteBuffer buf,
                                             int i0,
                                             int i1,
                                             byte val)
      • allocateDirectShortBuffer

        protected static ShortBuffer allocateDirectShortBuffer​(int size)
      • allocateShortBuffer

        protected static ShortBuffer allocateShortBuffer​(int size)
      • allocateShortBuffer

        protected static ShortBuffer allocateShortBuffer​(short[] arr)
      • updateShortBuffer

        protected static ShortBuffer updateShortBuffer​(ShortBuffer buf,
                                                       short[] arr,
                                                       boolean wrap)
      • updateShortBuffer

        protected static void updateShortBuffer​(ShortBuffer buf,
                                                short[] arr,
                                                int offset,
                                                int size)
      • getShortArray

        protected static void getShortArray​(ShortBuffer buf,
                                            short[] arr)
      • putShortArray

        protected static void putShortArray​(ShortBuffer buf,
                                            short[] arr)
      • fillShortBuffer

        protected static void fillShortBuffer​(ShortBuffer buf,
                                              int i0,
                                              int i1,
                                              short val)
      • allocateDirectIntBuffer

        protected static IntBuffer allocateDirectIntBuffer​(int size)
      • allocateIntBuffer

        protected static IntBuffer allocateIntBuffer​(int size)
      • allocateIntBuffer

        protected static IntBuffer allocateIntBuffer​(int[] arr)
      • updateIntBuffer

        protected static IntBuffer updateIntBuffer​(IntBuffer buf,
                                                   int[] arr,
                                                   boolean wrap)
      • updateIntBuffer

        protected static void updateIntBuffer​(IntBuffer buf,
                                              int[] arr,
                                              int offset,
                                              int size)
      • getIntArray

        protected static void getIntArray​(IntBuffer buf,
                                          int[] arr)
      • putIntArray

        protected static void putIntArray​(IntBuffer buf,
                                          int[] arr)
      • fillIntBuffer

        protected static void fillIntBuffer​(IntBuffer buf,
                                            int i0,
                                            int i1,
                                            int val)
      • allocateDirectFloatBuffer

        protected static FloatBuffer allocateDirectFloatBuffer​(int size)
      • allocateFloatBuffer

        protected static FloatBuffer allocateFloatBuffer​(int size)
      • allocateFloatBuffer

        protected static FloatBuffer allocateFloatBuffer​(float[] arr)
      • updateFloatBuffer

        protected static FloatBuffer updateFloatBuffer​(FloatBuffer buf,
                                                       float[] arr,
                                                       boolean wrap)
      • updateFloatBuffer

        protected static void updateFloatBuffer​(FloatBuffer buf,
                                                float[] arr,
                                                int offset,
                                                int size)
      • getFloatArray

        protected static void getFloatArray​(FloatBuffer buf,
                                            float[] arr)
      • putFloatArray

        protected static void putFloatArray​(FloatBuffer buf,
                                            float[] arr)
      • fillFloatBuffer

        protected static void fillFloatBuffer​(FloatBuffer buf,
                                              int i0,
                                              int i1,
                                              float val)
      • getFontAscent

        protected abstract int getFontAscent​(Object font)
      • getFontDescent

        protected abstract int getFontDescent​(Object font)
      • getTextWidth

        protected abstract int getTextWidth​(Object font,
                                            char[] buffer,
                                            int start,
                                            int stop)
      • getDerivedFont

        protected abstract Object getDerivedFont​(Object font,
                                                 float size)
      • tessError

        protected String tessError​(int err)
      • 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)
      • viewportImpl

        protected abstract void viewportImpl​(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)
      • readPixelsImpl

        protected abstract void readPixelsImpl​(int x,
                                               int y,
                                               int width,
                                               int height,
                                               int format,
                                               int type,
                                               Buffer buffer)
      • readPixelsImpl

        protected abstract void readPixelsImpl​(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)
      • activeTextureImpl

        protected abstract void activeTextureImpl​(int texture)
      • bindTexture

        public void bindTexture​(int target,
                                int texture)
      • bindTextureImpl

        protected abstract void bindTextureImpl​(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)
      • bindFramebufferImpl

        protected abstract void bindFramebufferImpl​(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)