javax.media.j3d
Class NoopPipeline

java.lang.Object
  extended by javax.media.j3d.Pipeline
      extended by javax.media.j3d.NoopPipeline

 class NoopPipeline
extends Pipeline

Concrete implementation of Pipeline class for the noop rendering pipeline.


Nested Class Summary
(package private) static class NoopPipeline.NoopContext
          Dummy context for noop pipeline
 
Nested classes/interfaces inherited from class javax.media.j3d.Pipeline
Pipeline.Type
 
Field Summary
private  boolean cgLibraryAvailable
           
 
Constructor Summary
protected NoopPipeline()
          Constructor for singleton NoopPipeline instance
 
Method Summary
(package private)  void accum(Context ctx, float value)
           
(package private)  void accumReturn(Context ctx)
           
(package private)  void activeTextureUnit(Context ctx, int texUnitIndex)
           
(package private)  void beginScene(Context ctx)
           
(package private)  ShaderError bindGLSLVertexAttrName(Context ctx, ShaderProgramId shaderProgramId, java.lang.String attrName, int attrIndex)
           
(package private)  void bindTexture2D(Context ctx, int objectId, boolean enable)
           
(package private)  void bindTexture3D(Context ctx, int objectId, boolean enable)
           
(package private)  void bindTextureCubeMap(Context ctx, int objectId, boolean enable)
           
(package private)  void buildGA(Context ctx, GeometryArrayRetained geo, int geo_type, boolean isNonUniformScale, boolean updateAlpha, float alpha, boolean ignoreVertexColors, int startVIndex, int vcount, int vformat, int texCoordSetCount, int[] texCoordSetMap, int texCoordSetMapLen, int[] texCoordSetMapOffset, int vertexAttrCount, int[] vertexAttrSizes, double[] xform, double[] nxform, float[] varray)
           
(package private)  void buildGAForByRef(Context ctx, GeometryArrayRetained geo, int geo_type, boolean isNonUniformScale, boolean updateAlpha, float alpha, boolean ignoreVertexColors, int vcount, int vformat, int vdefined, int coordIndex, float[] vfcoords, double[] vdcoords, int colorIndex, float[] cfdata, byte[] cbdata, int normalIndex, float[] ndata, int vertexAttrCount, int[] vertexAttrSizes, int[] vertexAttrIndex, float[][] vertexAttrData, int texcoordmaplength, int[] texcoordoffset, int[] texIndex, int texstride, java.lang.Object[] texCoords, double[] xform, double[] nxform)
           
(package private)  void buildIndexedGeometry(Context ctx, GeometryArrayRetained geo, int geo_type, boolean isNonUniformScale, boolean updateAlpha, float alpha, boolean ignoreVertexColors, int initialIndexIndex, int validIndexCount, int vertexCount, int vformat, int vertexAttrCount, int[] vertexAttrSizes, int texCoordSetCount, int[] texCoordSetMap, int texCoordSetMapLen, int[] texCoordSetMapOffset, double[] xform, double[] nxform, float[] varray, int[] indexCoord)
           
(package private)  void callDisplayList(Context ctx, int id, boolean isNonUniformScale)
           
(package private)  void cleanupRenderer()
           
(package private)  void clear(Context ctx, float r, float g, float b, boolean clearStencil)
           
(package private)  void clearAccum(Context ctx)
           
(package private)  ShaderError compileCgShader(Context ctx, ShaderId shaderId, java.lang.String program)
           
(package private)  ShaderError compileGLSLShader(Context ctx, ShaderId shaderId, java.lang.String program)
           
(package private)  ShaderError createCgShader(Context ctx, int shaderType, ShaderId[] shaderId)
           
(package private)  ShaderError createCgShaderProgram(Context ctx, ShaderProgramId[] shaderProgramId)
           
(package private)  DrawingSurfaceObject createDrawingSurfaceObject(Canvas3D cv)
           
(package private)  ShaderError createGLSLShader(Context ctx, int shaderType, ShaderId[] shaderId)
           
(package private)  ShaderError createGLSLShaderProgram(Context ctx, ShaderProgramId[] shaderProgramId)
           
(package private)  Context createNewContext(Canvas3D cv, long display, Drawable drawable, long fbConfig, Context shareCtx, boolean isSharedCtx, boolean offScreen, boolean glslLibraryAvailable, boolean cgLibraryAvailable)
           
(package private)  Drawable createOffScreenBuffer(Canvas3D cv, Context ctx, long display, long fbConfig, int width, int height)
           
(package private)  void createQueryContext(Canvas3D cv, long display, Drawable drawable, long fbConfig, boolean offScreen, int width, int height, boolean glslLibraryAvailable, boolean cgLibraryAvailable)
           
(package private)  void ctxUpdateEyeLightingEnable(Context ctx, boolean localEyeLightingEnable)
           
(package private)  boolean decal1stChildSetup(Context ctx)
           
(package private)  void decalNthChildSetup(Context ctx)
           
(package private)  void decalReset(Context ctx, boolean depthBufferEnable)
           
(package private)  ShaderError destroyCgShader(Context ctx, ShaderId shaderId)
           
(package private)  ShaderError destroyCgShaderProgram(Context ctx, ShaderProgramId shaderProgramId)
           
(package private)  void destroyContext(long display, Drawable drawable, Context ctx)
           
(package private)  ShaderError destroyGLSLShader(Context ctx, ShaderId shaderId)
           
(package private)  ShaderError destroyGLSLShaderProgram(Context ctx, ShaderProgramId shaderProgramId)
           
(package private)  void destroyOffScreenBuffer(Canvas3D cv, Context ctx, long display, long fbConfig, Drawable drawable)
           
(package private)  void disableFog(Context ctx)
           
(package private)  void disableGlobalAlpha(Context ctx, GeometryArrayRetained geo, int vformat, boolean useAlpha, boolean ignoreVertexColors)
           
(package private)  void disableModelClip(Context ctx)
           
(package private)  void endDisplayList(Context ctx)
           
(package private)  void endScene(Context ctx)
           
(package private)  void execute(Context ctx, GeometryArrayRetained geo, int geo_type, boolean isNonUniformScale, boolean useAlpha, boolean ignoreVertexColors, int startVIndex, int vcount, int vformat, int texCoordSetCount, int[] texCoordSetMap, int texCoordSetMapLen, int[] texCoordSetOffset, int numActiveTexUnitState, int vertexAttrCount, int[] vertexAttrSizes, float[] varray, float[] cdata, int cdirty)
           
(package private)  void executeIndexedGeometry(Context ctx, GeometryArrayRetained geo, int geo_type, boolean isNonUniformScale, boolean useAlpha, boolean ignoreVertexColors, int initialIndexIndex, int indexCount, int vertexCount, int vformat, int vertexAttrCount, int[] vertexAttrSizes, int texCoordSetCount, int[] texCoordSetMap, int texCoordSetMapLen, int[] texCoordSetOffset, int numActiveTexUnitState, float[] varray, float[] cdata, int cdirty, int[] indexCoord)
           
(package private)  void executeIndexedGeometryBuffer(Context ctx, GeometryArrayRetained geo, int geo_type, boolean isNonUniformScale, boolean useAlpha, boolean ignoreVertexColors, int initialIndexIndex, int indexCount, int vertexCount, int vformat, int texCoordSetCount, int[] texCoordSetMap, int texCoordSetMapLen, int[] texCoordSetOffset, int numActiveTexUnitState, java.lang.Object varray, float[] cdata, int cdirty, int[] indexCoord)
           
(package private)  void executeIndexedGeometryVA(Context ctx, GeometryArrayRetained geo, int geo_type, boolean isNonUniformScale, boolean ignoreVertexColors, int initialIndexIndex, int validIndexCount, int vertexCount, int vformat, int vdefined, float[] vfcoords, double[] vdcoords, float[] cfdata, byte[] cbdata, float[] ndata, int vertexAttrCount, int[] vertexAttrSizes, float[][] vertexAttrData, int texcoordmaplength, int[] texcoordoffset, int numActiveTexUnitState, int texstride, java.lang.Object[] texCoords, int cdirty, int[] indexCoord)
           
(package private)  void executeIndexedGeometryVABuffer(Context ctx, GeometryArrayRetained geo, int geo_type, boolean isNonUniformScale, boolean ignoreVertexColors, int initialIndexIndex, int validIndexCount, int vertexCount, int vformat, int vdefined, java.lang.Object vcoords, java.lang.Object cdataBuffer, float[] cfdata, byte[] cbdata, java.lang.Object normal, int vertexAttrCount, int[] vertexAttrSizes, java.lang.Object[] vertexAttrData, int texcoordmaplength, int[] texcoordoffset, int numActiveTexUnitState, int texstride, java.lang.Object[] texCoords, int cdirty, int[] indexCoord)
           
(package private)  void executeInterleavedBuffer(Context ctx, GeometryArrayRetained geo, int geo_type, boolean isNonUniformScale, boolean useAlpha, boolean ignoreVertexColors, int startVIndex, int vcount, int vformat, int texCoordSetCount, int[] texCoordSetMap, int texCoordSetMapLen, int[] texCoordSetOffset, int numActiveTexUnitState, java.lang.Object varray, float[] cdata, int cdirty)
           
(package private)  void executeRasterDepth(Context ctx, float posX, float posY, float posZ, int srcOffsetX, int srcOffsetY, int rasterWidth, int rasterHeight, int depthWidth, int depthHeight, int depthType, java.lang.Object depthData)
           
(package private)  void executeVA(Context ctx, GeometryArrayRetained geo, int geo_type, boolean isNonUniformScale, boolean ignoreVertexColors, int vcount, int vformat, int vdefined, int coordIndex, float[] vfcoords, double[] vdcoords, int colorIndex, float[] cfdata, byte[] cbdata, int normalIndex, float[] ndata, int vertexAttrCount, int[] vertexAttrSizes, int[] vertexAttrIndex, float[][] vertexAttrData, int texcoordmaplength, int[] texcoordoffset, int numActiveTexUnitState, int[] texIndex, int texstride, java.lang.Object[] texCoords, int cdirty)
           
