Examples of updateData()


Examples of com.jme3.audio.AudioBuffer.updateData()

    public static AudioData getPlaceholderAudio(){
        AudioBuffer audioBuf = new AudioBuffer();
        audioBuf.setupFormat(1, 8, 44100);
        ByteBuffer bb = BufferUtils.createByteBuffer(1);
        bb.put((byte)0).flip();
        audioBuf.updateData(bb);
        return audioBuf;
    }
   
}
View Full Code Here

Examples of com.jme3.audio.AudioBuffer.updateData()

//        commentHdr = vorbisStream.getCommentHeader();
   
        if (!readStream){
            AudioBuffer audioBuffer = new AudioBuffer();
            audioBuffer.setupFormat(streamHdr.getChannels(), 16, streamHdr.getSampleRate());
            audioBuffer.updateData(readToBuffer());
            return audioBuffer;
        }else{
            AudioStream audioStream = new AudioStream();
            audioStream.setupFormat(streamHdr.getChannels(), 16, streamHdr.getSampleRate());
           
View Full Code Here

Examples of com.jme3.audio.AudioStream.updateData()

            audioStream.setupFormat(streamHdr.getChannels(), 16, streamHdr.getSampleRate());
           
            // might return -1 if unknown
            float streamDuration = computeStreamDuration();
           
            audioStream.updateData(readToStream(oggStream.isSeekable(),streamDuration), streamDuration);
            return audioStream;
        }
    }

    public Object load(AssetInfo info) throws IOException {
View Full Code Here

Examples of com.jme3.scene.VertexBuffer.updateData()

                Vector3f tail = head.add(bone.getModelSpaceRotation().mult(Vector3f.UNIT_Y.mult(boneLengths.get(i))));
                posBuf.put(tail.getX()).put(tail.getY()).put(tail.getZ());
            }
        }
        posBuf.flip();
        vb.updateData(posBuf);

        this.updateBound();
    }
}
View Full Code Here

Examples of com.jme3.scene.VertexBuffer.updateData()

            buffer.put(vec.x);
            buffer.put(vec.y);
            buffer.put(vec.z);
        }
       
        pvb.updateData(buffer);

        updateBound();
        updateCounts();
    }
}
View Full Code Here

Examples of com.jme3.scene.VertexBuffer.updateData()

        b.rewind();
        a.rewind();
        a.put(b);
        a.rewind();

        vb.updateData(a);
       
        updateBound();
    }

}
View Full Code Here

Examples of com.jme3.scene.VertexBuffer.updateData()

                Vector3f tail = head.add(bone.getModelSpaceRotation().mult(Vector3f.UNIT_Y.mult(boneLengths.get(i))));
                posBuf.put(tail.getX()).put(tail.getY()).put(tail.getZ());
            }
        }
        posBuf.flip();
        vb.updateData(posBuf);

        this.updateBound();
    }

    /**
 
View Full Code Here

Examples of com.jme3.scene.VertexBuffer.updateData()

            pb = BufferUtils.createVector3Buffer(8);
            pvb.setupData(Usage.Dynamic, 3, Format.Float, pb);
            setBuffer(pvb);
        }else{
            pb = (FloatBuffer) pvb.getData();
            pvb.updateData(pb);
        }
        pb.rewind();
        pb.put(
            new float[]{
                -xExt, -yExt,  zExt,
View Full Code Here

Examples of com.jme3.scene.VertexBuffer.updateData()

                    pointPosition.addLocal(v);
                }
            }
        }
        posBuf.flip();
        vb.updateData(posBuf);

        this.updateBound();
    }

    /**
 
View Full Code Here

Examples of com.jme3.scene.VertexBuffer.updateData()

        FloatBuffer fb = (FloatBuffer) posBuf.getData();
        fb.rewind();
        fb.put(start.x).put(start.y).put(start.z);
        fb.put(end.x).put(end.y).put(end.z);
       
        posBuf.updateData(fb);
       
        updateBound();
    }

    public Vector3f getEnd() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.