Package processing.opengl
Class PJOGL
java.lang.Object
processing.opengl.PGL
processing.opengl.PJOGL
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
com.jogamp.opengl.GLContext
The rendering context (holds rendering state info)com.jogamp.opengl.GL
Basic GL functionality, common to all profilescom.jogamp.opengl.glu.GLU
GLU interfacestatic final int
static int
Fields inherited from class processing.opengl.PGL
ALIASED_LINE_WIDTH_RANGE, ALIASED_POINT_SIZE_RANGE, ALPHA, ALPHA8, ALREADY_SIGNALED, ALWAYS, ARRAY_BUFFER, BACK, BLEND, BOOL, BOOL_VEC2, BOOL_VEC3, BOOL_VEC4, BUFFER_SIZE, BUFFER_USAGE, bufferMapAccess, bufferStreamingImmediate, bufferStreamingRetained, bufferUsageImmediate, bufferUsageRetained, BYTE, CCW, CLAMP_TO_EDGE, COLOR_ATTACHMENT0, COLOR_ATTACHMENT1, COLOR_ATTACHMENT2, COLOR_ATTACHMENT3, COLOR_BUFFER_BIT, COMPILE_STATUS, COMPRESSED_TEXTURE_FORMATS, CONDITION_SATISFIED, CONSTANT_ALPHA, CONSTANT_COLOR, CULL_FACE, CURRENT_VERTEX_ATTRIB, CW, DECR, DECR_WRAP, DELETE_STATUS, DEPTH_ATTACHMENT, DEPTH_BITS, DEPTH_BUFFER_BIT, DEPTH_COMPONENT, DEPTH_COMPONENT16, DEPTH_COMPONENT24, DEPTH_COMPONENT32, DEPTH_STENCIL, DEPTH_TEST, DEPTH_WRITEMASK, DEPTH24_STENCIL8, DITHER, DONT_CARE, DRAW_FRAMEBUFFER, DST_ALPHA, DST_COLOR, DYNAMIC_DRAW, ELEMENT_ARRAY_BUFFER, EQUAL, EXTENSIONS, FALSE, FASTEST, FLOAT, FLOAT_MAT2, FLOAT_MAT3, FLOAT_MAT4, FLOAT_VEC2, FLOAT_VEC3, FLOAT_VEC4, FRAGMENT_SHADER, FRAMEBUFFER, FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE, FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL, FRAMEBUFFER_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, FUNC_ADD, FUNC_MAX, FUNC_MIN, FUNC_REVERSE_SUBTRACT, FUNC_SUBTRACT, GENERATE_MIPMAP_HINT, GEQUAL, GREATER, HIGH_FLOAT, HIGH_INT, INCR, INCR_WRAP, INFO_LOG_LENGTH, INT, INT_VEC2, INT_VEC3, INT_VEC4, INVERT, KEEP, LEQUAL, LESS, LINE_LOOP, LINE_SMOOTH, LINE_STRIP, LINEAR, LINEAR_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST, LINES, LINK_STATUS, LOW_FLOAT, LOW_INT, LUMINANCE, LUMINANCE_ALPHA, MAX_COMBINED_TEXTURE_IMAGE_UNITS, MAX_SAMPLES, MAX_TEXTURE_IMAGE_UNITS, MAX_TEXTURE_MAX_ANISOTROPY, MAX_TEXTURE_SIZE, MAX_VERTEX_ATTRIBS, MAX_VERTEX_TEXTURE_IMAGE_UNITS, MEDIUM_FLOAT, MEDIUM_INT, MISSING_FBO_ERROR, MISSING_GLFUNC_ERROR, MISSING_GLSL_ERROR, MULTISAMPLE, NEAREST, NEVER, NICEST, NONPRIMARY_ERROR, NOTEQUAL, NUM_COMPRESSED_TEXTURE_FORMATS, ONE, ONE_MINUS_CONSTANT_ALPHA, ONE_MINUS_CONSTANT_COLOR, ONE_MINUS_DST_COLOR, ONE_MINUS_SRC_ALPHA, ONE_MINUS_SRC_COLOR, PACK_ALIGNMENT, PIXEL_PACK_BUFFER, POINTS, POLYGON_OFFSET_FILL, POLYGON_SMOOTH, 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, SHADER_SOURCE_LENGTH, SHADER_TYPE, SHADING_LANGUAGE_VERSION, SHORT, 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, STREAM_DRAW, STREAM_READ, SYNC_GPU_COMMANDS_COMPLETE, TESS_EDGE_FLAG, TESS_WINDING_NONZERO, TESS_WINDING_ODD, 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, TEXUNIT_ERROR, 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, 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, VIEWPORT, WIKI, WRITE_ONLY, ZERO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attachShader
(int program, int shader) void
bindAttribLocation
(int program, int index, String name) void
bindBuffer
(int target, int buffer) void
bindRenderbuffer
(int target, int renderbuffer) 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) 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) int
int
createShader
(int type) 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) 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) 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()
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) void
getIntegerv
(int value, IntBuffer data) 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) getString
(int name) void
getTexParameterfv
(int target, int pname, FloatBuffer params) void
getTexParameteriv
(int target, int pname, IntBuffer params) void
getUniformfv
(int program, int location, FloatBuffer params) void
getUniformiv
(int program, int location, IntBuffer params) int
getUniformLocation
(int program, String name) void
getVertexAttribfv
(int index, int pname, FloatBuffer params) void
getVertexAttribiv
(int index, int pname, IntBuffer params) void
getVertexAttribPointerv
(int index, int pname, ByteBuffer data) void
hint
(int target, int hint) void
init
(com.jogamp.opengl.GLAutoDrawable glDrawable) 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) 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) void
void
renderbufferStorage
(int target, int internalFormat, int width, int height) void
renderbufferStorageMultisample
(int target, int samples, int format, int width, int height) 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) 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) 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) Methods inherited from class processing.opengl.PGL
activeTexture, bindFramebuffer, bindTexture, disableFBOLayer, dispose, drawArrays, drawElements, drawTexture, drawTexture, drawTexture, enableFBOLayer, initPresentMode, insideStopButton, isFboAllowed, presentMode, presentX, presentY, readPixels, readPixels, requestFBOLayer, resetFBOLayer, setPrimary, setThread, smoothToSamples, threadIsCurrent
-
Field Details
-
profile
public static int profile -
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)
-
-
Constructor Details
-
PJOGL
-
-
Method Details
-
getNative
-
setIcon
-
setCaps
public void setCaps(com.jogamp.opengl.GLCapabilities caps) -
getCaps
public com.jogamp.opengl.GLCapabilitiesImmutable getCaps() -
setFps
public void setFps(float fps) -
getGL
public void getGL(com.jogamp.opengl.GLAutoDrawable glDrawable) -
init
public void init(com.jogamp.opengl.GLAutoDrawable glDrawable) -
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) -
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) -
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) -
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
-