(package private)  void executeVABuffer(Context ctx, GeometryArrayRetained geo, int geo_type, boolean isNonUniformScale, boolean ignoreVertexColors, int vcount, int vformat, int vdefined, int coordIndex, java.lang.Object vcoords, int colorIndex, java.lang.Object cdataBuffer, float[] cfdata, byte[] cbdata, int normalIndex, java.lang.Object ndata, int vertexAttrCount, int[] vertexAttrSizes, int[] vertexAttrIndex, java.lang.Object[] vertexAttrData, int texcoordmaplength, int[] texcoordoffset, int numActiveTexUnitState, int[] texIndex, int texstride, java.lang.Object[] texCoords, int cdirty)
           
(package private)  void freeD3DArray(GeometryArrayRetained geo, boolean deleteVB)
           
(package private)  void freeDisplayList(Context ctx, int id)
           
(package private)  void freeDrawingSurface(Canvas3D cv, DrawingSurfaceObject drawingSurfaceObject)
           
(package private)  void freeDrawingSurfaceNative(java.lang.Object o)
           
(package private)  void freeTexture(Context ctx, int id)
           
(package private)  long getAWT()
           
(package private)  java.awt.GraphicsConfiguration getBestConfiguration(GraphicsConfigTemplate3D gct, java.awt.GraphicsConfiguration[] gc)
           
(package private)  long getDisplay()
           
(package private)  long getFbConfig(GraphicsConfigInfo gcInfo)
           
(package private)  java.awt.GraphicsConfiguration getGraphicsConfig(java.awt.GraphicsConfiguration gconfig)
           
(package private)  int getMaximumLights()
           
(package private)  int getNumCtxLights(Context ctx)
           
(package private)  int getScreen(java.awt.GraphicsDevice graphicsDevice)
           
(package private)  int getStencilSize(Canvas3D cv)
           
(package private)  boolean hasDoubleBuffer(Canvas3D cv)
           
(package private)  boolean hasSceneAntialiasingAccum(Canvas3D cv)
           
(package private)  boolean hasSceneAntialiasingMultisample(Canvas3D cv)
           
(package private)  boolean hasStereo(Canvas3D cv)
           
(package private)  void initialize(Pipeline.Type pipelineType)
          Initialize the pipeline
(package private)  boolean initializeJ3D(boolean disableXinerama)
           
(package private)  boolean initTexturemapping(Context ctx, int texWidth, int texHeight, int objectId)
           
(package private)  boolean isCgLibraryAvailable()
          Returns true if the Cg library is loaded and available.
(package private)  boolean isGLSLLibraryAvailable()
          Returns true if the GLSL library is loaded and available.
(package private)  boolean isGraphicsConfigSupported(GraphicsConfigTemplate3D gct, java.awt.GraphicsConfiguration gc)
           
(package private)  ShaderError linkCgShaderProgram(Context ctx, ShaderProgramId shaderProgramId, ShaderId[] shaderIds)
           
(package private)  ShaderError linkGLSLShaderProgram(Context ctx, ShaderProgramId shaderProgramId, ShaderId[] shaderIds)
           
(package private)  void loadLibraries(int globalShadingLanguage)
          Load all of the required libraries
(package private)  void lookupCgShaderAttrNames(Context ctx, ShaderProgramId shaderProgramId, int numAttrNames, java.lang.String[] attrNames, ShaderAttrLoc[] locArr, int[] typeArr, int[] sizeArr, boolean[] isArrayArr)
           
(package private)  void lookupCgVertexAttrNames(Context ctx, ShaderProgramId shaderProgramId, int numAttrNames, java.lang.String[] attrNames, boolean[] errArr)
           
(package private)  void lookupGLSLShaderAttrNames(Context ctx, ShaderProgramId shaderProgramId, int numAttrNames, java.lang.String[] attrNames, ShaderAttrLoc[] locArr, int[] typeArr, int[] sizeArr, boolean[] isArrayArr)
           
(package private)  void newDisplayList(Context ctx, int displayListId)
           
(package private)  void readOffScreenBuffer(Canvas3D cv, Context ctx, int format, int type, java.lang.Object data, int width, int height)
           
(package private)  void readRaster(Context ctx, int type, int xSrcOffset, int ySrcOffset, int width, int height, int hCanvas, int imageDataType, int imageFormat, java.lang.Object imageBuffer, int depthFormat, java.lang.Object depthBuffer)
           
(package private)  void resetColoringAttributes(Context ctx, float r, float g, float b, float a, boolean enableLight)
           
(package private)  void resetLineAttributes(Context ctx)
           
(package private)  void resetPointAttributes(Context ctx)
           
(package private)  void resetPolygonAttributes(Context ctx)
           
(package private)  void resetRenderingAttributes(Context ctx, boolean depthBufferWriteEnableOverride, boolean depthBufferEnableOverride)
           
(package private)  void resetTexCoordGeneration(Context ctx)
           
(package private)  void resetTextureAttributes(Context ctx)
           
(package private)  void resetTextureNative(Context ctx, int texUnitIndex)
           
(package private)  void resetTransparency(Context ctx, int geometryType, int polygonMode, boolean lineAA, boolean pointAA)
           
(package private)  int resizeD3DCanvas(Canvas3D cv, Context ctx)
           
(package private)  void setBlendColor(Context ctx, float red, float green, float blue, float alpha)
           
(package private)  void setBlendFunc(Context ctx, int src, int dst)
           
(package private)  ShaderError setCgUniform1f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float value)
           
(package private)  ShaderError setCgUniform1fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  ShaderError setCgUniform1i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int value)
           
(package private)  ShaderError setCgUniform1iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
           
(package private)  ShaderError setCgUniform2f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
           
(package private)  ShaderError setCgUniform2fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  ShaderError setCgUniform2i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
           
(package private)  ShaderError setCgUniform2iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
           
(package private)  ShaderError setCgUniform3f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
           
(package private)  ShaderError setCgUniform3fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  ShaderError setCgUniform3i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
           
(package private)  ShaderError setCgUniform3iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
           
(package private)  ShaderError setCgUniform4f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
           
(package private)  ShaderError setCgUniform4fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  ShaderError setCgUniform4i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
           
(package private)  ShaderError setCgUniform4iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
           
(package private)  ShaderError setCgUniformMatrix3f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
           
(package private)  ShaderError setCgUniformMatrix3fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  ShaderError setCgUniformMatrix4f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
           
(package private)  ShaderError setCgUniformMatrix4fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  void setDepthBufferWriteEnable(Context ctx, boolean mode)
           
(package private)  void setFogEnableFlag(Context ctx, boolean enableFlag)
           
(package private)  void setFullSceneAntialiasing(Context ctx, boolean enable)
           
(package private)  void setGlobalAlpha(Context ctx, float alpha)
           
(package private)  ShaderError setGLSLUniform1f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float value)
           
(package private)  ShaderError setGLSLUniform1fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  ShaderError setGLSLUniform1i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int value)
           
(package private)  ShaderError setGLSLUniform1iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
           
(package private)  ShaderError setGLSLUniform2f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
           
(package private)  ShaderError setGLSLUniform2fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  ShaderError setGLSLUniform2i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
           
(package private)  ShaderError setGLSLUniform2iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
           
(package private)  ShaderError setGLSLUniform3f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
           
(package private)  ShaderError setGLSLUniform3fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  ShaderError setGLSLUniform3i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
           
(package private)  ShaderError setGLSLUniform3iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
           
(package private)  ShaderError setGLSLUniform4f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
           
(package private)  ShaderError setGLSLUniform4fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  ShaderError setGLSLUniform4i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
           
(package private)  ShaderError setGLSLUniform4iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
           
(package private)  ShaderError setGLSLUniformMatrix3f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
           
(package private)  ShaderError setGLSLUniformMatrix3fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  ShaderError setGLSLUniformMatrix4f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
           
(package private)  ShaderError setGLSLUniformMatrix4fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
           
(package private)  void setLightEnables(Context ctx, long enableMask, int maxLights)
           
(package private)  void setModelViewMatrix(Context ctx, double[] viewMatrix, double[] modelMatrix)
           
(package private)  void setProjectionMatrix(Context ctx, double[] projMatrix)
           
(package private)  void setRenderMode(Context ctx, int mode, boolean doubleBuffer)
           
(package private)  void setSceneAmbient(Context ctx, float red, float green, float blue)
           
(package private)  void setVertexFormat(Context ctx, GeometryArrayRetained geo, int vformat, boolean useAlpha, boolean ignoreVertexColors)
           
(package private)  void setViewport(Context ctx, int x, int y, int width, int height)
           
(package private)  int swapBuffers(Canvas3D cv, Context ctx, long dpy, Drawable drawable)
           
(package private)  void syncRender(Context ctx, boolean wait)
          This native method makes sure that the rendering for this canvas gets done now.
(package private)  void textureFillBackground(Context ctx, float texMinU, float texMaxU, float texMinV, float texMaxV, float mapMinX, float mapMaxX, float mapMinY, float mapMaxY, boolean useBiliearFilter)
           
(package private)  void textureFillRaster(Context ctx, float texMinU, float texMaxU, float texMinV, float texMaxV, float mapMinX, float mapMaxX, float mapMinY, float mapMaxY, float mapZ, float alpha, boolean useBiliearFilter)
           
(package private)  void texturemapping(Context ctx, int px, int py, int xmin, int ymin, int xmax, int ymax, int texWidth, int texHeight, int rasWidth, int format, int objectId, byte[] image, int winWidth, int winHeight)
           
(package private)  int toggleFullScreenMode(Canvas3D cv, Context ctx)
           
(package private)  void updateColoringAttributes(Context ctx, float dRed, float dGreen, float dBlue, float red, float green, float blue, float alpha, boolean lEnable, int shadeModel)
           
(package private)  void updateCombiner(Context ctx, int combineRgbMode, int combineAlphaMode, int[] combineRgbSrc, int[] combineAlphaSrc, int[] combineRgbFcn, int[] combineAlphaFcn, int combineRgbScale, int combineAlphaScale)
           
(package private)  void updateDirectionalLight(Context ctx, int lightSlot, float red, float green, float blue, float x, float y, float z)
           
(package private)  void updateExponentialFog(Context ctx, float red, float green, float blue, float density)
           
(package private)  void updateLinearFog(Context ctx, float red, float green, float blue, double fdist, double bdist)
           
(package private)  void updateLineAttributes(Context ctx, float lineWidth, int linePattern, int linePatternMask, int linePatternScaleFactor, boolean lineAntialiasing)
           
(package private)  void updateMaterial(Context ctx, float red, float green, float blue, float alpha, float ared, float agreen, float ablue, float ered, float egreen, float eblue, float dred, float dgreen, float dblue, float sred, float sgreen, float sblue, float shininess, int colorTarget, boolean enable)
           
(package private)  void updateMaterialColor(Context ctx, float r, float g, float b, float a)
           
(package private)  void updateModelClip(Context ctx, int planeNum, boolean enableFlag, double A, double B, double C, double D)
           
(package private)  void updatePointAttributes(Context ctx, float pointSize, boolean pointAntialiasing)
           
(package private)  void updatePointLight(Context ctx, int lightSlot, float red, float green, float blue, float ax, float ay, float az, float px, float py, float pz)
           
(package private)  void updatePolygonAttributes(Context ctx, int polygonMode, int cullFace, boolean backFaceNormalFlip, float polygonOffset, float polygonOffsetFactor)
           
(package private)  void updateRegisterCombiners(Context ctx, double[] transform, boolean isIdentity, int textureMode, int perspCorrectionMode, float red, float green, float blue, float alpha, int textureFormat, int combineRgbMode, int combineAlphaMode, int[] combineRgbSrc, int[] combineAlphaSrc, int[] combineRgbFcn, int[] combineAlphaFcn, int combineRgbScale, int combineAlphaScale)
           
(package private)  void updateRenderingAttributes(Context ctx, boolean depthBufferWriteEnableOverride, boolean depthBufferEnableOverride, boolean depthBufferEnable, boolean depthBufferWriteEnable, int depthTestFunction, float alphaTestValue, int alphaTestFunction, boolean ignoreVertexColors, boolean rasterOpEnable, int rasterOp, boolean userStencilAvailable, boolean stencilEnable, int stencilFailOp, int stencilZFailOp, int stencilZPassOp, int stencilFunction, int stencilReferenceValue, int stencilCompareMask, int stencilWriteMask)
           
(package private)  void updateSeparateSpecularColorEnable(Context ctx, boolean control)
           
(package private)  void updateSpotLight(Context ctx, int lightSlot, float red, float green, float blue, float ax, float ay, float az, float px, float py, float pz, float spreadAngle, float concentration, float dx, float dy, float dz)
           
(package private)  void updateTexCoordGeneration(Context ctx, boolean enable, int genMode, int format, float planeSx, float planeSy, float planeSz, float planeSw, float planeTx, float planeTy, float planeTz, float planeTw, float planeRx, float planeRy, float planeRz, float planeRw, float planeQx, float planeQy, float planeQz, float planeQw, double[] trans)
          This method updates the native context: trans contains eyeTovworld transform in d3d trans contains vworldToEye transform in ogl
(package private)  void updateTexture2DAnisotropicFilter(Context ctx, float degree)
           
(package private)  void updateTexture2DBoundary(Context ctx, int boundaryModeS, int boundaryModeT, float boundaryRed, float boundaryGreen, float boundaryBlue, float boundaryAlpha)
           
(package private)  void updateTexture2DFilter4Func(Context ctx, int numFilter4FuncPts, float[] filter4FuncPts)
           
(package private)  void updateTexture2DFilterModes(Context ctx, int minFilter, int magFilter)
           
(package private)  void updateTexture2DImage(Context ctx, int numLevels, int level, int textureFormat, int imageFormat, int width, int height, int boundaryWidth, int imageDataType, java.lang.Object data, boolean useAutoMipMap)
           
(package private)  void updateTexture2DLodOffset(Context ctx, float lodOffsetX, float lodOffsetY, float lodOffsetZ)
           
(package private)  void updateTexture2DLodRange(Context ctx, int baseLevel, int maximumLevel, float minimumLod, float maximumLod)
           
(package private)  void updateTexture2DSharpenFunc(Context ctx, int numSharpenTextureFuncPts, float[] sharpenTextureFuncPts)
           
(package private)  void updateTexture2DSubImage(Context ctx, int level, int xoffset, int yoffset, int textureFormat, int imageFormat, int imgXOffset, int imgYOffset, int tilew, int width, int height, int imageDataType, java.lang.Object data, boolean useAutoMipMap)
           
(package private)  void updateTexture3DAnisotropicFilter(Context ctx, float degree)
           
(package private)  void updateTexture3DBoundary(Context ctx, int boundaryModeS, int boundaryModeT, int boundaryModeR, float boundaryRed, float boundaryGreen, float boundaryBlue, float boundaryAlpha)
           
(package private)  void updateTexture3DFilter4Func(Context ctx, int numFilter4FuncPts, float[] filter4FuncPts)
           
(package private)  void updateTexture3DFilterModes(Context ctx, int minFilter, int magFilter)
           
(package private)  void updateTexture3DImage(Context ctx, int numLevels, int level, int textureFormat, int imageFormat, int width, int height, int depth, int boundaryWidth, int imageDataType, java.lang.Object imageData, boolean useAutoMipMap)
           
(package private)  void updateTexture3DLodOffset(Context ctx, float lodOffsetX, float lodOffsetY, float lodOffsetZ)
           
(package private)  void updateTexture3DLodRange(Context ctx, int baseLevel, int maximumLevel, float minimumLod, float maximumLod)
           
(package private)  void updateTexture3DSharpenFunc(Context ctx, int numSharpenTextureFuncPts, float[] sharpenTextureFuncPts)
           
(package private)  void updateTexture3DSubImage(Context ctx, int level, int xoffset, int yoffset, int zoffset, int textureFormat, int imageFormat, int imgXoffset, int imgYoffset, int imgZoffset, int tilew, int tileh, int width, int height, int depth, int imageTypeData, java.lang.Object imageData, boolean useAutoMipMap)
           
(package private)  void updateTextureAttributes(Context ctx, double[] transform, boolean isIdentity, int textureMode, int perspCorrectionMode, float red, float green, float blue, float alpha, int textureFormat)
           
(package private)  void updateTextureColorTable(Context ctx, int numComponents, int colorTableSize, int[] colorTable)
           
(package private)  void updateTextureCubeMapAnisotropicFilter(Context ctx, float degree)
           
(package private)  void updateTextureCubeMapBoundary(Context ctx, int boundaryModeS, int boundaryModeT, float boundaryRed, float boundaryGreen, float boundaryBlue, float boundaryAlpha)
           
(package private)  void updateTextureCubeMapFilter4Func(Context ctx, int numFilter4FuncPts, float[] filter4FuncPts)
           
(package private)  void updateTextureCubeMapFilterModes(Context ctx, int minFilter, int magFilter)
           
(package private)  void updateTextureCubeMapImage(Context ctx, int face, int numLevels, int level, int textureFormat, int imageFormat, int width, int height, int boundaryWidth, int imageDataType, java.lang.Object imageData, boolean useAutoMipMap)
           
(package private)  void updateTextureCubeMapLodOffset(Context ctx, float lodOffsetX, float lodOffsetY, float lodOffsetZ)
           
(package private)  void updateTextureCubeMapLodRange(Context ctx, int baseLevel, int maximumLevel, float minimumLod, float maximumLod)
           
(package private)  void updateTextureCubeMapSharpenFunc(Context ctx, int numSharpenTextureFuncPts, float[] sharpenTextureFuncPts)
           
(package private)  void updateTextureCubeMapSubImage(Context ctx, int face, int level, int xoffset, int yoffset, int textureFormat, int imageFormat, int imgXOffset, int imgYOffset, int tilew, int width, int height, int imageDataType, java.lang.Object imageData, boolean useAutoMipMap)
           
(package private)  void updateTextureUnitState(Context ctx, int unitIndex, boolean enableFlag)
           
(package private)  void updateTransparencyAttributes(Context ctx, float alpha, int geometryType, int polygonMode, boolean lineAA, boolean pointAA, int transparencyMode, int srcBlendFunction, int dstBlendFunction)
           
(package private)  ShaderError useCgShaderProgram(Context ctx, ShaderProgramId shaderProgramId)
           
(package private)  boolean useCtx(Context ctx, long display, Drawable drawable)
           
(package private)  ShaderError useGLSLShaderProgram(Context ctx, ShaderProgramId shaderProgramId)
           
(package private)  boolean validGraphicsMode()
           
 
Methods inherited from class javax.media.j3d.Pipeline
checkNativeBufferAccess, createPipeline, getPipeline, getPipelineName, getPipelineType, getRendererName, releaseCtx, useNativeOgl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cgLibraryAvailable

private boolean cgLibraryAvailable
Constructor Detail

NoopPipeline

protected NoopPipeline()
Constructor for singleton NoopPipeline instance

Method Detail

initialize

void initialize(Pipeline.Type pipelineType)
Initialize the pipeline

Overrides:
initialize in class Pipeline

loadLibraries

void loadLibraries(int globalShadingLanguage)
Load all of the required libraries

Specified by:
loadLibraries in class Pipeline

isCgLibraryAvailable

boolean isCgLibraryAvailable()
Returns true if the Cg library is loaded and available. Note that this does not necessarily mean that Cg is supported by the graphics card.

Specified by:
isCgLibraryAvailable in class Pipeline

isGLSLLibraryAvailable

boolean isGLSLLibraryAvailable()
Returns true if the GLSL library is loaded and available. Note that this does not necessarily mean that GLSL is supported by the graphics card.

Specified by:
isGLSLLibraryAvailable in class Pipeline

freeD3DArray

void freeD3DArray(GeometryArrayRetained geo,
                  boolean deleteVB)
Specified by:
freeD3DArray in class Pipeline

execute

void execute(Context ctx,
             GeometryArrayRetained geo,
             int geo_type,
             boolean isNonUniformScale,
             boolean useAlpha,
             boolean ignoreVertexColors,
             int startVIndex,
             int vcount,
             int vformat,
             int texCoordSetCount,
             int[] texCoordSetMap,
             int texCoordSetMapLen,
             int[] texCoordSetOffset,
             int numActiveTexUnitState,
             int vertexAttrCount,
             int[] vertexAttrSizes,
             float[] varray,
             float[] cdata,
             int cdirty)
Specified by:
execute in class Pipeline

executeVA

