Examples of updateData()


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

                   
                }
            }
        }
        buf.clear();
        lodBuffer.updateData(buf);
        return lodBuffer;
    }
   
    private int calcLodTriCount(TriangleReductionMethod reductionMethod, float reductionValue) {
        int nbTris = mesh.getTriangleCount();
View Full Code Here

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

        tb.updateData(ftb);

        bcb.rewind();
        bcb = BufferUtils.ensureLargeEnough(bcb, vertCount * 4);
        bcb.limit(vertCount * 4);
        cb.updateData(bcb);

        sib.rewind();
        sib = BufferUtils.ensureLargeEnough(sib, triCount * 3);
        sib.limit(triCount * 3);
        ib.updateData(sib);
View Full Code Here

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

            pose.apply(poseWeight, (FloatBuffer) pb.getData());
        }

        // force to re-upload data to gpu
        pb.updateData(pb.getData());
    }

    public void setTime(float time, float weight, AnimControl control, AnimChannel channel, TempVars vars) {
        // TODO: When MeshControl is created, it will gather targets
        // list automatically which is then retrieved here.
View Full Code Here

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

        // set positions
        FloatBuffer pb = BufferUtils.createVector3Buffer(numParticles * 4);
        // if the buffer is already set only update the data
        VertexBuffer buf = getBuffer(VertexBuffer.Type.Position);
        if (buf != null) {
            buf.updateData(pb);
        } else {
            VertexBuffer pvb = new VertexBuffer(VertexBuffer.Type.Position);
            pvb.setupData(Usage.Stream, 3, Format.Float, pb);
            setBuffer(pvb);
        }
View Full Code Here

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

        colors.clear();
        if (!uniqueTexCoords)
            texcoords.clear();
        else{
            texcoords.clear();
            tvb.updateData(texcoords);
        }

        // force renderer to re-send data to GPU
        pvb.updateData(positions);
        cvb.updateData(colors);
View Full Code Here

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

        FloatBuffer pb = BufferUtils.createVector3Buffer(numParticles);
       
        //if the buffer is already set only update the data
        VertexBuffer buf = getBuffer(VertexBuffer.Type.Position);
        if (buf != null) {
            buf.updateData(pb);
        } else {
            VertexBuffer pvb = new VertexBuffer(VertexBuffer.Type.Position);
            pvb.setupData(Usage.Stream, 3, Format.Float, pb);
            setBuffer(pvb);
        }
View Full Code Here

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

        // force renderer to re-send data to GPU
        pvb.updateData(positions);
        cvb.updateData(colors);
        svb.updateData(sizes);
        tvb.updateData(texcoords);
    }
}
View Full Code Here

Examples of com.meapsoft.visualizer.SingleFeaturePanel.updateData()

     
       //initialize the panel here
       //System.out.println("about to call initialize..." + panelName);
       featurePanel.initialize(featureFile, featureName);
       //System.out.println("done initialize!");
       featurePanel.updateData();
      
       //repaint the feature panel after we add it
       featurePanel.repaint();
      
             //set us to be visible
View Full Code Here

Examples of com.simonepezzano.hshare.views.IHShareView.updateData()

 
  class UpdateConnInfo implements Runnable{
    public void run() {
      try {
        IHShareView hsv = (IHShareView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(MainView.ID);
        hsv.updateData();
      } catch (PartInitException e) {
        HLog.facelogger.error("Unable to refresh connection info",e);
      }
    }
  }
View Full Code Here

Examples of com.smartgwt.client.widgets.grid.ListGrid.updateData()

        final IButton updateButton = new IButton("Update Country (US)");
        updateButton.setWidth(150);
        updateButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                countryGrid.updateData(new CountryRecord("US", "Edited Value", "Edited Value", "Edited Value"));
                updateButton.disable();
            }
        });
        hLayout.addMember(updateButton);
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.