Examples of load()


Examples of com.jitlogic.zorka.common.zico.ZicoDataLoader.load()

    private void load(File dir, String file, String hostname) {
        System.out.println("Starting: " + new File(dir, file));
        long t1 = System.nanoTime();
        try {
            ZicoDataLoader loader = new ZicoDataLoader("127.0.0.1", 8640, hostname, "");
            loader.load(new File(dir, file).getPath());

            records.addAndGet(loader.getRecords());
            bytes.addAndGet(loader.getBytes());

            long t = (System.nanoTime()-t1)/1000000;
View Full Code Here

Examples of com.jme.scene.state.GLSLShaderObjectsState.load()

            public void commit() {
                try {
                    RenderManager rm = ClientContextJME.getWorldManager().getRenderManager();
                    GLSLShaderObjectsState shaderState = (GLSLShaderObjectsState)rm.createRendererState(StateType.GLSLShaderObjects);
                    shaderState.setEnabled(true);
                    shaderState.load(vertex, fragment);

                    if (binder != null) {
                        binder.bind(shaderState);
                    }
View Full Code Here

Examples of com.jme.scene.state.TextureState.load()

            }
        }

        if (inRenderLoop) {
            // We're already in the render loop
            ts.load();
        } else {
            // Not in render loop. Must do this inside the render loop.
            ClientContextJME.getWorldManager().addRenderUpdater(new RenderUpdater() {
                public void update(Object arg0) {
                    // The JME magic - must be called from within the render loop
View Full Code Here

Examples of com.jme3.export.binary.BinaryImporter.load()

        for (Iterator<ModelKey> it = assetLoaderKeys.iterator(); it.hasNext();) {
            ModelKey modelKey = it.next();
            AssetInfo info = loaderManager.locateAsset(modelKey);
            Spatial child = null;
            if (info != null) {
                child = (Spatial) importer.load(info);
            }
            if (child != null) {
                child.parent = this;
                children.add(child);
                assetChildren.put(modelKey, child);
View Full Code Here

Examples of com.jme3.scene.plugins.blender.objects.Properties.load()

        if (id != null) {
            Pointer pProperties = (Pointer) id.getFieldValue("properties");
            if (pProperties.isNotNull()) {
                Structure propertiesStructure = pProperties.fetchData().get(0);
                properties = new Properties();
                properties.load(propertiesStructure, blenderContext);
            }
        }
        return properties;
    }
View Full Code Here

Examples of com.jme3.scene.plugins.ogre.SkeletonLoader.load()

    for (File name : file.listFiles(skeletonFilter)) {
      //new loader each time, yes
//      SkeletonLoader loader;
      try {
        SkeletonLoader loader = new SkeletonLoader();
        AnimData ad = (AnimData)loader.load(name.toURI().toURL().openStream());
        if(ad != null && ad.skeleton != null){
          String fName = name.getName().substring(0,name.getName().length()-".xml".length());
         
          BinaryExporter.getInstance().save(ad.skeleton,
              new File(path + File.separatorChar + fName+ ".j3o"));
View Full Code Here

Examples of com.jme3.system.AppSettings.load()

        // load app cfg
        if (appCfg != null){
            InputStream in = null;
            try {
                in = appCfg.openStream();
                settings.load(in);
                in.close();
            } catch (IOException ex){
                // Called before application has been created ....
                // Display error message through AWT
                JOptionPane.showMessageDialog(this, "An error has occured while "
View Full Code Here

Examples of com.jme3.terrain.heightmap.AbstractHeightMap.load()

        AbstractHeightMap heightmap = null;
        try {
            //heightmap = new HillHeightMap(1025, 1000, 50, 100, (byte) 3);

            heightmap = new ImageBasedHeightMap(heightMapImage.getImage(), 1f);
            heightmap.load();

        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of com.jme3.terrain.heightmap.ImageBasedHeightMap.load()

        // assetManager.loadTexture("textures/terrain/heightMaps/heightMap256x256_01.gif");
        // assetManager.loadTexture("textures/terrain/heightMaps/heightMap512x512_02.gif");

        ImageBasedHeightMap heightMap;
        heightMap = new ImageBasedHeightMap(heightMapImage.getImage());
        heightMap.load(false, false);

        float[][][] data = VoxelState.loadFromHeightMap(heightMap, VoxelMode.LINE_2D);

        /*
         * create terrain material
View Full Code Here

Examples of com.jme3.texture.plugins.AWTLoader.load()

        int potSize = Math.max(potWidth, potHeight);

        BufferedImage scaled = scaleDown(original, potSize, potSize);

        AWTLoader loader = new AWTLoader();
        Image output = loader.load(scaled, false);

        image.setWidth(potSize);
        image.setHeight(potSize);
        image.setDepth(0);
        image.setData(output.getData(0));
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.