Package net.sf.jiga.xtended.impl.system

Examples of net.sf.jiga.xtended.impl.system.BufferIO


                    Map<String, Serializable> map = null;
                    if (!_ALCache.containsKey(filename)) {
                        waveFile = WaveData.create(new BufferedInputStream(isInnerResourceModeEnabled() ? getClass().getResourceAsStream(filename) : new FileInputStream(file)));
                        map = new HashMap<String, Serializable>();
                        if (waveFile != null) {
                            map.put("data", new BufferIO(waveFile.data));
                            map.put("format", waveFile.format);
                            map.put("samplerate", waveFile.samplerate);
                            waveFile.dispose();
                            loaded = true;
                            _ALCache.put(filename, map);
View Full Code Here


                                                tex = new Sf3Texture3D(textureHash, dim);
                                                float rCoordMax = ((Sf3Texture3D) tex).getDepth();
                                                rCoord = Math.min(rCoord + 1, rCoordMax) / rCoordMax;
                                                break;
                                        default:
                                                tex = new Sf3TextureBuffer(textureHash, dim, new BufferIO());
                                                break;
                                }
                        }
                        Dimension textureDim = null;
                        if (tex != null) {
View Full Code Here

    public Sf3Texture3D(int hash, IntBuffer map) {
        this(hash, BufferIO._new(0, false), Sf3Texture._EXTabgr, map.get(0), map.get(1), map.get(2), 4);
    }

    private Sf3Texture3D(int hash, Buffer pixelBuffer, int EXTabgr, int width, int height, int depth, int bands) {
        super(hash, BufferIO._wrapi(new int[]{width, height, Sf3Texture._getNextPowerOfTwo(depth), 0}), new BufferIO(pixelBuffer));
        assert _3DTexLayersAmount > 0 : "ERROR : " + Sf3Texture3D.class.getName() + " _3DTexLayersAmount must be greater than 0.";
        pixelBuffer.rewind();
        this.width = map.get(0);
        this.height = map.get(1);
        this.depth = map.get(2);
View Full Code Here

    protected Sf3Texture(Buffer pixelBuffer, int width, int height, int bands, Dimension originalImageSize, int transferMode) {
        this((int) System.nanoTime(), pixelBuffer, width, height, bands, originalImageSize, transferMode);
    }

    protected Sf3Texture(int hash, Buffer pixelBuffer, int width, int height, int bands, Dimension originalImageSize, int transferMode) {
        super(hash, BufferIO._wrapi(new int[]{width, height, -1}), new BufferIO(pixelBuffer));
        this.width = map.get(0);
        this.height = map.get(1);
        this.bands = bands;
        this.originalImageSize = originalImageSize == null ? new Dimension(width, height) : originalImageSize;
        int transferMask = transferMode - (transferMode & bitStack._getAllBitRanges());
View Full Code Here

     * pixel buffer
     */
    protected BufferIO pixelBuffer;

    public Sf3TextureBuffer() {
        this((int) System.nanoTime(), BufferIO._wrapi(new int[]{0, 0}, false), new BufferIO());
    }
View Full Code Here

    @Override
    public void writeExternal(ObjectOutput out) throws IOException {
        int currentPty = Thread.currentThread().getPriority();
        Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
        out.writeInt(hash);
        out.writeObject(new BufferIO(map));
        out.writeObject(pixelBuffer);
        out.flush();
        Thread.currentThread().setPriority(currentPty);
    }
View Full Code Here

     * @param hash
     * @param refHash
     * @param map
     */
    public Sf3TextureTile(int hash, int refHash, IntBuffer map) {
        super(hash, map, new BufferIO());
        this.refHash = refHash;
    }
View Full Code Here

TOP

Related Classes of net.sf.jiga.xtended.impl.system.BufferIO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.