void executeVA(Context ctx,
               GeometryArrayRetained geo,
               int geo_type,
               boolean isNonUniformScale,
               boolean ignoreVertexColors,
               int vcount,
               int vformat,
               int vdefined,
               int coordIndex,
               float[] vfcoords,
               double[] vdcoords,
               int colorIndex,
               float[] cfdata,
               byte[] cbdata,
               int normalIndex,
               float[] ndata,
               int vertexAttrCount,
               int[] vertexAttrSizes,
               int[] vertexAttrIndex,
               float[][] vertexAttrData,
               int texcoordmaplength,
               int[] texcoordoffset,
               int numActiveTexUnitState,
               int[] texIndex,
               int texstride,
               java.lang.Object[] texCoords,
               int cdirty)
Specified by:
executeVA in class Pipeline

executeVABuffer

void executeVABuffer(Context ctx,
                     GeometryArrayRetained geo,
                     int geo_type,
                     boolean isNonUniformScale,
                     boolean ignoreVertexColors,
                     int vcount,
                     int vformat,
                     int vdefined,
                     int coordIndex,
                     java.lang.Object vcoords,
                     int colorIndex,
                     java.lang.Object cdataBuffer,
                     float[] cfdata,
                     byte[] cbdata,
                     int normalIndex,
                     java.lang.Object ndata,
                     int vertexAttrCount,
                     int[] vertexAttrSizes,
                     int[] vertexAttrIndex,
                     java.lang.Object[] vertexAttrData,
                     int texcoordmaplength,
                     int[] texcoordoffset,
                     int numActiveTexUnitState,
                     int[] texIndex,
                     int texstride,
                     java.lang.Object[] texCoords,
                     int cdirty)
Specified by:
executeVABuffer in class Pipeline

executeInterleavedBuffer

void executeInterleavedBuffer(Context ctx,
                              GeometryArrayRetained geo,
                              int geo_type,
                              boolean isNonUniformScale,
                              boolean useAlpha,
                              boolean ignoreVertexColors,
                              int startVIndex,
                              int vcount,
                              int vformat,
                              int texCoordSetCount,
                              int[] texCoordSetMap,
                              int texCoordSetMapLen,
                              int[] texCoordSetOffset,
                              int numActiveTexUnitState,
                              java.lang.Object varray,
                              float[] cdata,
                              int cdirty)
Specified by:
executeInterleavedBuffer in class Pipeline

setVertexFormat

void setVertexFormat(Context ctx,
                     GeometryArrayRetained geo,
                     int vformat,
                     boolean useAlpha,
                     boolean ignoreVertexColors)
Specified by:
setVertexFormat in class Pipeline

disableGlobalAlpha

void disableGlobalAlpha(Context ctx,
                        GeometryArrayRetained geo,
                        int vformat,
                        boolean useAlpha,
                        boolean ignoreVertexColors)
Specified by:
disableGlobalAlpha in class Pipeline

buildGA

void buildGA(Context ctx,
             GeometryArrayRetained geo,
             int geo_type,
             boolean isNonUniformScale,
             boolean updateAlpha,
             float alpha,
             boolean ignoreVertexColors,
             int startVIndex,
             int vcount,
             int vformat,
             int texCoordSetCount,
             int[] texCoordSetMap,
             int texCoordSetMapLen,
             int[] texCoordSetMapOffset,
             int vertexAttrCount,
             int[] vertexAttrSizes,
             double[] xform,
             double[] nxform,
             float[] varray)
Specified by:
buildGA in class Pipeline

buildGAForByRef

void buildGAForByRef(Context ctx,
                     GeometryArrayRetained geo,
                     int geo_type,
                     boolean isNonUniformScale,
                     boolean updateAlpha,
                     float alpha,
                     boolean ignoreVertexColors,
                     int vcount,
                     int vformat,
                     int vdefined,
                     int coordIndex,
                     float[] vfcoords,
                     double[] vdcoords,
                     int colorIndex,
                     float[] cfdata,
                     byte[] cbdata,
                     int normalIndex,
                     float[] ndata,
                     int vertexAttrCount,
                     int[] vertexAttrSizes,
                     int[] vertexAttrIndex,
                     float[][] vertexAttrData,
                     int texcoordmaplength,
                     int[] texcoordoffset,
                     int[] texIndex,
                     int texstride,
                     java.lang.Object[] texCoords,
                     double[] xform,
                     double[] nxform)
Specified by:
buildGAForByRef in class Pipeline

executeIndexedGeometry

void executeIndexedGeometry(Context ctx,
                            GeometryArrayRetained geo,
                            int geo_type,
                            boolean isNonUniformScale,
                            boolean useAlpha,
                            boolean ignoreVertexColors,
                            int initialIndexIndex,
                            int indexCount,
                            int vertexCount,
                            int vformat,
                            int vertexAttrCount,
                            int[] vertexAttrSizes,
                            int texCoordSetCount,
                            int[] texCoordSetMap,
                            int texCoordSetMapLen,
                            int[] texCoordSetOffset,
                            int numActiveTexUnitState,
                            float[] varray,
                            float[] cdata,
                            int cdirty,
                            int[] indexCoord)
Specified by:
executeIndexedGeometry in class Pipeline

executeIndexedGeometryBuffer

void executeIndexedGeometryBuffer(Context ctx,
                                  GeometryArrayRetained geo,
                                  int geo_type,
                                  boolean isNonUniformScale,
                                  boolean useAlpha,
                                  boolean ignoreVertexColors,
                                  int initialIndexIndex,
                                  int indexCount,
                                  int vertexCount,
                                  int vformat,
                                  int texCoordSetCount,
                                  int[] texCoordSetMap,
                                  int texCoordSetMapLen,
                                  int[] texCoordSetOffset,
                                  int numActiveTexUnitState,
                                  java.lang.Object varray,
                                  float[] cdata,
                                  int cdirty,
                                  int[] indexCoord)
Specified by:
executeIndexedGeometryBuffer in class Pipeline

executeIndexedGeometryVA

void executeIndexedGeometryVA(Context ctx,
                              GeometryArrayRetained geo,
                              int geo_type,
                              boolean isNonUniformScale,
                              boolean ignoreVertexColors,
                              int initialIndexIndex,
                              int validIndexCount,
                              int vertexCount,
                              int vformat,
                              int vdefined,
                              float[] vfcoords,
                              double[] vdcoords,
                              float[] cfdata,
                              byte[] cbdata,
                              float[] ndata,
                              int vertexAttrCount,
                              int[] vertexAttrSizes,
                              float[][] vertexAttrData,
                              int texcoordmaplength,
                              int[] texcoordoffset,
                              int numActiveTexUnitState,
                              int texstride,
                              java.lang.Object[] texCoords,
                              int cdirty,
                              int[] indexCoord)
Specified by:
executeIndexedGeometryVA in class Pipeline

executeIndexedGeometryVABuffer

void executeIndexedGeometryVABuffer(Context ctx,
                                    GeometryArrayRetained geo,
                                    int geo_type,
                                    boolean isNonUniformScale,
                                    boolean ignoreVertexColors,
                                    int initialIndexIndex,
                                    int validIndexCount,
                                    int vertexCount,
                                    int vformat,
                                    int vdefined,
                                    java.lang.Object vcoords,
                                    java.lang.Object cdataBuffer,
                                    float[] cfdata,
                                    byte[] cbdata,
                                    java.lang.Object normal,
                                    int vertexAttrCount,
                                    int[] vertexAttrSizes,
                                    java.lang.Object[] vertexAttrData,
                                    int texcoordmaplength,
                                    int[] texcoordoffset,
                                    int numActiveTexUnitState,
                                    int texstride,
                                    java.lang.Object[] texCoords,
                                    int cdirty,
                                    int[] indexCoord)
Specified by:
executeIndexedGeometryVABuffer in class Pipeline

buildIndexedGeometry

void buildIndexedGeometry(Context ctx,
                          GeometryArrayRetained geo,
                          int geo_type,
                          boolean isNonUniformScale,
                          boolean updateAlpha,
                          float alpha,
                          boolean ignoreVertexColors,
                          int initialIndexIndex,
                          int validIndexCount,
                          int vertexCount,
                          int vformat,
                          int vertexAttrCount,
                          int[] vertexAttrSizes,
                          int texCoordSetCount,
                          int[] texCoordSetMap,
                          int texCoordSetMapLen,
                          int[] texCoordSetMapOffset,
                          double[] xform,
                          double[] nxform,
                          float[] varray,
                          int[] indexCoord)
Specified by:
buildIndexedGeometry in class Pipeline

readRaster

void readRaster(Context ctx,
                int type,
                int xSrcOffset,
                int ySrcOffset,
                int width,
                int height,
                int hCanvas,
                int imageDataType,
                int imageFormat,
                java.lang.Object imageBuffer,
                int depthFormat,
                java.lang.Object depthBuffer)
Specified by:
readRaster in class Pipeline

setCgUniform1i

ShaderError setCgUniform1i(Context ctx,
                           ShaderProgramId shaderProgramId,
                           ShaderAttrLoc uniformLocation,
                           int value)
Specified by:
setCgUniform1i in class Pipeline

setCgUniform1f

ShaderError setCgUniform1f(Context ctx,
                           ShaderProgramId shaderProgramId,
                           ShaderAttrLoc uniformLocation,
                           float value)
Specified by:
setCgUniform1f in class Pipeline

setCgUniform2i

ShaderError setCgUniform2i(Context ctx,
                           ShaderProgramId shaderProgramId,
                           ShaderAttrLoc uniformLocation,
                           int[] value)
Specified by:
setCgUniform2i in class Pipeline

setCgUniform2f

ShaderError setCgUniform2f(Context ctx,
                           ShaderProgramId shaderProgramId,
                           ShaderAttrLoc uniformLocation,
                           float[] value)
Specified by:
setCgUniform2f in class Pipeline

setCgUniform3i

ShaderError setCgUniform3i(Context ctx,
                           ShaderProgramId shaderProgramId,
                           ShaderAttrLoc uniformLocation,
                           int[] value)
Specified by:
setCgUniform3i in class Pipeline

setCgUniform3f

ShaderError setCgUniform3f(Context ctx,
                           ShaderProgramId shaderProgramId,
                           ShaderAttrLoc uniformLocation,
                           float[] value)
Specified by:
setCgUniform3f in class Pipeline

setCgUniform4i

ShaderError setCgUniform4i(Context ctx,
                           ShaderProgramId shaderProgramId,
                           ShaderAttrLoc uniformLocation,
                           int[] value)
Specified by:
setCgUniform4i in class Pipeline

setCgUniform4f

ShaderError setCgUniform4f(Context ctx,
                           ShaderProgramId shaderProgramId,
                           ShaderAttrLoc uniformLocation,
                           float[] value)
Specified by:
setCgUniform4f in class Pipeline

setCgUniformMatrix3f

ShaderError setCgUniformMatrix3f(Context ctx,
                                 ShaderProgramId shaderProgramId,
                                 ShaderAttrLoc uniformLocation,
                                 float[] value)
Specified by:
setCgUniformMatrix3f in class Pipeline

setCgUniformMatrix4f

ShaderError setCgUniformMatrix4f(Context ctx,
                                 ShaderProgramId shaderProgramId,
                                 ShaderAttrLoc uniformLocation,
                                 float[] value)
Specified by:
setCgUniformMatrix4f in class Pipeline

setCgUniform1iArray

ShaderError setCgUniform1iArray(Context ctx,
                                ShaderProgramId shaderProgramId,
                                ShaderAttrLoc uniformLocation,
                                int numElements,
                                int[] value)
Specified by:
setCgUniform1iArray in class Pipeline

setCgUniform1fArray

ShaderError setCgUniform1fArray(Context ctx,
                                ShaderProgramId shaderProgramId,
                                ShaderAttrLoc uniformLocation,
                                int numElements,
                                float[] value)
Specified by:
setCgUniform1fArray in class Pipeline

setCgUniform2iArray

ShaderError setCgUniform2iArray(Context ctx,
                                ShaderProgramId shaderProgramId,
                                ShaderAttrLoc uniformLocation,
                                int numElements,
                                int[] value)
Specified by:
setCgUniform2iArray in class Pipeline

setCgUniform2fArray

ShaderError setCgUniform2fArray(Context ctx,
                                ShaderProgramId shaderProgramId,
                                ShaderAttrLoc uniformLocation,
                                int numElements,
                                float[] value)
Specified by:
setCgUniform2fArray in class Pipeline

setCgUniform3iArray

ShaderError setCgUniform3iArray(Context ctx,
                                ShaderProgramId shaderProgramId,
                                ShaderAttrLoc uniformLocation,
                                int numElements,
                                int[] value)
Specified by:
setCgUniform3iArray in class Pipeline

setCgUniform3fArray

ShaderError setCgUniform3fArray(Context ctx,
                                ShaderProgramId shaderProgramId,
                                ShaderAttrLoc uniformLocation,
                                int numElements,
                                float[] value)
Specified by:
setCgUniform3fArray in class Pipeline

setCgUniform4iArray

ShaderError setCgUniform4iArray(Context ctx,
                                ShaderProgramId shaderProgramId,
                                ShaderAttrLoc uniformLocation,
                                int numElements,
                                int[] value)
Specified by:
setCgUniform4iArray in class Pipeline

setCgUniform4fArray

ShaderError setCgUniform4fArray(Context ctx,
                                ShaderProgramId shaderProgramId,
                                ShaderAttrLoc uniformLocation,
                                int numElements,
                                float[] value)
Specified by:
setCgUniform4fArray in class Pipeline

setCgUniformMatrix3fArray

ShaderError setCgUniformMatrix3fArray(Context ctx,
                                      ShaderProgramId shaderProgramId,
                                      ShaderAttrLoc uniformLocation,
                                      int numElements,
                                      float[] value)
Specified by:
setCgUniformMatrix3fArray in class Pipeline

setCgUniformMatrix4fArray

ShaderError setCgUniformMatrix4fArray(Context ctx,
                                      ShaderProgramId shaderProgramId,
                                      ShaderAttrLoc uniformLocation,
                                      int numElements,
                                      float[] value)
Specified by:
setCgUniformMatrix4fArray in class Pipeline

createCgShader

ShaderError createCgShader(Context ctx,
                           int shaderType,
                           ShaderId[] shaderId)
Specified by:
createCgShader in class Pipeline

destroyCgShader

ShaderError destroyCgShader(Context ctx,
                            ShaderId shaderId)
Specified by:
destroyCgShader in class Pipeline

compileCgShader

ShaderError compileCgShader(Context ctx,
                            ShaderId shaderId,
                            java.lang.String program)
Specified by:
compileCgShader in class Pipeline

createCgShaderProgram

ShaderError createCgShaderProgram(Context ctx,
                                  ShaderProgramId[] shaderProgramId)
Specified by:
createCgShaderProgram in class Pipeline

destroyCgShaderProgram

ShaderError destroyCgShaderProgram(Context ctx,
                                   ShaderProgramId shaderProgramId)
Specified by:
destroyCgShaderProgram in class Pipeline

linkCgShaderProgram

ShaderError linkCgShaderProgram(Context ctx,
                                ShaderProgramId shaderProgramId,
                                ShaderId[] shaderIds)
Specified by:
linkCgShaderProgram in class Pipeline

lookupCgVertexAttrNames

void lookupCgVertexAttrNames(Context ctx,
                             ShaderProgramId shaderProgramId,
                             int numAttrNames,
                             java.lang.String[] attrNames,
                             boolean[] errArr)
Specified by:
lookupCgVertexAttrNames in class Pipeline

lookupCgShaderAttrNames

void lookupCgShaderAttrNames(Context ctx,
                             ShaderProgramId shaderProgramId,
                             int numAttrNames,
                             java.lang.String[] attrNames,
                             ShaderAttrLoc[] locArr,
                             int[] typeArr,
                             int[] sizeArr,
                             boolean[] isArrayArr)
Specified by:
lookupCgShaderAttrNames in class Pipeline

useCgShaderProgram

ShaderError useCgShaderProgram(Context ctx,
                               ShaderProgramId shaderProgramId)
Specified by:
useCgShaderProgram in class Pipeline

setGLSLUniform1i

ShaderError setGLSLUniform1i(Context ctx,
                             ShaderProgramId shaderProgramId,
                             ShaderAttrLoc uniformLocation,
                             int value)
Specified by:
setGLSLUniform1i in class Pipeline

setGLSLUniform1f

ShaderError setGLSLUniform1f(Context ctx,
                             ShaderProgramId shaderProgramId,
                             ShaderAttrLoc uniformLocation,
                             float value)
Specified by:
setGLSLUniform1f in class Pipeline

setGLSLUniform2i

ShaderError setGLSLUniform2i(Context ctx,
                             ShaderProgramId shaderProgramId,
                             ShaderAttrLoc uniformLocation,
                             int[] value)
Specified by:
setGLSLUniform2i in class Pipeline

setGLSLUniform2f

ShaderError setGLSLUniform2f(Context ctx,
                             ShaderProgramId shaderProgramId,
                             ShaderAttrLoc uniformLocation,
                             float[] value)
Specified by:
setGLSLUniform2f in class Pipeline

setGLSLUniform3i

ShaderError setGLSLUniform3i(Context ctx,
                             ShaderProgramId shaderProgramId,
                             ShaderAttrLoc uniformLocation,
                             int[] value)
Specified by:
setGLSLUniform3i in class Pipeline

setGLSLUniform3f

ShaderError setGLSLUniform3f(Context ctx,
                             ShaderProgramId shaderProgramId,
                             ShaderAttrLoc uniformLocation,
                             float[] value)
Specified by:
setGLSLUniform3f in class Pipeline

setGLSLUniform4i

ShaderError setGLSLUniform4i(Context ctx,
                             ShaderProgramId shaderProgramId,
                             ShaderAttrLoc uniformLocation,
                             int[] value)
Specified by:
setGLSLUniform4i in class Pipeline

setGLSLUniform4f

ShaderError setGLSLUniform4f(Context ctx,
                             ShaderProgramId shaderProgramId,
                             ShaderAttrLoc uniformLocation,
                             float[] value)
Specified by:
setGLSLUniform4f in class Pipeline

setGLSLUniformMatrix3f

ShaderError setGLSLUniformMatrix3f(Context ctx,
                                   ShaderProgramId shaderProgramId,
                                   ShaderAttrLoc uniformLocation,
                                   float[] value)
Specified by:
setGLSLUniformMatrix3f in class Pipeline

setGLSLUniformMatrix4f

ShaderError setGLSLUniformMatrix4f(Context ctx,
                                   ShaderProgramId shaderProgramId,
                                   ShaderAttrLoc uniformLocation,
                                   float[] value)
Specified by:
setGLSLUniformMatrix4f in class Pipeline

setGLSLUniform1iArray

ShaderError setGLSLUniform1iArray(Context ctx,
                                  ShaderProgramId shaderProgramId,
                                  ShaderAttrLoc uniformLocation,
                                  int numElements,
                                  int[] value)
Specified by:
setGLSLUniform1iArray in class Pipeline

setGLSLUniform1fArray

ShaderError setGLSLUniform1fArray(Context ctx,
                                  ShaderProgramId shaderProgramId,
                                  ShaderAttrLoc uniformLocation,
                                  int numElements,
                                  float[] value)
Specified by:
setGLSLUniform1fArray in class Pipeline

setGLSLUniform2iArray

ShaderError setGLSLUniform2iArray(Context ctx,
                                  ShaderProgramId shaderProgramId,
                                  ShaderAttrLoc uniformLocation,
                                  int numElements,
                                  int[] value)
Specified by:
setGLSLUniform2iArray in class Pipeline

setGLSLUniform2fArray

ShaderError setGLSLUniform2fArray(Context ctx,
                                  ShaderProgramId shaderProgramId,
                                  ShaderAttrLoc uniformLocation,
                                  int numElements,
                                  float[] value)
Specified by:
setGLSLUniform2fArray in class Pipeline

setGLSLUniform3iArray

ShaderError setGLSLUniform3iArray(Context ctx,
                                  ShaderProgramId shaderProgramId,
                                  ShaderAttrLoc uniformLocation,
                                  int numElements,
                                  int[] value)
Specified by:
setGLSLUniform3iArray in class Pipeline

setGLSLUniform3fArray

ShaderError setGLSLUniform3fArray(Context ctx,
                                  ShaderProgramId shaderProgramId,
                                  ShaderAttrLoc uniformLocation,
                                  int numElements,
                                  float[] value)
Specified by:
setGLSLUniform3fArray in class Pipeline

setGLSLUniform4iArray

ShaderError setGLSLUniform4iArray(Context ctx,
                                  ShaderProgramId shaderProgramId,
                                  ShaderAttrLoc uniformLocation,
                                  int numElements,
                                  int[] value)
