⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nooppipeline.java

📁 JAVA3D矩陈的相关类
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
/* * $RCSfile: NoopPipeline.java,v $ * * Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved. * * Use is subject to license terms. * * $Revision: 1.7 $ * $Date: 2007/03/26 22:58:58 $ * $State: Exp $ */package javax.media.j3d;import java.awt.GraphicsConfiguration;import java.awt.GraphicsDevice;import java.awt.GraphicsEnvironment;/** * Concrete implementation of Pipeline class for the noop rendering * pipeline. */class NoopPipeline extends Pipeline {    // Flags indicating whether the Cg or GLSL libraries are available.    private boolean cgLibraryAvailable = false;    /**     * Constructor for singleton NoopPipeline instance     */    protected NoopPipeline() {    }    /**     * Initialize the pipeline     */    void initialize(Pipeline.Type pipelineType) {        super.initialize(pipelineType);        assert pipelineType == Pipeline.Type.NOOP;    }    /**     * Load all of the required libraries     */    void loadLibraries(int globalShadingLanguage) {    }    /**     * 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.     */    boolean isCgLibraryAvailable() {        return cgLibraryAvailable;    }    /**     * 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.     */    boolean isGLSLLibraryAvailable() {        return true;    }    // ---------------------------------------------------------------------    //    // GeometryArrayRetained methods    //    // Used by D3D to free vertex buffer    void freeD3DArray(GeometryArrayRetained geo, boolean deleteVB) {    }    // used for GeometryArrays by Copy or interleaved    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) {    }    // used by GeometryArray by Reference with java arrays    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, Object[] texCoords,            int cdirty) {    }    // used by GeometryArray by Reference with NIO buffer    void executeVABuffer(Context ctx,            GeometryArrayRetained geo, int geo_type,            boolean isNonUniformScale,            boolean ignoreVertexColors,            int vcount,            int vformat,            int vdefined,            int coordIndex,            Object vcoords,            int colorIndex,            Object cdataBuffer,            float[] cfdata, byte[] cbdata,            int normalIndex, Object ndata,            int vertexAttrCount, int[] vertexAttrSizes,            int[] vertexAttrIndex, Object[] vertexAttrData,            int texcoordmaplength,            int[] texcoordoffset,            int numActiveTexUnitState,            int[] texIndex, int texstride, Object[] texCoords,            int cdirty) {    }    // used by GeometryArray by Reference in interleaved format with NIO buffer    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,            Object varray, float[] cdata, int cdirty) {    }    void setVertexFormat(Context ctx, GeometryArrayRetained geo,            int vformat, boolean useAlpha, boolean ignoreVertexColors) {    }    void disableGlobalAlpha(Context ctx, GeometryArrayRetained geo, int vformat,            boolean useAlpha, boolean ignoreVertexColors) {    }    // used for GeometryArrays    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) {    }    // used to Build Dlist GeometryArray by Reference with java arrays    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, Object[] texCoords,            double[] xform, double[] nxform) {    }    // ---------------------------------------------------------------------    //    // IndexedGeometryArrayRetained methods    //    // by-copy or interleaved, by reference, Java arrays    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) {    }    // interleaved, by reference, nio buffer    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,            Object varray, float[] cdata,            int cdirty,            int[] indexCoord) {    }    // non interleaved, by reference, Java arrays    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, Object[] texCoords,            int cdirty,            int[] indexCoord) {    }    // non interleaved, by reference, nio buffer    void executeIndexedGeometryVABuffer(Context ctx,            GeometryArrayRetained geo, int geo_type,            boolean isNonUniformScale,            boolean ignoreVertexColors,            int initialIndexIndex,            int validIndexCount,            int vertexCount,            int vformat,            int vdefined,            Object vcoords,            Object cdataBuffer,            float[] cfdata, byte[] cbdata,            Object normal,            int vertexAttrCount, int[] vertexAttrSizes,            Object[] vertexAttrData,            int texcoordmaplength,            int[] texcoordoffset,            int numActiveTexUnitState,            int texstride, Object[] texCoords,            int cdirty,            int[] indexCoord) {    }    // by-copy geometry    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) {    }    // ---------------------------------------------------------------------    //    // GraphicsContext3D methods    //    void readRaster(Context ctx,            int type, int xSrcOffset, int ySrcOffset,            int width, int height, int hCanvas,            int imageDataType,             int imageFormat,            Object imageBuffer,            int depthFormat,            Object depthBuffer) {            }    // ---------------------------------------------------------------------    //    // CgShaderProgramRetained methods    //    // ShaderAttributeValue methods    ShaderError setCgUniform1i(Context ctx,            ShaderProgramId shaderProgramId,            ShaderAttrLoc uniformLocation,            int value) {        return null;    }    ShaderError setCgUniform1f(Context ctx,            ShaderProgramId shaderProgramId,            ShaderAttrLoc uniformLocation,            float value) {        return null;    }    ShaderError setCgUniform2i(Context ctx,            ShaderProgramId shaderProgramId,            ShaderAttrLoc uniformLocation,            int[] value) {        return null;    }    ShaderError setCgUniform2f(Context ctx,            ShaderProgramId shaderProgramId,            ShaderAttrLoc uniformLocation,            float[] value) {        return null;    }    ShaderError setCgUniform3i(Context ctx,            ShaderProgramId shaderProgramId,            ShaderAttrLoc uniformLocation,            int[] value) {        return null;    }    ShaderError setCgUniform3f(Context ctx,            ShaderProgramId shaderProgramId,            ShaderAttrLoc uniformLocation,            float[] value) {        return null;    }    ShaderError setCgUniform4i(Context ctx,            ShaderProgramId shaderProgramId,            ShaderAttrLoc uniformLocation,            int[] value) {        return null;    }    ShaderError setCgUniform4f(Context ctx,            ShaderProgramId shaderProgramId,            ShaderAttrLoc uniformLocation,            float[] value) {        return null;    }    ShaderError setCgUniformMatrix3f(Context ctx,            ShaderProgramId shaderProgramId,            ShaderAttrLoc uniformLocation,            float[] value) {        return null;    }    ShaderError setCgUniformMatrix4f(Context ctx,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -