Class PJOGL

java.lang.Object
processing.opengl.PGL
processing.opengl.PJOGL

public class PJOGL extends PGL
  • 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 gl
      Basic GL functionality, common to all profiles
    • glu

      public com.jogamp.opengl.glu.GLU glu
      GLU interface
    • context

      public com.jogamp.opengl.GLContext context
      The rendering context (holds rendering state info)
  • Constructor Details

  • Method Details

    • getNative

      public Object getNative()
      Specified by:
      getNative in class PGL
    • setIcon

      public static void setIcon(String... icons)
    • setCaps

      public void setCaps(com.jogamp.opengl.GLCapabilities caps)
    • getCaps

      public com.jogamp.opengl.GLCapabilitiesImmutable getCaps()
    • needSharedObjectSync

      public boolean needSharedObjectSync()
    • 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()
      Specified by:
      flush in class PGL
    • finish

      public void finish()
      Specified by:
      finish in class PGL
    • hint

      public void hint(int target, int hint)
      Specified by:
      hint in class PGL
    • enable

      public void enable(int value)
      Specified by:
      enable in class PGL
    • disable

      public void disable(int value)
      Specified by:
      disable in class PGL
    • getBooleanv

      public void getBooleanv(int value, IntBuffer data)
      Specified by:
      getBooleanv in class PGL
    • getIntegerv

      public void getIntegerv(int value, IntBuffer data)
      Specified by:
      getIntegerv in class PGL
    • getFloatv

      public void getFloatv(int value, FloatBuffer data)
      Specified by:
      getFloatv in class PGL
    • isEnabled

      public boolean isEnabled(int value)
      Specified by:
      isEnabled in class PGL
    • getString

      public String getString(int name)
      Specified by:
      getString in class PGL
    • getError

      public int getError()
      Specified by:
      getError in class PGL
    • errorString

      public String errorString(int err)
      Specified by:
      errorString in class PGL
    • genBuffers

      public void genBuffers(int n, IntBuffer buffers)
      Specified by:
      genBuffers in class PGL
    • deleteBuffers

      public void deleteBuffers(int n, IntBuffer buffers)
      Specified by:
      deleteBuffers in class PGL
    • bindBuffer

      public void bindBuffer(int target, int buffer)
      Specified by:
      bindBuffer in class PGL
    • bufferData

      public void bufferData(int target, int size, Buffer data, int usage)
      Specified by:
      bufferData in class PGL
    • bufferSubData

      public void bufferSubData(int target, int offset, int size, Buffer data)
      Specified by:
      bufferSubData in class PGL
    • isBuffer

      public void isBuffer(int buffer)
      Specified by:
      isBuffer in class PGL
    • getBufferParameteriv

      public void getBufferParameteriv(int target, int value, IntBuffer data)
      Specified by:
      getBufferParameteriv in class PGL
    • mapBuffer

      public ByteBuffer mapBuffer(int target, int access)
      Specified by:
      mapBuffer in class PGL
    • mapBufferRange

      public ByteBuffer mapBufferRange(int target, int offset, int length, int access)
      Specified by:
      mapBufferRange in class PGL
    • unmapBuffer

      public void unmapBuffer(int target)
      Specified by:
      unmapBuffer in class PGL
    • fenceSync

      public long fenceSync(int condition, int flags)
      Specified by:
      fenceSync in class PGL
    • deleteSync

      public void deleteSync(long sync)
      Specified by:
      deleteSync in class PGL
    • clientWaitSync

      public int clientWaitSync(long sync, int flags, long timeout)
      Specified by:
      clientWaitSync in class PGL
    • depthRangef

      public void depthRangef(float n, float f)
      Specified by:
      depthRangef in class PGL
    • viewport

      public void viewport(int x, int y, int w, int h)
      Specified by:
      viewport in class PGL
    • vertexAttrib1f

      public void vertexAttrib1f(int index, float value)
      Specified by:
      vertexAttrib1f in class PGL
    • vertexAttrib2f

      public void vertexAttrib2f(int index, float value0, float value1)
      Specified by:
      vertexAttrib2f in class PGL
    • vertexAttrib3f

      public void vertexAttrib3f(int index, float value0, float value1, float value2)
      Specified by:
      vertexAttrib3f in class PGL
    • vertexAttrib4f

      public void vertexAttrib4f(int index, float value0, float value1, float value2, float value3)
      Specified by:
      vertexAttrib4f in class PGL
    • vertexAttrib1fv

      public void vertexAttrib1fv(int index, FloatBuffer values)
      Specified by:
      vertexAttrib1fv in class PGL
    • vertexAttrib2fv

      public void vertexAttrib2fv(int index, FloatBuffer values)
      Specified by:
      vertexAttrib2fv in class PGL
    • vertexAttrib3fv

      public void vertexAttrib3fv(int index, FloatBuffer values)
      Specified by:
      vertexAttrib3fv in class PGL
    • vertexAttrib4fv

      public void vertexAttrib4fv(int index, FloatBuffer values)
      Specified by:
      vertexAttrib4fv in class PGL
    • vertexAttribPointer

      public void vertexAttribPointer(int index, int size, int type, boolean normalized, int stride, int offset)
      Specified by:
      vertexAttribPointer in class PGL
    • enableVertexAttribArray

      public void enableVertexAttribArray(int index)
      Specified by:
      enableVertexAttribArray in class PGL
    • disableVertexAttribArray

      public void disableVertexAttribArray(int index)
      Specified by:
      disableVertexAttribArray in class PGL
    • drawArraysImpl

      public void drawArraysImpl(int mode, int first, int count)
      Specified by:
      drawArraysImpl in class PGL
    • drawElementsImpl

      public void drawElementsImpl(int mode, int count, int type, int offset)
      Specified by:
      drawElementsImpl in class PGL
    • lineWidth

      public void lineWidth(float width)
      Specified by:
      lineWidth in class PGL
    • frontFace

      public void frontFace(int dir)
      Specified by:
      frontFace in class PGL
    • cullFace

      public void cullFace(int mode)
      Specified by:
      cullFace in class PGL
    • polygonOffset

      public void polygonOffset(float factor, float units)
      Specified by:
      polygonOffset in class PGL
    • pixelStorei

      public void pixelStorei(int pname, int param)
      Specified by:
      pixelStorei in class PGL
    • 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 class PGL
    • copyTexImage2D

      public void copyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border)
      Specified by:
      copyTexImage2D in class PGL
    • 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 class PGL
    • copyTexSubImage2D

      public void copyTexSubImage2D(int target, int level, int xOffset, int yOffset, int x, int y, int width, int height)
      Specified by:
      copyTexSubImage2D in class PGL
    • compressedTexImage2D

      public void compressedTexImage2D(int target, int level, int internalFormat, int width, int height, int border, int imageSize, Buffer data)
      Specified by:
      compressedTexImage2D in class PGL
    • 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 class PGL
    • texParameteri

      public void texParameteri(int target, int pname, int param)
      Specified by:
      texParameteri in class PGL
    • texParameterf

      public void texParameterf(int target, int pname, float param)
      Specified by:
      texParameterf in class PGL
    • texParameteriv

      public void texParameteriv(int target, int pname, IntBuffer params)
      Specified by:
      texParameteriv in class PGL
    • texParameterfv

      public void texParameterfv(int target, int pname, FloatBuffer params)
      Specified by:
      texParameterfv in class PGL
    • generateMipmap

      public void generateMipmap(int target)
      Specified by:
      generateMipmap in class PGL
    • genTextures

      public void genTextures(int n, IntBuffer textures)
      Specified by:
      genTextures in class PGL
    • deleteTextures

      public void deleteTextures(int n, IntBuffer textures)
      Specified by:
      deleteTextures in class PGL
    • getTexParameteriv

      public void getTexParameteriv(int target, int pname, IntBuffer params)
      Specified by:
      getTexParameteriv in class PGL
    • getTexParameterfv

      public void getTexParameterfv(int target, int pname, FloatBuffer params)
      Specified by:
      getTexParameterfv in class PGL
    • isTexture

      public boolean isTexture(int texture)
      Specified by:
      isTexture in class PGL
    • createShader

      public int createShader(int type)
      Specified by:
      createShader in class PGL
    • shaderSource

      public void shaderSource(int shader, String source)
      Specified by:
      shaderSource in class PGL
    • compileShader

      public void compileShader(int shader)
      Specified by:
      compileShader in class PGL
    • releaseShaderCompiler

      public void releaseShaderCompiler()
      Specified by:
      releaseShaderCompiler in class PGL
    • deleteShader

      public void deleteShader(int shader)
      Specified by:
      deleteShader in class PGL
    • shaderBinary

      public void shaderBinary(int count, IntBuffer shaders, int binaryFormat, Buffer binary, int length)
      Specified by:
      shaderBinary in class PGL
    • createProgram

      public int createProgram()
      Specified by:
      createProgram in class PGL
    • attachShader

      public void attachShader(int program, int shader)
      Specified by:
      attachShader in class PGL
    • detachShader

      public void detachShader(int program, int shader)
      Specified by:
      detachShader in class PGL
    • linkProgram

      public void linkProgram(int program)
      Specified by:
      linkProgram in class PGL
    • useProgram

      public void useProgram(int program)
      Specified by:
      useProgram in class PGL
    • deleteProgram

      public void deleteProgram(int program)
      Specified by:
      deleteProgram in class PGL
    • getActiveAttrib

      public String getActiveAttrib(int program, int index, IntBuffer size, IntBuffer type)
      Specified by:
      getActiveAttrib in class PGL
    • getAttribLocation

      public int getAttribLocation(int program, String name)
      Specified by:
      getAttribLocation in class PGL
    • bindAttribLocation

      public void bindAttribLocation(int program, int index, String name)
      Specified by:
      bindAttribLocation in class PGL
    • getUniformLocation

      public int getUniformLocation(int program, String name)
      Specified by:
      getUniformLocation in class PGL
    • getActiveUniform

      public String getActiveUniform(int program, int index, IntBuffer size, IntBuffer type)
      Specified by:
      getActiveUniform in class PGL
    • uniform1i

      public void uniform1i(int location, int value)
      Specified by:
      uniform1i in class PGL
    • uniform2i

      public void uniform2i(int location, int value0, int value1)
      Specified by:
      uniform2i in class PGL
    • uniform3i

      public void uniform3i(int location, int value0, int value1, int value2)
      Specified by:
      uniform3i in class PGL
    • uniform4i

      public void uniform4i(int location, int value0, int value1, int value2, int value3)
      Specified by:
      uniform4i in class PGL
    • uniform1f

      public void uniform1f(int location, float value)
      Specified by:
      uniform1f in class PGL
    • uniform2f

      public void uniform2f(int location, float value0, float value1)
      Specified by:
      uniform2f in class PGL
    • uniform3f

      public void uniform3f(int location, float value0, float value1, float value2)
      Specified by:
      uniform3f in class PGL
    • uniform4f

      public void uniform4f(int location, float value0, float value1, float value2, float value3)
      Specified by:
      uniform4f in class PGL
    • uniform1iv

      public void uniform1iv(int location, int count, IntBuffer v)
      Specified by:
      uniform1iv in class PGL
    • uniform2iv

      public void uniform2iv(int location, int count, IntBuffer v)
      Specified by:
      uniform2iv in class PGL
    • uniform3iv

      public void uniform3iv(int location, int count, IntBuffer v)
      Specified by:
      uniform3iv in class PGL
    • uniform4iv

      public void uniform4iv(int location, int count, IntBuffer v)
      Specified by:
      uniform4iv in class PGL
    • uniform1fv

      public void uniform1fv(int location, int count, FloatBuffer v)
      Specified by:
      uniform1fv in class PGL
    • uniform2fv

      public void uniform2fv(int location, int count, FloatBuffer v)
      Specified by:
      uniform2fv in class PGL
    • uniform3fv

      public void uniform3fv(int location, int count, FloatBuffer v)
      Specified by:
      uniform3fv in class PGL
    • uniform4fv

      public void uniform4fv(int location, int count, FloatBuffer v)
      Specified by:
      uniform4fv in class PGL
    • uniformMatrix2fv

      public void uniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer mat)
      Specified by:
      uniformMatrix2fv in class PGL
    • uniformMatrix3fv

      public void uniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer mat)
      Specified by:
      uniformMatrix3fv in class PGL
    • uniformMatrix4fv

      public void uniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer mat)
      Specified by:
      uniformMatrix4fv in class PGL
    • validateProgram

      public void validateProgram(int program)
      Specified by:
      validateProgram in class PGL
    • isShader

      public boolean isShader(int shader)
      Specified by:
      isShader in class PGL
    • getShaderiv

      public void getShaderiv(int shader, int pname, IntBuffer params)
      Specified by:
      getShaderiv in class PGL
    • getAttachedShaders

      public void getAttachedShaders(int program, int maxCount, IntBuffer count, IntBuffer shaders)
      Specified by:
      getAttachedShaders in class PGL
    • getShaderInfoLog

      public String getShaderInfoLog(int shader)
      Specified by:
      getShaderInfoLog in class PGL
    • getShaderSource

      public String getShaderSource(int shader)
      Specified by:
      getShaderSource in class PGL
    • getShaderPrecisionFormat

      public void getShaderPrecisionFormat(int shaderType, int precisionType, IntBuffer range, IntBuffer precision)
      Specified by:
      getShaderPrecisionFormat in class PGL
    • getVertexAttribfv

      public void getVertexAttribfv(int index, int pname, FloatBuffer params)
      Specified by:
      getVertexAttribfv in class PGL
    • getVertexAttribiv

      public void getVertexAttribiv(int index, int pname, IntBuffer params)
      Specified by:
      getVertexAttribiv in class PGL
    • getVertexAttribPointerv

      public void getVertexAttribPointerv(int index, int pname, ByteBuffer data)
      Specified by:
      getVertexAttribPointerv in class PGL
    • getUniformfv

      public void getUniformfv(int program, int location, FloatBuffer params)
      Specified by:
      getUniformfv in class PGL
    • getUniformiv

      public void getUniformiv(int program, int location, IntBuffer params)
      Specified by:
      getUniformiv in class PGL
    • isProgram

      public boolean isProgram(int program)
      Specified by:
      isProgram in class PGL
    • getProgramiv

      public void getProgramiv(int program, int pname, IntBuffer params)
      Specified by:
      getProgramiv in class PGL
    • getProgramInfoLog

      public String getProgramInfoLog(int program)
      Specified by:
      getProgramInfoLog in class PGL
    • scissor

      public void scissor(int x, int y, int w, int h)
      Specified by:
      scissor in class PGL
    • sampleCoverage

      public void sampleCoverage(float value, boolean invert)
      Specified by:
      sampleCoverage in class PGL
    • stencilFunc

      public void stencilFunc(int func, int ref, int mask)
      Specified by:
      stencilFunc in class PGL
    • stencilFuncSeparate

      public void stencilFuncSeparate(int face, int func, int ref, int mask)
      Specified by:
      stencilFuncSeparate in class PGL
    • stencilOp

      public void stencilOp(int sfail, int dpfail, int dppass)
      Specified by:
      stencilOp in class PGL
    • stencilOpSeparate

      public void stencilOpSeparate(int face, int sfail, int dpfail, int dppass)
      Specified by:
      stencilOpSeparate in class PGL
    • depthFunc

      public void depthFunc(int func)
      Specified by:
      depthFunc in class PGL
    • blendEquation

      public void blendEquation(int mode)
      Specified by:
      blendEquation in class PGL
    • blendEquationSeparate

      public void blendEquationSeparate(int modeRGB, int modeAlpha)
      Specified by:
      blendEquationSeparate in class PGL
    • blendFunc

      public void blendFunc(int src, int dst)
      Specified by:
      blendFunc in class PGL
    • blendFuncSeparate

      public void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
      Specified by:
      blendFuncSeparate in class PGL
    • blendColor

      public void blendColor(float red, float green, float blue, float alpha)
      Specified by:
      blendColor in class PGL
    • colorMask

      public void colorMask(boolean r, boolean g, boolean b, boolean a)
      Specified by:
      colorMask in class PGL
    • depthMask

      public void depthMask(boolean mask)
      Specified by:
      depthMask in class PGL
    • stencilMask

      public void stencilMask(int mask)
      Specified by:
      stencilMask in class PGL
    • stencilMaskSeparate

      public void stencilMaskSeparate(int face, int mask)
      Specified by:
      stencilMaskSeparate in class PGL
    • clearColor

      public void clearColor(float r, float g, float b, float a)
      Specified by:
      clearColor in class PGL
    • clearDepth

      public void clearDepth(float d)
      Specified by:
      clearDepth in class PGL
    • clearStencil

      public void clearStencil(int s)
      Specified by:
      clearStencil in class PGL
    • clear

      public void clear(int buf)
      Specified by:
      clear in class PGL
    • deleteFramebuffers

      public void deleteFramebuffers(int n, IntBuffer framebuffers)
      Specified by:
      deleteFramebuffers in class PGL
    • genFramebuffers

      public void genFramebuffers(int n, IntBuffer framebuffers)
      Specified by:
      genFramebuffers in class PGL
    • bindRenderbuffer

      public void bindRenderbuffer(int target, int renderbuffer)
      Specified by:
      bindRenderbuffer in class PGL
    • deleteRenderbuffers

      public void deleteRenderbuffers(int n, IntBuffer renderbuffers)
      Specified by:
      deleteRenderbuffers in class PGL
    • genRenderbuffers

      public void genRenderbuffers(int n, IntBuffer renderbuffers)
      Specified by:
      genRenderbuffers in class PGL
    • renderbufferStorage

      public void renderbufferStorage(int target, int internalFormat, int width, int height)
      Specified by:
      renderbufferStorage in class PGL
    • framebufferRenderbuffer

      public void framebufferRenderbuffer(int target, int attachment, int rbt, int renderbuffer)
      Specified by:
      framebufferRenderbuffer in class PGL
    • framebufferTexture2D

      public void framebufferTexture2D(int target, int attachment, int texTarget, int texture, int level)
      Specified by:
      framebufferTexture2D in class PGL
    • checkFramebufferStatus

      public int checkFramebufferStatus(int target)
      Specified by:
      checkFramebufferStatus in class PGL
    • isFramebuffer

      public boolean isFramebuffer(int framebuffer)
      Specified by:
      isFramebuffer in class PGL
    • getFramebufferAttachmentParameteriv

      public void getFramebufferAttachmentParameteriv(int target, int attachment, int name, IntBuffer params)
      Specified by:
      getFramebufferAttachmentParameteriv in class PGL
    • isRenderbuffer

      public boolean isRenderbuffer(int renderbuffer)
      Specified by:
      isRenderbuffer in class PGL
    • getRenderbufferParameteriv

      public void getRenderbufferParameteriv(int target, int name, IntBuffer params)
      Specified by:
      getRenderbufferParameteriv in class PGL
    • 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 class PGL
    • renderbufferStorageMultisample

      public void renderbufferStorageMultisample(int target, int samples, int format, int width, int height)
      Specified by:
      renderbufferStorageMultisample in class PGL
    • readBuffer

      public void readBuffer(int buf)
      Specified by:
      readBuffer in class PGL
    • drawBuffer

      public void drawBuffer(int buf)
      Specified by:
      drawBuffer in class PGL