Specified by:
setGLSLUniform4iArray in class Pipeline

setGLSLUniform4fArray

ShaderError setGLSLUniform4fArray(Context ctx,
                                  ShaderProgramId shaderProgramId,
                                  ShaderAttrLoc uniformLocation,
                                  int numElements,
                                  float[] value)
Specified by:
setGLSLUniform4fArray in class Pipeline

setGLSLUniformMatrix3fArray

ShaderError setGLSLUniformMatrix3fArray(Context ctx,
                                        ShaderProgramId shaderProgramId,
                                        ShaderAttrLoc uniformLocation,
                                        int numElements,
                                        float[] value)
Specified by:
setGLSLUniformMatrix3fArray in class Pipeline

setGLSLUniformMatrix4fArray

ShaderError setGLSLUniformMatrix4fArray(Context ctx,
                                        ShaderProgramId shaderProgramId,
                                        ShaderAttrLoc uniformLocation,
                                        int numElements,
                                        float[] value)
Specified by:
setGLSLUniformMatrix4fArray in class Pipeline

createGLSLShader

ShaderError createGLSLShader(Context ctx,
                             int shaderType,
                             ShaderId[] shaderId)
Specified by:
createGLSLShader in class Pipeline

destroyGLSLShader

ShaderError destroyGLSLShader(Context ctx,
                              ShaderId shaderId)
Specified by:
destroyGLSLShader in class Pipeline

compileGLSLShader

ShaderError compileGLSLShader(Context ctx,
                              ShaderId shaderId,
                              java.lang.String program)
Specified by:
compileGLSLShader in class Pipeline

createGLSLShaderProgram

ShaderError createGLSLShaderProgram(Context ctx,
                                    ShaderProgramId[] shaderProgramId)
Specified by:
createGLSLShaderProgram in class Pipeline

destroyGLSLShaderProgram

ShaderError destroyGLSLShaderProgram(Context ctx,
                                     ShaderProgramId shaderProgramId)
Specified by:
destroyGLSLShaderProgram in class Pipeline

linkGLSLShaderProgram

ShaderError linkGLSLShaderProgram(Context ctx,
                                  ShaderProgramId shaderProgramId,
                                  ShaderId[] shaderIds)
Specified by:
linkGLSLShaderProgram in class Pipeline

bindGLSLVertexAttrName

ShaderError bindGLSLVertexAttrName(Context ctx,
                                   ShaderProgramId shaderProgramId,
                                   java.lang.String attrName,
                                   int attrIndex)
Specified by:
bindGLSLVertexAttrName in class Pipeline

lookupGLSLShaderAttrNames

void lookupGLSLShaderAttrNames(Context ctx,
                               ShaderProgramId shaderProgramId,
                               int numAttrNames,
                               java.lang.String[] attrNames,
                               ShaderAttrLoc[] locArr,
                               int[] typeArr,
                               int[] sizeArr,
                               boolean[] isArrayArr)
Specified by:
lookupGLSLShaderAttrNames in class Pipeline

useGLSLShaderProgram

ShaderError useGLSLShaderProgram(Context ctx,
                                 ShaderProgramId shaderProgramId)
Specified by:
useGLSLShaderProgram in class Pipeline

cleanupRenderer

void cleanupRenderer()
Specified by:
cleanupRenderer in class Pipeline

updateColoringAttributes

void updateColoringAttributes(Context ctx,
                              float dRed,
                              float dGreen,
                              float dBlue,
                              float red,
                              float green,
                              float blue,
                              float alpha,
                              boolean lEnable,
                              int shadeModel)
Specified by:
updateColoringAttributes in class Pipeline

updateDirectionalLight

void updateDirectionalLight(Context ctx,
                            int lightSlot,
                            float red,
                            float green,
                            float blue,
                            float x,
                            float y,
                            float z)
Specified by:
updateDirectionalLight in class Pipeline

updatePointLight

void updatePointLight(Context ctx,
                      int lightSlot,
                      float red,
                      float green,
                      float blue,
                      float ax,
                      float ay,
                      float az,
                      float px,
                      float py,
                      float pz)
Specified by:
updatePointLight in class Pipeline

updateSpotLight

void updateSpotLight(Context ctx,
                     int lightSlot,
                     float red,
                     float green,
                     float blue,
                     float ax,
                     float ay,
                     float az,
                     float px,
                     float py,
                     float pz,
                     float spreadAngle,
                     float concentration,
                     float dx,
                     float dy,
                     float dz)
Specified by:
updateSpotLight in class Pipeline

updateExponentialFog

void updateExponentialFog(Context ctx,
                          float red,
                          float green,
                          float blue,
                          float density)
Specified by:
updateExponentialFog in class Pipeline

updateLinearFog

void updateLinearFog(Context ctx,
                     float red,
                     float green,
                     float blue,
                     double fdist,
                     double bdist)
Specified by:
updateLinearFog in class Pipeline

updateLineAttributes

void updateLineAttributes(Context ctx,
                          float lineWidth,
                          int linePattern,
                          int linePatternMask,
                          int linePatternScaleFactor,
                          boolean lineAntialiasing)
Specified by:
updateLineAttributes in class Pipeline

updateMaterial

void updateMaterial(Context ctx,
                    float red,
                    float green,
                    float blue,
                    float alpha,
                    float ared,
                    float agreen,
                    float ablue,
                    float ered,
                    float egreen,
                    float eblue,
                    float dred,
                    float dgreen,
                    float dblue,
                    float sred,
                    float sgreen,
                    float sblue,
                    float shininess,
                    int colorTarget,
                    boolean enable)
Specified by:
updateMaterial in class Pipeline

updateModelClip

void updateModelClip(Context ctx,
                     int planeNum,
                     boolean enableFlag,
                     double A,
                     double B,
                     double C,
                     double D)
Specified by:
updateModelClip in class Pipeline

updatePointAttributes

void updatePointAttributes(Context ctx,
                           float pointSize,
                           boolean pointAntialiasing)
Specified by:
updatePointAttributes in class Pipeline

updatePolygonAttributes

void updatePolygonAttributes(Context ctx,
                             int polygonMode,
                             int cullFace,
                             boolean backFaceNormalFlip,
                             float polygonOffset,
                             float polygonOffsetFactor)
Specified by:
updatePolygonAttributes in class Pipeline

updateRenderingAttributes

void updateRenderingAttributes(Context ctx,
                               boolean depthBufferWriteEnableOverride,
                               boolean depthBufferEnableOverride,
                               boolean depthBufferEnable,
                               boolean depthBufferWriteEnable,
                               int depthTestFunction,
                               float alphaTestValue,
                               int alphaTestFunction,
                               boolean ignoreVertexColors,
                               boolean rasterOpEnable,
                               int rasterOp,
                               boolean userStencilAvailable,
                               boolean stencilEnable,
                               int stencilFailOp,
                               int stencilZFailOp,
                               int stencilZPassOp,
                               int stencilFunction,
                               int stencilReferenceValue,
                               int stencilCompareMask,
                               int stencilWriteMask)
Specified by:
updateRenderingAttributes in class Pipeline

updateTexCoordGeneration

void updateTexCoordGeneration(Context ctx,
                              boolean enable,
                              int genMode,
                              int format,
                              float planeSx,
                              float planeSy,
                              float planeSz,
                              float planeSw,
                              float planeTx,
                              float planeTy,
                              float planeTz,
                              float planeTw,
                              float planeRx,
                              float planeRy,
                              float planeRz,
                              float planeRw,
                              float planeQx,
                              float planeQy,
                              float planeQz,
                              float planeQw,
                              double[] trans)
This method updates the native context: trans contains eyeTovworld transform in d3d trans contains vworldToEye transform in ogl

Specified by:
updateTexCoordGeneration in class Pipeline

updateTransparencyAttributes

void updateTransparencyAttributes(Context ctx,
                                  float alpha,
                                  int geometryType,
                                  int polygonMode,
                                  boolean lineAA,
                                  boolean pointAA,
                                  int transparencyMode,
                                  int srcBlendFunction,
                                  int dstBlendFunction)
Specified by:
updateTransparencyAttributes in class Pipeline

updateTextureAttributes

void updateTextureAttributes(Context ctx,
                             double[] transform,
                             boolean isIdentity,
                             int textureMode,
                             int perspCorrectionMode,
                             float red,
                             float green,
                             float blue,
                             float alpha,
                             int textureFormat)
Specified by:
updateTextureAttributes in class Pipeline

updateRegisterCombiners

void updateRegisterCombiners(Context ctx,
                             double[] transform,
                             boolean isIdentity,
                             int textureMode,
                             int perspCorrectionMode,
                             float red,
                             float green,
                             float blue,
                             float alpha,
                             int textureFormat,
                             int combineRgbMode,
                             int combineAlphaMode,
                             int[] combineRgbSrc,
                             int[] combineAlphaSrc,
                             int[] combineRgbFcn,
                             int[] combineAlphaFcn,
                             int combineRgbScale,
                             int combineAlphaScale)
Specified by:
updateRegisterCombiners in class Pipeline

updateTextureColorTable

void updateTextureColorTable(Context ctx,
                             int numComponents,
                             int colorTableSize,
                             int[] colorTable)
Specified by:
updateTextureColorTable in class Pipeline

updateCombiner

void updateCombiner(Context ctx,
                    int combineRgbMode,
                    int combineAlphaMode,
                    int[] combineRgbSrc,
                    int[] combineAlphaSrc,
                    int[] combineRgbFcn,
                    int[] combineAlphaFcn,
                    int combineRgbScale,
                    int combineAlphaScale)
Specified by:
updateCombiner in class Pipeline

updateTextureUnitState

void updateTextureUnitState(Context ctx,
                            int unitIndex,
                            boolean enableFlag)
Specified by:
updateTextureUnitState in class Pipeline

bindTexture2D

void bindTexture2D(Context ctx,
                   int objectId,
                   boolean enable)
Specified by:
bindTexture2D in class Pipeline

updateTexture2DImage

void updateTexture2DImage(Context ctx,
                          int numLevels,
                          int level,
                          int textureFormat,
                          int imageFormat,
                          int width,
                          int height,
                          int boundaryWidth,
                          int imageDataType,
                          java.lang.Object data,
                          boolean useAutoMipMap)
