Class PGLGraphics3D

java.lang.Object
processing.core.PImage
processing.core.PGraphics
processing.opengl.PGraphicsOpenGL
processing.opengl.PGraphics3D
processing.lwjgl.PGraphicsLWJGL3D
org.praxislive.video.pgl.PGLGraphics3D
All Implemented Interfaces:
Cloneable, processing.core.PConstants

public class PGLGraphics3D extends processing.lwjgl.PGraphicsLWJGL3D
  • Nested Class Summary

    Nested classes/interfaces inherited from class processing.lwjgl.PGraphicsLWJGL3D

    processing.lwjgl.PGraphicsLWJGL3D.GraphicsFactory

    Nested classes/interfaces inherited from class processing.opengl.PGraphicsOpenGL

    processing.opengl.PGraphicsOpenGL.AsyncPixelReader, processing.opengl.PGraphicsOpenGL.AttributeMap, processing.opengl.PGraphicsOpenGL.DepthSorter, processing.opengl.PGraphicsOpenGL.GLResourceFrameBuffer, processing.opengl.PGraphicsOpenGL.GLResourceShader, processing.opengl.PGraphicsOpenGL.GLResourceTexture, processing.opengl.PGraphicsOpenGL.GLResourceVertexBuffer, processing.opengl.PGraphicsOpenGL.IndexCache, processing.opengl.PGraphicsOpenGL.InGeometry, processing.opengl.PGraphicsOpenGL.Tessellator, processing.opengl.PGraphicsOpenGL.TessGeometry, processing.opengl.PGraphicsOpenGL.TexCache, processing.opengl.PGraphicsOpenGL.VertexAttribute

    Nested classes/interfaces inherited from class processing.core.PGraphics

    processing.core.PGraphics.AsyncImageSaver
  • Field Summary

    Fields inherited from class processing.opengl.PGraphicsOpenGL

    anisoSamplingSupported, asyncPixelReader, asyncPixelReaderInitialized, autoMipmapGenSupported, blendEqSupported, breakShape, bufLineAttrib, bufLineColor, bufLineIndex, bufLineVertex, bufPointAttrib, bufPointColor, bufPointIndex, bufPointVertex, bufPolyAmbient, bufPolyColor, bufPolyEmissive, bufPolyIndex, bufPolyNormal, bufPolyShininess, bufPolySpecular, bufPolyTexcoord, bufPolyVertex, camera, cameraAspect, cameraFar, cameraFOV, cameraInv, cameraInvStack, cameraNear, cameraStack, cameraX, cameraY, cameraZ, clip, clipRect, currentFramebuffer, currentLightFalloffConstant, currentLightFalloffLinear, currentLightFalloffQuadratic, currentLightSpecular, currentPG, defaultEdges, defCameraAspect, defCameraFar, defCameraFOV, defCameraNear, defCameraX, defCameraY, defCameraZ, defColorShader, defColorShaderFragURL, defColorShaderVertURL, defLightShader, defLightShaderFragURL, defLightShaderVertURL, defLineShader, defLineShaderFragURL, defLineShaderVertURL, defPointShader, defPointShaderFragURL, defPointShaderVertURL, defTexlightShader, defTexlightShaderFragURL, defTexlightShaderVertURL, defTextureShader, defTextureShaderFragURL, defTextureShaderVertURL, depthBits, drawBufferSupported, drawFramebuffer, drawing, EDGE_CLOSE, EDGE_MIDDLE, EDGE_SINGLE, EDGE_START, EDGE_STOP, eyeDist, FB_STACK_DEPTH, fboMultisampleSupported, fbStack, fbStackDepth, filterImage, filterTexture, floatBuffer, FLUSH_CONTINUOUSLY, FLUSH_WHEN_FULL, flushMode, fontMap, glModelview, glNormal, glParamsRead, glProjection, glProjmodelview, GLSL_VERSION, identity, IMMEDIATE, inGeo, INIT_INDEX_BUFFER_SIZE, INIT_VERTEX_BUFFER_SIZE, initialized, intBuffer, isDepthSortingEnabled, lastBlendMode, lastSmoothCall, lightAmbient, lightCount, lightDiffuse, lightFalloffCoefficients, lightNormal, lightPosition, lights, lightSpecular, lightSpotParameters, lightType, lineBuffersContext, lineBuffersCreated, lineShader, manipulatingCamera, maskShader, maskShaderFragURL, MATRIX_STACK_DEPTH, MAX_POINT_ACCURACY, maxAnisoAmount, maxSamples, maxTextureSize, MIN_POINT_ACCURACY, modelview, modelviewInv, modelviewInvStack, modelviewStack, modelviewStackDepth, multisampleFramebuffer, nativePixelBuffer, nativePixels, npotTexSupported, offscreenFramebuffer, offscreenMultisample, ongoingPixelTransfers, ongoingPixelTransfersIterable, OP_NONE, OP_READ, OP_WRITE, openContour, OPENGL_EXTENSIONS, OPENGL_RENDERER, OPENGL_VENDOR, OPENGL_VERSION, packedDepthStencilSupported, pgl, pixelBuffer, pixelsOp, pixOpChangedFB, POINT_ACCURACY_FACTOR, pointBuffersContext, pointBuffersCreated, pointShader, polyAttribs, polyBuffersContext, polyBuffersCreated, polyShader, projection, projectionStack, projectionStackDepth, projmodelview, ptexture, QUAD_POINT_SIGNS, readBufferSupported, readFramebuffer, RETAINED, sized, smoothCallCount, smoothDisabled, sorter, stencilBits, tessellator, tessGeo, texCache, texture, textureSampling, textureWrap, viewport

    Fields inherited from class processing.core.PGraphics

    A, AB, AG, ambientB, ambientColor, ambientG, ambientR, AR, asyncImageSaver, autoNormal, B, backgroundA, backgroundAi, backgroundAlpha, backgroundB, backgroundBi, backgroundColor, backgroundG, backgroundGi, backgroundR, backgroundRi, BEEN_LIT, bezierBasisInverse, bezierBasisMatrix, bezierDetail, bezierDrawMatrix, bezierInited, blendMode, cacheMap, calcA, calcAi, calcAlpha, calcB, calcBi, calcColor, calcG, calcGi, calcR, calcRi, colorMode, colorModeA, colorModeX, colorModeY, colorModeZ, cosLUT, curveBasisMatrix, curveDetail, curveDrawMatrix, curveInited, curveTightness, curveToBezierMatrix, curveVertexCount, curveVertices, DA, DB, DEFAULT_STROKE_CAP, DEFAULT_STROKE_JOIN, DEFAULT_STROKE_WEIGHT, DEFAULT_VERTICES, defaultFontName, DG, DR, EB, edge, EDGE, EG, ellipseMode, emissiveB, emissiveColor, emissiveG, emissiveR, ER, ERROR_BACKGROUND_IMAGE_FORMAT, ERROR_BACKGROUND_IMAGE_SIZE, ERROR_PUSHMATRIX_OVERFLOW, ERROR_PUSHMATRIX_UNDERFLOW, ERROR_TEXTFONT_NULL_PFONT, fill, fillA, fillAi, fillAlpha, fillB, fillBi, fillColor, fillG, fillGi, fillR, fillRi, G, HAS_NORMAL, hints, image, imageMode, NORMAL_MODE_AUTO, NORMAL_MODE_SHAPE, NORMAL_MODE_VERTEX, normalMode, normalX, normalY, normalZ, NX, NY, NZ, path, pixelCount, primaryGraphics, R, raw, reapplySettings, rectMode, SA, SB, setAmbient, settingsInited, SG, shape, shapeMode, SHINE, shininess, SINCOS_LENGTH, SINCOS_PRECISION, sinLUT, smooth, SPB, specularB, specularColor, specularG, specularR, SPG, sphereDetailU, sphereDetailV, sphereX, sphereY, sphereZ, SPR, SR, stroke, strokeA, strokeAi, strokeAlpha, strokeB, strokeBi, strokeCap, strokeColor, strokeG, strokeGi, strokeJoin, strokeR, strokeRi, strokeWeight, surface, SW, textAlign, textAlignY, textBreakCount, textBreakStart, textBreakStop, textBuffer, textFont, textLeading, textMode, textSize, textureImage, textureMode, textureU, textureV, textWidthBuffer, tint, tintA, tintAi, tintAlpha, tintB, tintBi, tintColor, tintG, tintGi, tintR, tintRi, TX, TY, TZ, U, V, VERTEX_FIELD_COUNT, vertexCount, vertices, VW, VX, VY, VZ, warnings

    Fields inherited from class processing.core.PImage

    ALPHA_MASK, BLUE_MASK, format, GREEN_MASK, height, loaded, modified, mx1, mx2, my1, my2, parent, pixelDensity, pixelHeight, pixels, pixelWidth, RED_MASK, width

    Fields inherited from interface processing.core.PConstants

    ADD, ALPHA, ALT, AMBIENT, ARC, ARGB, ARROW, BACKSPACE, BASELINE, BEVEL, BEZIER_VERTEX, BLEND, BLUR, BOTTOM, BOX, BREAK, BURN, CENTER, CHATTER, CHORD, CLAMP, CLOSE, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CURVE_VERTEX, CUSTOM, DARKEST, DEG_TO_RAD, DELETE, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_ASYNC_SAVEFRAME, DISABLE_BUFFER_READING, DISABLE_DEPTH_MASK, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_KEY_REPEAT, DISABLE_NATIVE_FONTS, DISABLE_OPENGL_ERRORS, DISABLE_OPTIMIZED_STROKE, DISABLE_STROKE_PERSPECTIVE, DISABLE_STROKE_PURE, DISABLE_TEXTURE_MIPMAPS, DODGE, DOWN, DXF, ELLIPSE, ENABLE_ASYNC_SAVEFRAME, ENABLE_BUFFER_READING, ENABLE_DEPTH_MASK, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_KEY_REPEAT, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_ERRORS, ENABLE_OPTIMIZED_STROKE, ENABLE_STROKE_PERSPECTIVE, ENABLE_STROKE_PURE, ENABLE_TEXTURE_MIPMAPS, ENTER, EPSILON, ERODE, ESC, EXCLUSION, FX2D, GIF, GRAY, GROUP, HALF_PI, HAND, HARD_LIGHT, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LANDSCAPE, LEFT, LIGHTEST, LINE, LINE_LOOP, LINE_STRIP, LINES, LINUX, MACOS, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MODELVIEW, MOVE, MULTIPLY, NORMAL, OPAQUE, OPEN, OPENGL, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, PIE, platformNames, POINT, POINTS, POLYGON, PORTRAIT, POSTERIZE, PROBLEM, PROJECT, PROJECTION, QUAD, QUAD_BEZIER_VERTEX, QUAD_STRIP, QUADRATIC_VERTEX, QUADS, QUARTER_PI, RAD_TO_DEG, RADIUS, RECT, REPEAT, REPLACE, RETURN, RGB, RIGHT, ROUND, SCREEN, SHAPE, SHIFT, SOFT_LIGHT, SPAN, SPHERE, SPOT, SQUARE, SUBTRACT, SVG, TAB, TARGA, TAU, TEXT, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP, VERTEX, WAIT, WHITESPACE, WINDOWS, X, Y, Z
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
     
    protected void
    colorCalc(float gray, float alpha)
     
    protected void
    colorCalc(float x, float y, float z, float a)
     
    protected processing.opengl.PGL
    createPGL(processing.opengl.PGraphicsOpenGL pg)
     
    processing.core.PSurface
     
    void
     
    void
     
     
    protected void
    readPixelsARGB(int[] pixels)
     
    void
    style(processing.core.PStyle s)
     
    protected void
    textLineImpl(char[] buffer, int start, int stop, float x, float y)
     

    Methods inherited from class processing.opengl.PGraphics3D

    begin2D, defaultCamera, defaultPerspective, end2D, is2D, is3D, isSupportedExtension, loadShapeImpl

    Methods inherited from class processing.opengl.PGraphicsOpenGL

    addTexture, addTexture, allocatePixels, ambientLight, ambientLight, applyMatrix, applyMatrix, applyMatrix, applyMatrix, applyMatrixImpl, applyProjection, applyProjection, arcImpl, attrib, attrib, attrib, attribColor, attribImpl, attribNormal, attribPosition, awaitAsyncSaveCompletion, backgroundImpl, backgroundImpl, beginBindFramebuffer, beginCamera, beginContour, beginOffscreenDraw, beginOnscreenDraw, beginPGL, beginPixelsOp, beginReadPixels, beginShape, bezierVertex, bezierVertex, bezierVertexImpl, bindFrontTexture, box, camera, camera, checkGLThread, checkSettings, checkTexture, clipImpl, completeAllPixelTransfers, completeFinishedPixelTransfers, copy, copy, createLineBuffers, createPointBuffers, createPolyBuffers, createPTexture, createShapeFamily, createShapePrimitive, curveVertex, curveVertex, curveVertexImpl, defaultSettings, deleteSurfaceTextures, diff, directionalLight, disableLighting, drawPixels, drawPTexture, drawTexture, drawTexture, ellipseImpl, enableLighting, endBindFramebuffer, endCamera, endContour, endOffscreenDraw, endOnscreenDraw, endPGL, endPixelsOp, endReadPixels, endShape, endShape, expandArraySize, fillFromCalc, filter, filter, filter, flush, flushLines, flushPixels, flushPoints, flushPolys, flushSortedPolys, frustum, get, getCache, getCurrentFB, getCurrentPG, getFontTexture, getFrameBuffer, getFrameBuffer, getGLParameters, getHint, getImpl, getLineShader, getMatrix, getMatrix, getPointShader, getPolyShader, getPrimaryPG, getPrimaryPGL, getTexture, getTexture, getTexture, handleTextSize, hint, initCache, initOffscreen, initPrimary, invRotate, invRotate, invScale, invScale, invTranslate, invTranslate, isGL, lightAmbient, lightDiffuse, lightFalloff, lightFalloff, lightNormal, lightPosition, lights, lightSpecular, lightSpecular, lightSpot, line, line, lineBufferContextIsOutdated, lineImpl, loadPixels, loadShader, loadShader, loadShape, loadTexture, loadTextureImpl, mask, matrixScale, modelX, modelY, modelZ, newAttributeMap, newInGeometry, newTessGeometry, newTexCache, noClip, noLightAmbient, noLightDiffuse, noLightFalloff, noLights, noLightSpecular, noLightSpot, nonOrthoProjection, nonZero, ortho, ortho, ortho, orthoProjection, perspective, perspective, point, point, pointBuffersContextIsOutdated, pointImpl, pointLight, polyBuffersContextIsOutdated, popFramebuffer, popMatrix, popProjection, popStyle, printCamera, printMatrix, printProjection, processImageBeforeAsyncSave, pushFramebuffer, pushMatrix, pushProjection, quad, quadraticVertex, quadraticVertex, quadraticVertexImpl, readPixels, rectImpl, removeCache, removeFontTexture, report, resetMatrix, resetProjection, resetShader, resetShader, resize, restartPGL, restoreGL, rotate, rotate, rotateImpl, rotateX, rotateY, rotateZ, same, saveImpl, scale, scale, scale, scaleImpl, screenX, screenX, screenXImpl, screenXImpl, screenY, screenY, screenYImpl, screenYImpl, screenZ, screenZImpl, screenZImpl, set, setCache, setCurrentPG, setCurrentPG, setFlushMode, setFontTexture, setFramebuffer, setGLSettings, setImpl, setMatrix, setMatrix, setParent, setPrimary, setProjection, setSize, setViewport, shader, shader, shape, shape, shearX, shearY, sphere, spotLight, strokeCap, strokeJoin, strokeWeight, swapOffscreenTextures, tessellate, tessellate, textAscent, textCharImpl, textCharModelImpl, textCharShapeImpl, textDescent, textModeCheck, textureSampling, textureWrap, textWidthImpl, translate, translate, translateImpl, triangle, unbindFrontTexture, unbindLineBuffers, unbindPointBuffers, unbindPolyBuffers, updateDisplay, updateGLModelview, updateGLNormal, updateGLProjection, updateGLProjmodelview, updateLineBuffers, updatePixelSize, updatePointBuffers, updatePolyBuffers, updateProjmodelview, updateTexture, updateTexture, updateTexture, vertex, vertex, vertex, vertex, vertexBreak, vertexImpl, wrapTexture, zero

    Methods inherited from class processing.core.PGraphics

    alpha, ambient, ambient, ambient, ambientFromCalc, applyMatrix, arc, arc, background, background, background, background, background, background, background, backgroundFromCalc, beginRaw, beginShape, bezier, bezier, bezierDetail, bezierInit, bezierInitCheck, bezierPoint, bezierTangent, bezierVertexCheck, bezierVertexCheck, blendMode, blue, box, brightness, circle, clear, clip, color, color, color, color, color, color, color, color, color, colorCalc, colorCalc, colorCalc, colorCalc, colorCalcARGB, colorMode, colorMode, colorMode, colorMode, createDefaultFont, createFont, createShape, createShape, createShape, curve, curve, curveDetail, curveInit, curveInitCheck, curvePoint, curveTangent, curveTightness, curveVertexCheck, curveVertexCheck, curveVertexSegment, curveVertexSegment, defaultFontOrDeath, defaultFontOrDeath, displayable, edge, ellipse, ellipseMode, emissive, emissive, emissive, emissiveFromCalc, endRaw, endShape, fill, fill, fill, fill, fill, fill, getMatrix, getRaw, getStyle, getStyle, green, haveRaw, hue, image, image, image, imageImpl, imageMode, is2X, lerpColor, lerpColor, loadShape, noFill, normal, noSmooth, noStroke, noTexture, noTint, pop, push, pushStyle, reapplySettings, rect, rect, rect, rectImpl, rectMode, red, saturation, save, setMatrix, setPath, shape, shape, shape, shapeMode, shininess, showDepthWarning, showDepthWarningXYZ, showException, showMethodWarning, showMissingWarning, showVariationWarning, showWarning, showWarning, smooth, smooth, specular, specular, specular, specularFromCalc, sphereDetail, sphereDetail, splineForward, square, stroke, stroke, stroke, stroke, stroke, stroke, strokeFromCalc, text, text, text, text, text, text, text, text, text, text, text, textAlign, textAlign, textCharModelImpl, textFont, textFont, textFontImpl, textLeading, textLineAlignImpl, textMode, textSentence, textSentenceBreak, textSize, textSizeImpl, texture, textureMode, textWidth, textWidth, textWidth, tint, tint, tint, tint, tint, tint, tintFromCalc, vertex, vertexCheck, vertexTexture

    Methods inherited from class processing.core.PImage

    blend, blend, blendColor, blurAlpha, blurARGB, blurRGB, buildBlurKernel, checkAlpha, clone, copy, dilate, erode, get, get, getImage, getModifiedX1, getModifiedX2, getModifiedY1, getModifiedY2, getNative, init, init, isLoaded, isModified, loadTGA, mask, saveTGA, set, setLoaded, setLoaded, setModified, setModified, updatePixels, updatePixels

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getContext

      public PGLContext getContext()
    • readPixelsARGB

      protected void readPixelsARGB(int[] pixels)
    • blendModeImpl

      protected void blendModeImpl()
      Overrides:
      blendModeImpl in class processing.opengl.PGraphicsOpenGL
    • textLineImpl

      protected void textLineImpl(char[] buffer, int start, int stop, float x, float y)
      Overrides:
      textLineImpl in class processing.opengl.PGraphicsOpenGL
    • beginDraw

      public void beginDraw()
      Overrides:
      beginDraw in class processing.opengl.PGraphicsOpenGL
    • endDraw

      public void endDraw()
      Overrides:
      endDraw in class processing.opengl.PGraphicsOpenGL
    • style

      public void style(processing.core.PStyle s)
      Overrides:
      style in class processing.core.PGraphics
    • colorCalc

      protected void colorCalc(float gray, float alpha)
      Overrides:
      colorCalc in class processing.core.PGraphics
    • colorCalc

      protected void colorCalc(float x, float y, float z, float a)
      Overrides:
      colorCalc in class processing.core.PGraphics
    • createPGL

      protected processing.opengl.PGL createPGL(processing.opengl.PGraphicsOpenGL pg)
      Overrides:
      createPGL in class processing.lwjgl.PGraphicsLWJGL3D
    • dispose

      public void dispose()
      Overrides:
      dispose in class processing.opengl.PGraphicsOpenGL
    • createSurface

      public processing.core.PSurface createSurface()
      Overrides:
      createSurface in class processing.lwjgl.PGraphicsLWJGL3D