Package processing.opengl
Class PJOGL
java.lang.Object
processing.opengl.PGL
processing.opengl.PJOGL
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected static class
Nested classes/interfaces inherited from class processing.opengl.PGL
PGL.TessellatorCallback
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
protected com.jogamp.opengl.GLCapabilitiesImmutable
The capabilities of the OpenGL rendering surfacecom.jogamp.opengl.GLContext
The rendering context (holds rendering state info)protected com.jogamp.opengl.GLDrawable
The rendering surfacecom.jogamp.opengl.GL
Basic GL functionality, common to all profilesprotected com.jogamp.opengl.GL2ES2
GLES2 functionality (shaders, etc)protected com.jogamp.opengl.GL2
GL2 desktop functionality (blit framebuffer, map buffer range, multi-sampled render buffers)protected com.jogamp.opengl.GL2GL3
GL3 interfaceprotected com.jogamp.opengl.GL3ES3
GL3ES3 interfacecom.jogamp.opengl.glu.GLU
GLU interfaceprotected static String[]
protected float[]
static final int
static int
protected float[]
Fields inherited from class processing.opengl.PGL
activeTexUnit, ALIASED_LINE_WIDTH_RANGE, ALIASED_POINT_SIZE_RANGE, ALPHA, ALPHA8, ALREADY_SIGNALED, ALWAYS, ARRAY_BUFFER, BACK, backTex, BIG_ENDIAN, BLEND, BOOL, BOOL_VEC2, BOOL_VEC3, BOOL_VEC4, boundTextures, BUFFER_SIZE, BUFFER_USAGE, bufferMapAccess, bufferStreamingImmediate, bufferStreamingRetained, bufferUsageImmediate, bufferUsageRetained, BYTE, byteBuffer, CCW, CLAMP_TO_EDGE, clearColor, clearDepth, clearStencil, closeButtonPix, closeButtonTex, closeButtonY, COLOR_ATTACHMENT0, COLOR_ATTACHMENT1, COLOR_ATTACHMENT2, COLOR_ATTACHMENT3, COLOR_BUFFER_BIT, colorBuffer, COMPILE_STATUS, COMPRESSED_TEXTURE_FORMATS, CONDITION_SATISFIED, CONSTANT_ALPHA, CONSTANT_COLOR, CULL_FACE, CURRENT_VERTEX_ATTRIB, currentFps, CW, DECR, DECR_WRAP, DEFAULT_IN_EDGES, DEFAULT_IN_TEXTURES, DEFAULT_IN_VERTICES, DEFAULT_TESS_INDICES, DEFAULT_TESS_VERTICES, DELETE_STATUS, DEPTH_ATTACHMENT, DEPTH_BITS, DEPTH_BUFFER_BIT, DEPTH_COMPONENT, DEPTH_COMPONENT16, DEPTH_COMPONENT24, DEPTH_COMPONENT32, DEPTH_READING_NOT_ENABLED_ERROR, DEPTH_STENCIL, DEPTH_TEST, DEPTH_WRITEMASK, DEPTH24_STENCIL8, depthBuffer, DITHER, DONT_CARE, DRAW_FRAMEBUFFER, DST_ALPHA, DST_COLOR, DYNAMIC_DRAW, ELEMENT_ARRAY_BUFFER, EQUAL, EXTENSIONS, FALSE, FASTEST, fboHeight, fboLayerCreated, fboLayerDisableReq, fboLayerEnabled, fboLayerEnabledReq, fbolayerResetReq, fboWidth, firstFrame, FLOAT, FLOAT_EPS, FLOAT_MAT2, FLOAT_MAT3, FLOAT_MAT4, FLOAT_VEC2, FLOAT_VEC3, FLOAT_VEC4, FLUSH_VERTEX_COUNT, FRAGMENT_SHADER, FRAMEBUFFER, FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE, FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL, FRAMEBUFFER_COMPLETE, FRAMEBUFFER_ERROR, FRAMEBUFFER_INCOMPLETE_ATTACHMENT, FRAMEBUFFER_INCOMPLETE_DIMENSIONS, FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER, FRAMEBUFFER_INCOMPLETE_FORMATS, FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS, FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT, FRAMEBUFFER_INCOMPLETE_MULTISAMPLE, FRAMEBUFFER_INCOMPLETE_READ_BUFFER, FRAMEBUFFER_UNDEFINED, FRAMEBUFFER_UNSUPPORTED, FRONT, FRONT_AND_BACK, frontTex, FUNC_ADD, FUNC_MAX, FUNC_MIN, FUNC_REVERSE_SUBTRACT, FUNC_SUBTRACT, GENERATE_MIPMAP_HINT, geomCount, GEQUAL, glColorFbo, glColorTex, glContext, glDepth, glDepthStencil, glMultiColor, glMultiDepth, glMultiDepthStencil, glMultiFbo, glMultiStencil, GLSL_FN_REGEX, GLSL_ID_REGEX, glStencil, glThread, graphics, GREATER, HIGH_FLOAT, HIGH_INT, INCR, INCR_WRAP, INDEX_TYPE, INFO_LOG_LENGTH, INT, INT_VEC2, INT_VEC3, INT_VEC4, intBuffer, INVERT, KEEP, LEQUAL, LESS, LINE_LOOP, LINE_SMOOTH, LINE_STRIP, LINEAR, LINEAR_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST, LINES, LINK_STATUS, loadedTex2DShader, loadedTexRectShader, LOW_FLOAT, LOW_INT, LUMINANCE, LUMINANCE_ALPHA, MAX_CAPS_JOINS_LENGTH, MAX_COMBINED_TEXTURE_IMAGE_UNITS, MAX_FONT_TEX_SIZE, MAX_LIGHTS, MAX_SAMPLES, MAX_TEXTURE_IMAGE_UNITS, MAX_TEXTURE_MAX_ANISOTROPY, MAX_TEXTURE_SIZE, MAX_VERTEX_ATTRIBS, MAX_VERTEX_INDEX, MAX_VERTEX_INDEX1, MAX_VERTEX_TEXTURE_IMAGE_UNITS, maxTexUnits, MEDIUM_FLOAT, MEDIUM_INT, MIN_ARRAYCOPY_SIZE, MIN_CAPS_JOINS_WEIGHT, MIN_DIRECT_BUFFER_SIZE, MIN_FONT_TEX_SIZE, MIPMAPS_ENABLED, MISSING_FBO_ERROR, MISSING_GLFUNC_ERROR, MISSING_GLSL_ERROR, MULTISAMPLE, NEAREST, needSepFrontTex, NEVER, NICEST, NONPRIMARY_ERROR, NOTEQUAL, NUM_COMPRESSED_TEXTURE_FORMATS, numSamples, ONE, ONE_MINUS_CONSTANT_ALPHA, ONE_MINUS_CONSTANT_COLOR, ONE_MINUS_DST_COLOR, ONE_MINUS_SRC_ALPHA, ONE_MINUS_SRC_COLOR, PACK_ALIGNMENT, pclearColor, pclearDepth, pclearStencil, pgeomCount, PIXEL_PACK_BUFFER, POINTS, POLYGON_OFFSET_FILL, POLYGON_SMOOTH, presentMode, presentX, presentY, primaryPGL, READ_FRAMEBUFFER, READ_ONLY, READ_WRITE, RENDERBUFFER, RENDERBUFFER_ALPHA_SIZE, RENDERBUFFER_BLUE_SIZE, RENDERBUFFER_DEPTH_SIZE, RENDERBUFFER_GREEN_SIZE, RENDERBUFFER_HEIGHT, RENDERBUFFER_INTERNAL_FORMAT, RENDERBUFFER_RED_SIZE, RENDERBUFFER_STENCIL_SIZE, RENDERBUFFER_WIDTH, RENDERER, REPEAT, REPLACE, reqNumSamples, REQUESTED_ALPHA_BITS, REQUESTED_DEPTH_BITS, REQUESTED_STENCIL_BITS, RGB, RGB5_A1, RGB565, RGB8, RGBA, RGBA4, RGBA8, SAMPLE_ALPHA_TO_COVERAGE, SAMPLE_COVERAGE, SAMPLER_2D, SAMPLER_CUBE, SAMPLES, SCISSOR_TEST, SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, setFps, SHADER_PREPROCESSOR_DIRECTIVE, SHADER_SOURCE_LENGTH, SHADER_TYPE, SHADING_LANGUAGE_VERSION, SHAPE_TEXT_SUPPORTED, SHORT, showStopButton, SINGLE_BUFFERED, SIZEOF_BYTE, SIZEOF_FLOAT, SIZEOF_INDEX, SIZEOF_INT, SIZEOF_SHORT, sketch, SRC_ALPHA, SRC_ALPHA_SATURATE, SRC_COLOR, STATIC_DRAW, STENCIL_ATTACHMENT, STENCIL_BITS, STENCIL_BUFFER_BIT, STENCIL_INDEX, STENCIL_INDEX1, STENCIL_INDEX4, STENCIL_INDEX8, STENCIL_TEST, stencilBuffer, stopButtonColor, stopButtonHeight, stopButtonWidth, stopButtonX, STREAM_DRAW, STREAM_READ, STROKE_DISPLACEMENT, SYNC_GPU_COMMANDS_COMPLETE, targetFps, TESS_EDGE_FLAG, TESS_WINDING_NONZERO, TESS_WINDING_ODD, tex2DFragShader, tex2DFragShaderSource, tex2DGeoVBO, tex2DSamplerLoc, tex2DShaderContext, tex2DShaderProgram, tex2DTCoordLoc, tex2DVertLoc, tex2DVertShader, texCoords, texData, texRectFragShader, texRectFragShaderSource, texRectGeoVBO, texRectSamplerLoc, texRectShaderContext, texRectShaderProgram, texRectTCoordLoc, texRectVertLoc, texRectVertShader, TEXTURE_2D, TEXTURE_BINDING_2D, TEXTURE_BINDING_RECTANGLE, TEXTURE_CUBE_MAP, TEXTURE_CUBE_MAP_NEGATIVE_X, TEXTURE_CUBE_MAP_NEGATIVE_Y, TEXTURE_CUBE_MAP_NEGATIVE_Z, TEXTURE_CUBE_MAP_POSITIVE_X, TEXTURE_CUBE_MAP_POSITIVE_Y, TEXTURE_CUBE_MAP_POSITIVE_Z, TEXTURE_MAG_FILTER, TEXTURE_MAX_ANISOTROPY, TEXTURE_MIN_FILTER, TEXTURE_RECTANGLE, TEXTURE_WRAP_R, TEXTURE_WRAP_S, TEXTURE_WRAP_T, TEXTURE0, TEXTURE1, TEXTURE2, TEXTURE3, texturingTargets, TEXUNIT_ERROR, texVertShaderSource, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TRUE, UNPACK_ALIGNMENT, UNSIGNED_BYTE, UNSIGNED_INT, UNSIGNED_SHORT, UNSIGNED_SHORT_4_4_4_4, UNSIGNED_SHORT_5_5_5_1, UNSIGNED_SHORT_5_6_5, UNSUPPORTED_GLPROF_ERROR, USE_DIRECT_BUFFERS, usingFrontTex, VALIDATE_STATUS, VENDOR, VERSION, VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, VERTEX_ATTRIB_ARRAY_ENABLED, VERTEX_ATTRIB_ARRAY_NORMALIZED, VERTEX_ATTRIB_ARRAY_POINTER, VERTEX_ATTRIB_ARRAY_SIZE, VERTEX_ATTRIB_ARRAY_STRIDE, VERTEX_ATTRIB_ARRAY_TYPE, VERTEX_SHADER, viewBuffer, VIEWPORT, WIKI, WRITE_ONLY, ZERO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
activeTextureImpl
(int texture) void
attachShader
(int program, int shader) protected void
beginGL()
void
bindAttribLocation
(int program, int index, String name) void
bindBuffer
(int target, int buffer) protected void
bindFramebufferImpl
(int target, int framebuffer) void
bindRenderbuffer
(int target, int renderbuffer) protected void
bindTextureImpl
(int target, int texture) void
blendColor
(float red, float green, float blue, float alpha) void
blendEquation
(int mode) void
blendEquationSeparate
(int modeRGB, int modeAlpha) void
blendFunc
(int src, int dst) void
blendFuncSeparate
(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) void
blitFramebuffer
(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) void
bufferData
(int target, int size, Buffer data, int usage) void
bufferSubData
(int target, int offset, int size, Buffer data) protected boolean
canDraw()
int
checkFramebufferStatus
(int target) void
clear
(int buf) void
clearColor
(float r, float g, float b, float a) void
clearDepth
(float d) void
clearStencil
(int s) int
clientWaitSync
(long sync, int flags, long timeout) void
colorMask
(boolean r, boolean g, boolean b, boolean a) void
compileShader
(int shader) void
compressedTexImage2D
(int target, int level, int internalFormat, int width, int height, int border, int imageSize, Buffer data) void
compressedTexSubImage2D
(int target, int level, int xOffset, int yOffset, int width, int height, int format, int imageSize, Buffer data) void
copyTexImage2D
(int target, int level, int internalFormat, int x, int y, int width, int height, int border) void
copyTexSubImage2D
(int target, int level, int xOffset, int yOffset, int x, int y, int width, int height) protected PJOGL.FontOutline
createFontOutline
(char ch, Object font) int
int
createShader
(int type) protected PJOGL.Tessellator
createTessellator
(PGL.TessellatorCallback callback) void
cullFace
(int mode) void
deleteBuffers
(int n, IntBuffer buffers) void
deleteFramebuffers
(int n, IntBuffer framebuffers) void
deleteProgram
(int program) void
deleteRenderbuffers
(int n, IntBuffer renderbuffers) void
deleteShader
(int shader) void
deleteSync
(long sync) void
deleteTextures
(int n, IntBuffer textures) void
depthFunc
(int func) void
depthMask
(boolean mask) void
depthRangef
(float n, float f) void
detachShader
(int program, int shader) void
disable
(int value) protected void
disableTexturing
(int target) void
disableVertexAttribArray
(int index) void
drawArraysImpl
(int mode, int first, int count) void
drawBuffer
(int buf) void
drawElementsImpl
(int mode, int count, int type, int offset) void
enable
(int value) protected void
enableTexturing
(int target) void
enableVertexAttribArray
(int index) errorString
(int err) long
fenceSync
(int condition, int flags) void
finish()
void
flush()
void
framebufferRenderbuffer
(int target, int attachment, int rbt, int renderbuffer) void
framebufferTexture2D
(int target, int attachment, int texTarget, int texture, int level) void
frontFace
(int dir) void
genBuffers
(int n, IntBuffer buffers) void
generateMipmap
(int target) void
genFramebuffers
(int n, IntBuffer framebuffers) void
genRenderbuffers
(int n, IntBuffer renderbuffers) void
genTextures
(int n, IntBuffer textures) getActiveAttrib
(int program, int index, IntBuffer size, IntBuffer type) getActiveUniform
(int program, int index, IntBuffer size, IntBuffer type) void
getAttachedShaders
(int program, int maxCount, IntBuffer count, IntBuffer shaders) int
getAttribLocation
(int program, String name) void
getBooleanv
(int value, IntBuffer data) void
getBufferParameteriv
(int target, int value, IntBuffer data) com.jogamp.opengl.GLCapabilitiesImmutable
getCaps()
protected int
protected Object
getDerivedFont
(Object font, float size) int
getError()
void
getFloatv
(int value, FloatBuffer data) void
getFramebufferAttachmentParameteriv
(int target, int attachment, int name, IntBuffer params) void
getGL
(com.jogamp.opengl.GLAutoDrawable glDrawable) protected void
protected int
protected String
void
getIntegerv
(int value, IntBuffer data) protected float
getProgramInfoLog
(int program) void
getProgramiv
(int program, int pname, IntBuffer params) void
getRenderbufferParameteriv
(int target, int name, IntBuffer params) getShaderInfoLog
(int shader) void
getShaderiv
(int shader, int pname, IntBuffer params) void
getShaderPrecisionFormat
(int shaderType, int precisionType, IntBuffer range, IntBuffer precision) getShaderSource
(int shader) protected int
getString
(int name) void
getTexParameterfv
(int target, int pname, FloatBuffer params) void
getTexParameteriv
(int target, int pname, IntBuffer params) protected int
getTextWidth
(Object font, char[] buffer, int start, int stop) void
getUniformfv
(int program, int location, FloatBuffer params) void
getUniformiv
(int program, int location, IntBuffer params) int
getUniformLocation
(int program, String name) void
getVertexAttribfv
(int index, int pname, FloatBuffer params) void
getVertexAttribiv
(int index, int pname, IntBuffer params) void
getVertexAttribPointerv
(int index, int pname, ByteBuffer data) protected boolean
hasFBOs()
protected boolean
void
hint
(int target, int hint) void
init
(com.jogamp.opengl.GLAutoDrawable glDrawable) protected void
protected void
initSurface
(int antialias) void
isBuffer
(int buffer) boolean
isEnabled
(int value) boolean
isFramebuffer
(int framebuffer) boolean
isProgram
(int program) boolean
isRenderbuffer
(int renderbuffer) boolean
isShader
(int shader) boolean
isTexture
(int texture) void
lineWidth
(float width) void
linkProgram
(int program) protected String[]
loadFragmentShader
(String filename) protected String[]
loadFragmentShader
(String filename, int version, String versionSuffix) protected String[]
loadFragmentShader
(URL url) protected String[]
loadFragmentShader
(URL url, int version, String versionSuffix) protected String[]
loadVertexShader
(String filename) protected String[]
loadVertexShader
(String filename, int version, String versionSuffix) protected String[]
loadVertexShader
(URL url) protected String[]
loadVertexShader
(URL url, int version, String versionSuffix) mapBuffer
(int target, int access) mapBufferRange
(int target, int offset, int length, int access) boolean
void
pixelStorei
(int pname, int param) void
polygonOffset
(float factor, float units) void
readBuffer
(int buf) protected void
readPixelsImpl
(int x, int y, int width, int height, int format, int type, long offset) protected void
readPixelsImpl
(int x, int y, int width, int height, int format, int type, Buffer buffer) protected void
protected void
void
void
renderbufferStorage
(int target, int internalFormat, int width, int height) void
renderbufferStorageMultisample
(int target, int samples, int format, int width, int height) protected void
protected void
void
sampleCoverage
(float value, boolean invert) void
scissor
(int x, int y, int w, int h) void
setCaps
(com.jogamp.opengl.GLCapabilities caps) void
setFps
(float fps) protected void
setFrameRate
(float fps) static void
void
shaderBinary
(int count, IntBuffer shaders, int binaryFormat, Buffer binary, int length) void
shaderSource
(int shader, String source) void
stencilFunc
(int func, int ref, int mask) void
stencilFuncSeparate
(int face, int func, int ref, int mask) void
stencilMask
(int mask) void
stencilMaskSeparate
(int face, int mask) void
stencilOp
(int sfail, int dpfail, int dppass) void
stencilOpSeparate
(int face, int sfail, int dpfail, int dppass) protected void
protected String
tessError
(int err) void
texImage2D
(int target, int level, int internalFormat, int width, int height, int border, int format, int type, Buffer data) void
texParameterf
(int target, int pname, float param) void
texParameterfv
(int target, int pname, FloatBuffer params) void
texParameteri
(int target, int pname, int param) void
texParameteriv
(int target, int pname, IntBuffer params) void
texSubImage2D
(int target, int level, int xOffset, int yOffset, int width, int height, int format, int type, Buffer data) void
uniform1f
(int location, float value) void
uniform1fv
(int location, int count, FloatBuffer v) void
uniform1i
(int location, int value) void
uniform1iv
(int location, int count, IntBuffer v) void
uniform2f
(int location, float value0, float value1) void
uniform2fv
(int location, int count, FloatBuffer v) void
uniform2i
(int location, int value0, int value1) void
uniform2iv
(int location, int count, IntBuffer v) void
uniform3f
(int location, float value0, float value1, float value2) void
uniform3fv
(int location, int count, FloatBuffer v) void
uniform3i
(int location, int value0, int value1, int value2) void
uniform3iv
(int location, int count, IntBuffer v) void
uniform4f
(int location, float value0, float value1, float value2, float value3) void
uniform4fv
(int location, int count, FloatBuffer v) void
uniform4i
(int location, int value0, int value1, int value2, int value3) void
uniform4iv
(int location, int count, IntBuffer v) void
uniformMatrix2fv
(int location, int count, boolean transpose, FloatBuffer mat) void
uniformMatrix3fv
(int location, int count, boolean transpose, FloatBuffer mat) void
uniformMatrix4fv
(int location, int count, boolean transpose, FloatBuffer mat) void
unmapBuffer
(int target) void
useProgram
(int program) void
validateProgram
(int program) void
vertexAttrib1f
(int index, float value) void
vertexAttrib1fv
(int index, FloatBuffer values) void
vertexAttrib2f
(int index, float value0, float value1) void
vertexAttrib2fv
(int index, FloatBuffer values) void
vertexAttrib3f
(int index, float value0, float value1, float value2) void
vertexAttrib3fv
(int index, FloatBuffer values) void
vertexAttrib4f
(int index, float value0, float value1, float value2, float value3) void
vertexAttrib4fv
(int index, FloatBuffer values) void
vertexAttribPointer
(int index, int size, int type, boolean normalized, int stride, int offset) void
viewport
(int x, int y, int w, int h) protected void
viewportImpl
(int x, int y, int w, int h) Methods inherited from class processing.opengl.PGL
activeTexture, allocateByteBuffer, allocateByteBuffer, allocateDirectByteBuffer, allocateDirectFloatBuffer, allocateDirectIntBuffer, allocateDirectShortBuffer, allocateFloatBuffer, allocateFloatBuffer, allocateIntBuffer, allocateIntBuffer, allocateShortBuffer, allocateShortBuffer, beginRender, bindFramebuffer, bindFrontTexture, bindTexture, clearBackground, clearDepthStencil, compiled, containsVersionDirective, contextIsCurrent, copyToTexture, copyToTexture, createEmptyContext, createProgram, createShader, destroyFBOLayer, disableFBOLayer, dispose, drawArrays, drawElements, drawTexture, drawTexture, drawTexture, drawTexture2D, drawTextureRect, enableFBOLayer, endGL, endRender, fillByteBuffer, fillFloatBuffer, fillIntBuffer, fillShortBuffer, getByteArray, getColorValue, getCurrentContext, getDefaultDrawBuffer, getDefaultReadBuffer, getDepthTest, getDepthValue, getDepthWriteMask, getDrawFramebuffer, getFloatArray, getGLVersion, getIntArray, getMaxTexUnits, getReadFramebuffer, getShortArray, getStencilValue, hasAnisoSamplingSupport, hasAutoMipmapGenSupport, hasDrawBuffer, hasFboMultisampleSupport, hasNpotTexSupport, hasPackedDepthStencilSupport, hasPBOs, hasReadBuffer, hasSynchronization, initPresentMode, initTex2DShader, initTexRectShader, initTexture, initTexture, insideStopButton, isES, isFboAllowed, isFBOBacked, isMultisampled, isPowerOfTwo, javaToNativeARGB, javaToNativeARGB, javaToNativeRGB, javaToNativeRGB, linked, maxSamples, nativeToJavaARGB, nativeToJavaARGB, nativeToJavaRGB, nativeToJavaRGB, nextPowerOfTwo, preprocessFragmentSource, preprocessShaderSource, preprocessVertexSource, presentMode, presentX, presentY, putByteArray, putFloatArray, putIntArray, putShortArray, qualityToSamples, readPixels, readPixels, requestFBOLayer, resetFBOLayer, restoreFirstFrame, saveFirstFrame, setPrimary, setThread, smoothToSamples, syncBackTexture, textureIsBound, texturingIsEnabled, threadIsCurrent, unbindFrontTexture, updateByteBuffer, updateByteBuffer, updateFloatBuffer, updateFloatBuffer, updateIntBuffer, updateIntBuffer, updateShortBuffer, updateShortBuffer, validateFramebuffer, wrapBackTexture, wrapFrontTexture
-
Field Details
-
profile
public static int profile -
icons
-
AWT
public static final int AWT- See Also:
-
NEWT
public static final int NEWT- See Also:
-
gl
public com.jogamp.opengl.GL glBasic GL functionality, common to all profiles -
glu
public com.jogamp.opengl.glu.GLU gluGLU interface -
context
public com.jogamp.opengl.GLContext contextThe rendering context (holds rendering state info) -
capabilities
protected com.jogamp.opengl.GLCapabilitiesImmutable capabilitiesThe capabilities of the OpenGL rendering surface -
drawable
protected com.jogamp.opengl.GLDrawable drawableThe rendering surface -
gl2
protected com.jogamp.opengl.GL2ES2 gl2GLES2 functionality (shaders, etc) -
gl3
protected com.jogamp.opengl.GL2GL3 gl3GL3 interface -
gl2x
protected com.jogamp.opengl.GL2 gl2xGL2 desktop functionality (blit framebuffer, map buffer range, multi-sampled render buffers) -
gl3es3
protected com.jogamp.opengl.GL3ES3 gl3es3GL3ES3 interface -
projMatrix
protected float[] projMatrix -
mvMatrix
protected float[] mvMatrix
-
-
Constructor Details
-
PJOGL
-
-
Method Details
-
getNative
-
setFrameRate
protected void setFrameRate(float fps) - Specified by:
setFrameRate
in classPGL
-
initSurface
protected void initSurface(int antialias) - Specified by:
initSurface
in classPGL
-
reinitSurface
protected void reinitSurface()- Specified by:
reinitSurface
in classPGL
-
registerListeners
protected void registerListeners()- Specified by:
registerListeners
in classPGL
-
setIcon
-
setCaps
public void setCaps(com.jogamp.opengl.GLCapabilities caps) -
getCaps
public com.jogamp.opengl.GLCapabilitiesImmutable getCaps() -
setFps
public void setFps(float fps) -
getDepthBits
protected int getDepthBits()- Specified by:
getDepthBits
in classPGL
-
getStencilBits
protected int getStencilBits()- Specified by:
getStencilBits
in classPGL
-
getPixelScale
protected float getPixelScale()- Specified by:
getPixelScale
in classPGL
-
getGL
-
getGL
public void getGL(com.jogamp.opengl.GLAutoDrawable glDrawable) -
canDraw
protected boolean canDraw() -
requestFocus
protected void requestFocus()- Specified by:
requestFocus
in classPGL
-
requestDraw
protected void requestDraw()- Specified by:
requestDraw
in classPGL
-
swapBuffers
protected void swapBuffers()- Specified by:
swapBuffers
in classPGL
-
initFBOLayer
protected void initFBOLayer()- Specified by:
initFBOLayer
in classPGL
-
beginGL
protected void beginGL() -
hasFBOs
protected boolean hasFBOs() -
hasShaders
protected boolean hasShaders()- Overrides:
hasShaders
in classPGL
-
init
public void init(com.jogamp.opengl.GLAutoDrawable glDrawable) -
enableTexturing
protected void enableTexturing(int target) - Overrides:
enableTexturing
in classPGL
-
disableTexturing
protected void disableTexturing(int target) - Overrides:
disableTexturing
in classPGL
-
getTextWidth
- Specified by:
getTextWidth
in classPGL
-
getDerivedFont
- Specified by:
getDerivedFont
in classPGL
-
getGLSLVersion
protected int getGLSLVersion()- Specified by:
getGLSLVersion
in classPGL
-
getGLSLVersionSuffix
- Specified by:
getGLSLVersionSuffix
in classPGL
-
loadVertexShader
- Overrides:
loadVertexShader
in classPGL
-
loadFragmentShader
- Overrides:
loadFragmentShader
in classPGL
-
loadVertexShader
- Overrides:
loadVertexShader
in classPGL
-
loadFragmentShader
- Overrides:
loadFragmentShader
in classPGL
-
loadFragmentShader
- Overrides:
loadFragmentShader
in classPGL
-
loadVertexShader
- Overrides:
loadVertexShader
in classPGL
-
loadFragmentShader
- Overrides:
loadFragmentShader
in classPGL
-
loadVertexShader
- Overrides:
loadVertexShader
in classPGL
-
createTessellator
- Specified by:
createTessellator
in classPGL
-
tessError
-
createFontOutline
- Specified by:
createFontOutline
in classPGL
-
flush
public void flush() -
finish
public void finish() -
hint
public void hint(int target, int hint) -
enable
public void enable(int value) -
disable
public void disable(int value) -
getBooleanv
- Specified by:
getBooleanv
in classPGL
-
getIntegerv
- Specified by:
getIntegerv
in classPGL
-
getFloatv
-
isEnabled
public boolean isEnabled(int value) -
getString
-
getError
public int getError() -
errorString
- Specified by:
errorString
in classPGL
-
genBuffers
- Specified by:
genBuffers
in classPGL
-
deleteBuffers
- Specified by:
deleteBuffers
in classPGL
-
bindBuffer
public void bindBuffer(int target, int buffer) - Specified by:
bindBuffer
in classPGL
-
bufferData
- Specified by:
bufferData
in classPGL
-
bufferSubData
- Specified by:
bufferSubData
in classPGL
-
isBuffer
public void isBuffer(int buffer) -
getBufferParameteriv
- Specified by:
getBufferParameteriv
in classPGL
-
mapBuffer
-
mapBufferRange
- Specified by:
mapBufferRange
in classPGL
-
unmapBuffer
public void unmapBuffer(int target) - Specified by:
unmapBuffer
in classPGL
-
fenceSync
public long fenceSync(int condition, int flags) -
deleteSync
public void deleteSync(long sync) - Specified by:
deleteSync
in classPGL
-
clientWaitSync
public int clientWaitSync(long sync, int flags, long timeout) - Specified by:
clientWaitSync
in classPGL
-
depthRangef
public void depthRangef(float n, float f) - Specified by:
depthRangef
in classPGL
-
viewport
public void viewport(int x, int y, int w, int h) -
viewportImpl
protected void viewportImpl(int x, int y, int w, int h) - Specified by:
viewportImpl
in classPGL
-
readPixelsImpl
protected void readPixelsImpl(int x, int y, int width, int height, int format, int type, Buffer buffer) - Specified by:
readPixelsImpl
in classPGL
-
readPixelsImpl
protected void readPixelsImpl(int x, int y, int width, int height, int format, int type, long offset) - Specified by:
readPixelsImpl
in classPGL
-
vertexAttrib1f
public void vertexAttrib1f(int index, float value) - Specified by:
vertexAttrib1f
in classPGL
-
vertexAttrib2f
public void vertexAttrib2f(int index, float value0, float value1) - Specified by:
vertexAttrib2f
in classPGL
-
vertexAttrib3f
public void vertexAttrib3f(int index, float value0, float value1, float value2) - Specified by:
vertexAttrib3f
in classPGL
-
vertexAttrib4f
public void vertexAttrib4f(int index, float value0, float value1, float value2, float value3) - Specified by:
vertexAttrib4f
in classPGL
-
vertexAttrib1fv
- Specified by:
vertexAttrib1fv
in classPGL
-
vertexAttrib2fv
- Specified by:
vertexAttrib2fv
in classPGL
-
vertexAttrib3fv
- Specified by:
vertexAttrib3fv
in classPGL
-
vertexAttrib4fv
- Specified by:
vertexAttrib4fv
in classPGL
-
vertexAttribPointer
public void vertexAttribPointer(int index, int size, int type, boolean normalized, int stride, int offset) - Specified by:
vertexAttribPointer
in classPGL
-
enableVertexAttribArray
public void enableVertexAttribArray(int index) - Specified by:
enableVertexAttribArray
in classPGL
-
disableVertexAttribArray
public void disableVertexAttribArray(int index) - Specified by:
disableVertexAttribArray
in classPGL
-
drawArraysImpl
public void drawArraysImpl(int mode, int first, int count) - Specified by:
drawArraysImpl
in classPGL
-
drawElementsImpl
public void drawElementsImpl(int mode, int count, int type, int offset) - Specified by:
drawElementsImpl
in classPGL
-
lineWidth
public void lineWidth(float width) -
frontFace
public void frontFace(int dir) -
cullFace
public void cullFace(int mode) -
polygonOffset
public void polygonOffset(float factor, float units) - Specified by:
polygonOffset
in classPGL
-
pixelStorei
public void pixelStorei(int pname, int param) - Specified by:
pixelStorei
in classPGL
-
texImage2D
public void texImage2D(int target, int level, int internalFormat, int width, int height, int border, int format, int type, Buffer data) - Specified by:
texImage2D
in classPGL
-
copyTexImage2D
public void copyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border) - Specified by:
copyTexImage2D
in classPGL
-
texSubImage2D
public void texSubImage2D(int target, int level, int xOffset, int yOffset, int width, int height, int format, int type, Buffer data) - Specified by:
texSubImage2D
in classPGL
-
copyTexSubImage2D
public void copyTexSubImage2D(int target, int level, int xOffset, int yOffset, int x, int y, int width, int height) - Specified by:
copyTexSubImage2D
in classPGL
-
compressedTexImage2D
public void compressedTexImage2D(int target, int level, int internalFormat, int width, int height, int border, int imageSize, Buffer data) - Specified by:
compressedTexImage2D
in classPGL
-
compressedTexSubImage2D
public void compressedTexSubImage2D(int target, int level, int xOffset, int yOffset, int width, int height, int format, int imageSize, Buffer data) - Specified by:
compressedTexSubImage2D
in classPGL
-
texParameteri
public void texParameteri(int target, int pname, int param) - Specified by:
texParameteri
in classPGL
-
texParameterf
public void texParameterf(int target, int pname, float param) - Specified by:
texParameterf
in classPGL
-
texParameteriv
- Specified by:
texParameteriv
in classPGL
-
texParameterfv
- Specified by:
texParameterfv
in classPGL
-
generateMipmap
public void generateMipmap(int target) - Specified by:
generateMipmap
in classPGL
-
genTextures
- Specified by:
genTextures
in classPGL
-
deleteTextures
- Specified by:
deleteTextures
in classPGL
-
getTexParameteriv
- Specified by:
getTexParameteriv
in classPGL
-
getTexParameterfv
- Specified by:
getTexParameterfv
in classPGL
-
isTexture
public boolean isTexture(int texture) -
activeTextureImpl
protected void activeTextureImpl(int texture) - Specified by:
activeTextureImpl
in classPGL
-
bindTextureImpl
protected void bindTextureImpl(int target, int texture) - Specified by:
bindTextureImpl
in classPGL
-
createShader
public int createShader(int type) - Specified by:
createShader
in classPGL
-
shaderSource
- Specified by:
shaderSource
in classPGL
-
compileShader
public void compileShader(int shader) - Specified by:
compileShader
in classPGL
-
releaseShaderCompiler
public void releaseShaderCompiler()- Specified by:
releaseShaderCompiler
in classPGL
-
deleteShader
public void deleteShader(int shader) - Specified by:
deleteShader
in classPGL
-
shaderBinary
- Specified by:
shaderBinary
in classPGL
-
createProgram
public int createProgram()- Specified by:
createProgram
in classPGL
-
attachShader
public void attachShader(int program, int shader) - Specified by:
attachShader
in classPGL
-
detachShader
public void detachShader(int program, int shader) - Specified by:
detachShader
in classPGL
-
linkProgram
public void linkProgram(int program) - Specified by:
linkProgram
in classPGL
-
useProgram
public void useProgram(int program) - Specified by:
useProgram
in classPGL
-
deleteProgram
public void deleteProgram(int program) - Specified by:
deleteProgram
in classPGL
-
getActiveAttrib
- Specified by:
getActiveAttrib
in classPGL
-
getAttribLocation
- Specified by:
getAttribLocation
in classPGL
-
bindAttribLocation
- Specified by:
bindAttribLocation
in classPGL
-
getUniformLocation
- Specified by:
getUniformLocation
in classPGL
-
getActiveUniform
- Specified by:
getActiveUniform
in classPGL
-
uniform1i
public void uniform1i(int location, int value) -
uniform2i
public void uniform2i(int location, int value0, int value1) -
uniform3i
public void uniform3i(int location, int value0, int value1, int value2) -
uniform4i
public void uniform4i(int location, int value0, int value1, int value2, int value3) -
uniform1f
public void uniform1f(int location, float value) -
uniform2f
public void uniform2f(int location, float value0, float value1) -
uniform3f
public void uniform3f(int location, float value0, float value1, float value2) -
uniform4f
public void uniform4f(int location, float value0, float value1, float value2, float value3) -
uniform1iv
- Specified by:
uniform1iv
in classPGL
-
uniform2iv
- Specified by:
uniform2iv
in classPGL
-
uniform3iv
- Specified by:
uniform3iv
in classPGL
-
uniform4iv
- Specified by:
uniform4iv
in classPGL
-
uniform1fv
- Specified by:
uniform1fv
in classPGL
-
uniform2fv
- Specified by:
uniform2fv
in classPGL
-
uniform3fv
- Specified by:
uniform3fv
in classPGL
-
uniform4fv
- Specified by:
uniform4fv
in classPGL
-
uniformMatrix2fv
- Specified by:
uniformMatrix2fv
in classPGL
-
uniformMatrix3fv
- Specified by:
uniformMatrix3fv
in classPGL
-
uniformMatrix4fv
- Specified by:
uniformMatrix4fv
in classPGL
-
validateProgram
public void validateProgram(int program) - Specified by:
validateProgram
in classPGL
-
isShader
public boolean isShader(int shader) -
getShaderiv
- Specified by:
getShaderiv
in classPGL
-
getAttachedShaders
- Specified by:
getAttachedShaders
in classPGL
-
getShaderInfoLog
- Specified by:
getShaderInfoLog
in classPGL
-
getShaderSource
- Specified by:
getShaderSource
in classPGL
-
getShaderPrecisionFormat
public void getShaderPrecisionFormat(int shaderType, int precisionType, IntBuffer range, IntBuffer precision) - Specified by:
getShaderPrecisionFormat
in classPGL
-
getVertexAttribfv
- Specified by:
getVertexAttribfv
in classPGL
-
getVertexAttribiv
- Specified by:
getVertexAttribiv
in classPGL
-
getVertexAttribPointerv
- Specified by:
getVertexAttribPointerv
in classPGL
-
getUniformfv
- Specified by:
getUniformfv
in classPGL
-
getUniformiv
- Specified by:
getUniformiv
in classPGL
-
isProgram
public boolean isProgram(int program) -
getProgramiv
- Specified by:
getProgramiv
in classPGL
-
getProgramInfoLog
- Specified by:
getProgramInfoLog
in classPGL
-
scissor
public void scissor(int x, int y, int w, int h) -
sampleCoverage
public void sampleCoverage(float value, boolean invert) - Specified by:
sampleCoverage
in classPGL
-
stencilFunc
public void stencilFunc(int func, int ref, int mask) - Specified by:
stencilFunc
in classPGL
-
stencilFuncSeparate
public void stencilFuncSeparate(int face, int func, int ref, int mask) - Specified by:
stencilFuncSeparate
in classPGL
-
stencilOp
public void stencilOp(int sfail, int dpfail, int dppass) -
stencilOpSeparate
public void stencilOpSeparate(int face, int sfail, int dpfail, int dppass) - Specified by:
stencilOpSeparate
in classPGL
-
depthFunc
public void depthFunc(int func) -
blendEquation
public void blendEquation(int mode) - Specified by:
blendEquation
in classPGL
-
blendEquationSeparate
public void blendEquationSeparate(int modeRGB, int modeAlpha) - Specified by:
blendEquationSeparate
in classPGL
-
blendFunc
public void blendFunc(int src, int dst) -
blendFuncSeparate
public void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) - Specified by:
blendFuncSeparate
in classPGL
-
blendColor
public void blendColor(float red, float green, float blue, float alpha) - Specified by:
blendColor
in classPGL
-
colorMask
public void colorMask(boolean r, boolean g, boolean b, boolean a) -
depthMask
public void depthMask(boolean mask) -
stencilMask
public void stencilMask(int mask) - Specified by:
stencilMask
in classPGL
-
stencilMaskSeparate
public void stencilMaskSeparate(int face, int mask) - Specified by:
stencilMaskSeparate
in classPGL
-
clearColor
public void clearColor(float r, float g, float b, float a) - Specified by:
clearColor
in classPGL
-
clearDepth
public void clearDepth(float d) - Specified by:
clearDepth
in classPGL
-
clearStencil
public void clearStencil(int s) - Specified by:
clearStencil
in classPGL
-
clear
public void clear(int buf) -
bindFramebufferImpl
protected void bindFramebufferImpl(int target, int framebuffer) - Specified by:
bindFramebufferImpl
in classPGL
-
deleteFramebuffers
- Specified by:
deleteFramebuffers
in classPGL
-
genFramebuffers
- Specified by:
genFramebuffers
in classPGL
-
bindRenderbuffer
public void bindRenderbuffer(int target, int renderbuffer) - Specified by:
bindRenderbuffer
in classPGL
-
deleteRenderbuffers
- Specified by:
deleteRenderbuffers
in classPGL
-
genRenderbuffers
- Specified by:
genRenderbuffers
in classPGL
-
renderbufferStorage
public void renderbufferStorage(int target, int internalFormat, int width, int height) - Specified by:
renderbufferStorage
in classPGL
-
framebufferRenderbuffer
public void framebufferRenderbuffer(int target, int attachment, int rbt, int renderbuffer) - Specified by:
framebufferRenderbuffer
in classPGL
-
framebufferTexture2D
public void framebufferTexture2D(int target, int attachment, int texTarget, int texture, int level) - Specified by:
framebufferTexture2D
in classPGL
-
checkFramebufferStatus
public int checkFramebufferStatus(int target) - Specified by:
checkFramebufferStatus
in classPGL
-
isFramebuffer
public boolean isFramebuffer(int framebuffer) - Specified by:
isFramebuffer
in classPGL
-
getFramebufferAttachmentParameteriv
public void getFramebufferAttachmentParameteriv(int target, int attachment, int name, IntBuffer params) - Specified by:
getFramebufferAttachmentParameteriv
in classPGL
-
isRenderbuffer
public boolean isRenderbuffer(int renderbuffer) - Specified by:
isRenderbuffer
in classPGL
-
getRenderbufferParameteriv
- Specified by:
getRenderbufferParameteriv
in classPGL
-
blitFramebuffer
public void blitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) - Specified by:
blitFramebuffer
in classPGL
-
renderbufferStorageMultisample
public void renderbufferStorageMultisample(int target, int samples, int format, int width, int height) - Specified by:
renderbufferStorageMultisample
in classPGL
-
readBuffer
public void readBuffer(int buf) - Specified by:
readBuffer
in classPGL
-
drawBuffer
public void drawBuffer(int buf) - Specified by:
drawBuffer
in classPGL
-