Specified by:
updateTexture2DImage in class Pipeline

updateTexture2DSubImage

void updateTexture2DSubImage(Context ctx,
                             int level,
                             int xoffset,
                             int yoffset,
                             int textureFormat,
                             int imageFormat,
                             int imgXOffset,
                             int imgYOffset,
                             int tilew,
                             int width,
                             int height,
                             int imageDataType,
                             java.lang.Object data,
                             boolean useAutoMipMap)
Specified by:
updateTexture2DSubImage in class Pipeline

updateTexture2DLodRange

void updateTexture2DLodRange(Context ctx,
                             int baseLevel,
                             int maximumLevel,
                             float minimumLod,
                             float maximumLod)
Specified by:
updateTexture2DLodRange in class Pipeline

updateTexture2DLodOffset

void updateTexture2DLodOffset(Context ctx,
                              float lodOffsetX,
                              float lodOffsetY,
                              float lodOffsetZ)
Specified by:
updateTexture2DLodOffset in class Pipeline

updateTexture2DBoundary

void updateTexture2DBoundary(Context ctx,
                             int boundaryModeS,
                             int boundaryModeT,
                             float boundaryRed,
                             float boundaryGreen,
                             float boundaryBlue,
                             float boundaryAlpha)
Specified by:
updateTexture2DBoundary in class Pipeline

updateTexture2DFilterModes

void updateTexture2DFilterModes(Context ctx,
                                int minFilter,
                                int magFilter)
Specified by:
updateTexture2DFilterModes in class Pipeline

updateTexture2DSharpenFunc

void updateTexture2DSharpenFunc(Context ctx,
                                int numSharpenTextureFuncPts,
                                float[] sharpenTextureFuncPts)
Specified by:
updateTexture2DSharpenFunc in class Pipeline

updateTexture2DFilter4Func

void updateTexture2DFilter4Func(Context ctx,
                                int numFilter4FuncPts,
                                float[] filter4FuncPts)
Specified by:
updateTexture2DFilter4Func in class Pipeline

updateTexture2DAnisotropicFilter

void updateTexture2DAnisotropicFilter(Context ctx,
                                      float degree)
Specified by:
updateTexture2DAnisotropicFilter in class Pipeline

bindTexture3D

void bindTexture3D(Context ctx,
                   int objectId,
                   boolean enable)
Specified by:
bindTexture3D in class Pipeline

updateTexture3DImage

void updateTexture3DImage(Context ctx,
                          int numLevels,
                          int level,
                          int textureFormat,
                          int imageFormat,
                          int width,
                          int height,
                          int depth,
                          int boundaryWidth,
                          int imageDataType,
                          java.lang.Object imageData,
                          boolean useAutoMipMap)
Specified by:
updateTexture3DImage in class Pipeline

updateTexture3DSubImage

void updateTexture3DSubImage(Context ctx,
                             int level,
                             int xoffset,
                             int yoffset,
                             int zoffset,
                             int textureFormat,
                             int imageFormat,
                             int imgXoffset,
                             int imgYoffset,
                             int imgZoffset,
                             int tilew,
                             int tileh,
                             int width,
                             int height,
                             int depth,
                             int imageTypeData,
                             java.lang.Object imageData,
                             boolean useAutoMipMap)
Specified by:
updateTexture3DSubImage in class Pipeline

updateTexture3DLodRange

void updateTexture3DLodRange(Context ctx,
                             int baseLevel,
                             int maximumLevel,
                             float minimumLod,
                             float maximumLod)
Specified by:
updateTexture3DLodRange in class Pipeline

updateTexture3DLodOffset

void updateTexture3DLodOffset(Context ctx,
                              float lodOffsetX,
                              float lodOffsetY,
                              float lodOffsetZ)
Specified by:
updateTexture3DLodOffset in class Pipeline

updateTexture3DBoundary

void updateTexture3DBoundary(Context ctx,
                             int boundaryModeS,
                             int boundaryModeT,
                             int boundaryModeR,
                             float boundaryRed,
                             float boundaryGreen,
                             float boundaryBlue,
                             float boundaryAlpha)
Specified by:
updateTexture3DBoundary in class Pipeline

updateTexture3DFilterModes

void updateTexture3DFilterModes(Context ctx,
                                int minFilter,
                                int magFilter)
Specified by:
updateTexture3DFilterModes in class Pipeline

updateTexture3DSharpenFunc

void updateTexture3DSharpenFunc(Context ctx,
                                int numSharpenTextureFuncPts,
                                float[] sharpenTextureFuncPts)
Specified by:
updateTexture3DSharpenFunc in class Pipeline

updateTexture3DFilter4Func

void updateTexture3DFilter4Func(Context ctx,
                                int numFilter4FuncPts,
                                float[] filter4FuncPts)
Specified by:
updateTexture3DFilter4Func in class Pipeline

updateTexture3DAnisotropicFilter

void updateTexture3DAnisotropicFilter(Context ctx,
                                      float degree)
Specified by:
updateTexture3DAnisotropicFilter in class Pipeline

bindTextureCubeMap

void bindTextureCubeMap(Context ctx,
                        int objectId,
                        boolean enable)
Specified by:
bindTextureCubeMap in class Pipeline

updateTextureCubeMapImage

void updateTextureCubeMapImage(Context ctx,
                               int face,
                               int numLevels,
                               int level,
                               int textureFormat,
                               int imageFormat,
                               int width,
                               int height,
                               int boundaryWidth,
                               int imageDataType,
                               java.lang.Object imageData,
                               boolean useAutoMipMap)
Specified by:
updateTextureCubeMapImage in class Pipeline

updateTextureCubeMapSubImage

void updateTextureCubeMapSubImage(Context ctx,
                                  int face,
                                  int level,
                                  int xoffset,
                                  int yoffset,
                                  int textureFormat,
                                  int imageFormat,
                                  int imgXOffset,
                                  int imgYOffset,
                                  int tilew,
                                  int width,
                                  int height,
                                  int imageDataType,
                                  java.lang.Object imageData,
                                  boolean useAutoMipMap)
Specified by:
updateTextureCubeMapSubImage in class Pipeline

updateTextureCubeMapLodRange

void updateTextureCubeMapLodRange(Context ctx,
                                  int baseLevel,
                                  int maximumLevel,
                                  float minimumLod,
                                  float maximumLod)
Specified by:
updateTextureCubeMapLodRange in class Pipeline

updateTextureCubeMapLodOffset

void updateTextureCubeMapLodOffset(Context ctx,
                                   float lodOffsetX,
                                   float lodOffsetY,
                                   float lodOffsetZ)
Specified by:
updateTextureCubeMapLodOffset in class Pipeline

updateTextureCubeMapBoundary

void updateTextureCubeMapBoundary(Context ctx,
                                  int boundaryModeS,
                                  int boundaryModeT,
                                  float boundaryRed,
                                  float boundaryGreen,
                                  float boundaryBlue,
                                  float boundaryAlpha)
Specified by:
updateTextureCubeMapBoundary in class Pipeline

updateTextureCubeMapFilterModes

void updateTextureCubeMapFilterModes(Context ctx,
                                     int minFilter,
                                     int magFilter)
Specified by:
updateTextureCubeMapFilterModes in class Pipeline

updateTextureCubeMapSharpenFunc

void updateTextureCubeMapSharpenFunc(Context ctx,
                                     int numSharpenTextureFuncPts,
                                     float[] sharpenTextureFuncPts)
Specified by:
updateTextureCubeMapSharpenFunc in class Pipeline

updateTextureCubeMapFilter4Func

void updateTextureCubeMapFilter4Func(Context ctx,
                                     int numFilter4FuncPts,
                                     float[] filter4FuncPts)
Specified by:
updateTextureCubeMapFilter4Func in class Pipeline

updateTextureCubeMapAnisotropicFilter

void updateTextureCubeMapAnisotropicFilter(Context ctx,
                                           float degree)
Specified by:
updateTextureCubeMapAnisotropicFilter in class Pipeline

getAWT

long getAWT()
Specified by:
getAWT in class Pipeline

initializeJ3D

boolean initializeJ3D(boolean disableXinerama)
Specified by:
initializeJ3D in class Pipeline

getMaximumLights

int getMaximumLights()
Specified by:
getMaximumLights in class Pipeline

createNewContext

Context createNewContext(Canvas3D cv,
                         long display,
                         Drawable drawable,
                         long fbConfig,
                         Context shareCtx,
                         boolean isSharedCtx,
                         boolean offScreen,
                         boolean glslLibraryAvailable,
                         boolean cgLibraryAvailable)
Specified by:
createNewContext in class Pipeline

createQueryContext

void createQueryContext(Canvas3D cv,
                        long display,
                        Drawable drawable,
                        long fbConfig,
                        boolean offScreen,
                        int width,
                        int height,
                        boolean glslLibraryAvailable,
                        boolean cgLibraryAvailable)
Specified by:
createQueryContext in class Pipeline

createOffScreenBuffer

Drawable createOffScreenBuffer(Canvas3D cv,
                               Context ctx,
                               long display,
                               long fbConfig,
                               int width,
                               int height)
Specified by:
createOffScreenBuffer in class Pipeline

destroyOffScreenBuffer

void destroyOffScreenBuffer(Canvas3D cv,
                            Context ctx,
                            long display,
                            long fbConfig,
                            Drawable drawable)
Specified by:
destroyOffScreenBuffer in class Pipeline

readOffScreenBuffer

void readOffScreenBuffer(Canvas3D cv,
                         Context ctx,
                         int format,
                         int type,
                         java.lang.Object data,
                         int width,
                         int height)
Specified by:
readOffScreenBuffer in class Pipeline

swapBuffers

int swapBuffers(Canvas3D cv,
                Context ctx,
                long dpy,
                Drawable drawable)
Specified by:
swapBuffers in class Pipeline

resizeD3DCanvas

int resizeD3DCanvas(Canvas3D cv,
                    Context ctx)
Specified by:
resizeD3DCanvas in class Pipeline

toggleFullScreenMode

int toggleFullScreenMode(Canvas3D cv,
                         Context ctx)
Specified by:
toggleFullScreenMode in class Pipeline

updateMaterialColor

void updateMaterialColor(Context ctx,
                         float r,
                         float g,
                         float b,
                         float a)
Specified by:
updateMaterialColor in class Pipeline

destroyContext

void destroyContext(long display,
                    Drawable drawable,
                    Context ctx)
Specified by:
destroyContext in class Pipeline

accum

void accum(Context ctx,
           float value)
Specified by:
accum in class Pipeline

accumReturn

void accumReturn(Context ctx)
Specified by:
accumReturn in class Pipeline

clearAccum

void clearAccum(Context ctx)
Specified by:
clearAccum in class Pipeline

getNumCtxLights

int getNumCtxLights(Context ctx)
Specified by:
getNumCtxLights in class Pipeline

decal1stChildSetup

boolean decal1stChildSetup(Context ctx)
Specified by:
decal1stChildSetup in class Pipeline

decalNthChildSetup

void decalNthChildSetup(Context ctx)
Specified by:
decalNthChildSetup in class Pipeline

decalReset

void decalReset(Context ctx,
                boolean depthBufferEnable)
Specified by:
decalReset in class Pipeline

ctxUpdateEyeLightingEnable

void ctxUpdateEyeLightingEnable(Context ctx,
                                boolean localEyeLightingEnable)
Specified by:
ctxUpdateEyeLightingEnable in class Pipeline

setBlendColor

void setBlendColor(Context ctx,
                   float red,
                   float green,
                   float blue,
                   float alpha)
Specified by:
setBlendColor in class Pipeline

setBlendFunc

void setBlendFunc(Context ctx,
                  int src,
                  int dst)
Specified by:
setBlendFunc in class Pipeline

setFogEnableFlag

void setFogEnableFlag(Context ctx,
                      boolean enableFlag)
Specified by:
setFogEnableFlag in class Pipeline

setFullSceneAntialiasing

void setFullSceneAntialiasing(Context ctx,
                              boolean enable)
Specified by:
setFullSceneAntialiasing in class Pipeline

setGlobalAlpha

void setGlobalAlpha(Context ctx,
                    float alpha)
Specified by:
setGlobalAlpha in class Pipeline

updateSeparateSpecularColorEnable

void updateSeparateSpecularColorEnable(Context ctx,
                                       boolean control)
Specified by:
updateSeparateSpecularColorEnable in class Pipeline

beginScene

void beginScene(Context ctx)
Specified by:
beginScene in class Pipeline

endScene

void endScene(Context ctx)
Specified by:
endScene in class Pipeline

validGraphicsMode

boolean validGraphicsMode()
Specified by:
validGraphicsMode in class Pipeline

setLightEnables

void setLightEnables(Context ctx,
                     long enableMask,
                     int maxLights)
Specified by:
setLightEnables in class Pipeline

setSceneAmbient

void setSceneAmbient(Context ctx,
                     float red,
                     float green,
                     float blue)
Specified by:
setSceneAmbient in class Pipeline

disableFog

void disableFog(Context ctx)
Specified by:
disableFog in class Pipeline

disableModelClip

void disableModelClip(Context ctx)
Specified by:
disableModelClip in class Pipeline

resetRenderingAttributes

void resetRenderingAttributes(Context ctx,
                              boolean depthBufferWriteEnableOverride,
                              boolean depthBufferEnableOverride)
Specified by:
resetRenderingAttributes in class Pipeline

resetTextureNative

void resetTextureNative(Context ctx,
                        int texUnitIndex)
Specified by:
resetTextureNative in class Pipeline

activeTextureUnit

void activeTextureUnit(Context ctx,
                       int texUnitIndex)
Specified by:
activeTextureUnit in class Pipeline

resetTexCoordGeneration

void resetTexCoordGeneration(Context ctx)
Specified by:
resetTexCoordGeneration in class Pipeline

resetTextureAttributes

void resetTextureAttributes(Context ctx)
Specified by:
resetTextureAttributes in class Pipeline

resetPolygonAttributes

void resetPolygonAttributes(Context ctx)
Specified by:
resetPolygonAttributes in class Pipeline

resetLineAttributes

void resetLineAttributes(Context ctx)
Specified by:
resetLineAttributes in class Pipeline

resetPointAttributes

void resetPointAttributes(Context ctx)
Specified by:
resetPointAttributes in class Pipeline

resetTransparency

void resetTransparency(Context ctx,
                       int geometryType,
                       int polygonMode,
                       boolean lineAA,
                       boolean pointAA)
Specified by:
resetTransparency in class Pipeline

resetColoringAttributes

void resetColoringAttributes(Context ctx,
                             float r,
                             float g,
                             float b,
                             float a,
                             boolean enableLight)
Specified by:
resetColoringAttributes in class Pipeline

syncRender

void syncRender(Context ctx,
                boolean wait)
This native method makes sure that the rendering for this canvas gets done now.

Specified by:
syncRender in class Pipeline

useCtx

boolean useCtx(Context ctx,
               long display,
               Drawable drawable)
Specified by:
useCtx in class Pipeline

clear

void clear(Context ctx,
           float r,
           float g,
           float b,
           boolean clearStencil)
Specified by:
clear in class Pipeline

textureFillBackground

void textureFillBackground(Context ctx,
                           float texMinU,
                           float texMaxU,
                           float texMinV,
                           float texMaxV,
                           float mapMinX,
                           float mapMaxX,
                           float mapMinY,
                           float mapMaxY,
                           boolean useBiliearFilter)
Specified by:
textureFillBackground in class Pipeline

textureFillRaster

void textureFillRaster(Context ctx,
                       float texMinU,
                       float texMaxU,
                       float texMinV,
                       float texMaxV,
                       float mapMinX,
                       float mapMaxX,
                       float mapMinY,
                       float mapMaxY,
                       float mapZ,
                       float alpha,
                       boolean useBiliearFilter)
Specified by:
textureFillRaster in class Pipeline

executeRasterDepth

void executeRasterDepth(Context ctx,
                        float posX,
                        float posY,
                        float posZ,
                        int srcOffsetX,
                        int srcOffsetY,
                        int rasterWidth,
                        int rasterHeight,
                        int depthWidth,
                        int depthHeight,
                        int depthType,
                        java.lang.Object depthData)
Specified by:
executeRasterDepth in class Pipeline

setModelViewMatrix

void setModelViewMatrix(Context ctx,
                        double[] viewMatrix,
                        double[] modelMatrix)
Specified by:
setModelViewMatrix in class Pipeline

setProjectionMatrix

void setProjectionMatrix(Context ctx,
                         double[] projMatrix)
Specified by:
setProjectionMatrix in class Pipeline

setViewport

void setViewport(Context ctx,
                 int x,
                 int y,
                 int width,
                 int height)
Specified by:
setViewport in class Pipeline

newDisplayList

void newDisplayList(Context ctx,
                    int displayListId)
Specified by:
newDisplayList in class Pipeline

endDisplayList

void endDisplayList(Context ctx)
Specified by:
endDisplayList in class Pipeline

callDisplayList

void callDisplayList(Context ctx,
                     int id,
                     boolean isNonUniformScale)
Specified by:
callDisplayList in class Pipeline

freeDisplayList

void freeDisplayList(Context ctx,
                     int id)
Specified by:
freeDisplayList in class Pipeline

freeTexture

void freeTexture(Context ctx,
                 int id)
Specified by:
freeTexture in class Pipeline

texturemapping

void texturemapping(Context ctx,
                    int px,
                    int py,
                    int xmin,
                    int ymin,
                    int xmax,
                    int ymax,
                    int texWidth,
                    int texHeight,
                    int rasWidth,
                    int format,
                    int objectId,
                    byte[] image,
                    int winWidth,
                    int winHeight)
Specified by:
texturemapping in class Pipeline

initTexturemapping

boolean initTexturemapping(Context ctx,
                           int texWidth,
                           int texHeight,
                           int objectId)
Specified by:
initTexturemapping in class Pipeline

setRenderMode

void setRenderMode(Context ctx,
                   int mode,
                   boolean doubleBuffer)
Specified by:
setRenderMode in class Pipeline

setDepthBufferWriteEnable

void setDepthBufferWriteEnable(Context ctx,
                               boolean mode)
Specified by:
setDepthBufferWriteEnable in class Pipeline

getGraphicsConfig

java.awt.GraphicsConfiguration getGraphicsConfig(java.awt.GraphicsConfiguration gconfig)
Specified by:
getGraphicsConfig in class Pipeline

getFbConfig

long getFbConfig(GraphicsConfigInfo gcInfo)
Specified by:
getFbConfig in class Pipeline

getBestConfiguration

java.awt.GraphicsConfiguration getBestConfiguration(GraphicsConfigTemplate3D gct,
                                                    java.awt.GraphicsConfiguration[] gc)
Specified by:
getBestConfiguration in class Pipeline

isGraphicsConfigSupported

boolean isGraphicsConfigSupported(GraphicsConfigTemplate3D gct,
                                  java.awt.GraphicsConfiguration gc)
Specified by:
isGraphicsConfigSupported in class Pipeline

hasDoubleBuffer

boolean hasDoubleBuffer(Canvas3D cv)
Specified by:
hasDoubleBuffer in class Pipeline

hasStereo

boolean hasStereo(Canvas3D cv)
Specified by:
hasStereo in class Pipeline

getStencilSize

int getStencilSize(Canvas3D cv)
Specified by:
getStencilSize in class Pipeline

hasSceneAntialiasingMultisample

boolean hasSceneAntialiasingMultisample(Canvas3D cv)
Specified by:
hasSceneAntialiasingMultisample in class Pipeline

hasSceneAntialiasingAccum

boolean hasSceneAntialiasingAccum(Canvas3D cv)
Specified by:
hasSceneAntialiasingAccum in class Pipeline

getDisplay

long getDisplay()
Specified by:
getDisplay in class Pipeline

getScreen

int getScreen(java.awt.GraphicsDevice graphicsDevice)
Specified by:
getScreen in class Pipeline

createDrawingSurfaceObject

DrawingSurfaceObject createDrawingSurfaceObject(Canvas3D cv)
Specified by:
createDrawingSurfaceObject in class Pipeline

freeDrawingSurface

void freeDrawingSurface(Canvas3D cv,
                        DrawingSurfaceObject drawingSurfaceObject)
Specified by:
freeDrawingSurface in class Pipeline

freeDrawingSurfaceNative

void freeDrawingSurfaceNative(java.lang.Object o)
Specified by:
freeDrawingSurfaceNative in class Pipeline


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.