Package org.jdesktop.mtgame.processor.WorkProcessor

Examples of org.jdesktop.mtgame.processor.WorkProcessor.WorkCommit


        }
        });
         */

        // make sure we don't miss any MT-Game exceptions
        SceneWorker.addWorker(new WorkCommit() {
            public void commit() {
                Thread.currentThread().setUncaughtExceptionHandler(ueh);
            }
        });

View Full Code Here


                              String down) {
        final Skybox skybox = buildSkybox(north, south, east, west, up, down);
        final DefaultEnvironmentRenderer renderer =
                (DefaultEnvironmentRenderer)getCellRenderer(RendererType.RENDERER_JME);

        SceneWorker.addWorker(new WorkCommit() {

            public void commit() {
                renderer.updateSkybox(skybox);
            }
        });
View Full Code Here

    public void setPickable(boolean pickable) {
        this.pickable = pickable;

        // schedule a task to update the pick geometry
        SceneWorker.addWorker(new WorkCommit() {
            public void commit() {
                updatePickGeometry();
            }
        });
    }
View Full Code Here

    }

    public void triggerGoto(final Vector3f position, final Quaternion look) {

        if (avatarCharacter != null) {
            SceneWorker.addWorker(new WorkCommit() {
                public void commit() {
                    PTransform xform = new PTransform(look, position,
                                                      new Vector3f(1, 1, 1));
                    avatarCharacter.getModelInst().setTransform(xform);
                }
View Full Code Here

   
    public void update() {
       
        editor.setPanelDirty(DefaultEnvironmentProperties.class, isDirty());
       
        SceneWorker.addWorker(new WorkCommit() {

            public void commit() {
                DirectionalLight dl = (DirectionalLight)lightNode.getLight();
               
               
View Full Code Here

  }

  @Override
  public void runOnUIThread(Runnable runnable) {
            final Runnable r = runnable;
            ClientContextJME.getSceneWorker().addWorker(new WorkCommit(){
                public void commit() {
                    r.run();
                }
            });
  }
View Full Code Here

        final Semaphore done = new Semaphore(0);

        final String vertex = readShader(vertexFile);
         final String fragment = readShader(fragmentFile);

        SceneWorker.addWorker(new WorkCommit() {
            public void commit() {
                try {
                    RenderManager rm = ClientContextJME.getWorldManager().getRenderManager();
                    GLSLShaderObjectsState shaderState = (GLSLShaderObjectsState)rm.createRendererState(StateType.GLSLShaderObjects);
                    shaderState.setEnabled(true);
View Full Code Here

        if (isActiveSkybox()) {
            final Skybox skybox = buildSkybox();
            final DefaultEnvironmentRenderer renderer =
                            skyboxProperties.getDefaultEnvironmentRenderer();

            SceneWorker.addWorker(new WorkCommit() {

                public void commit() {
                    renderer.updateSkybox(skybox);
                }
            });
View Full Code Here

         orbNode.attachChild(outerOrb);
    }


    public void setVisible(final boolean isVisible) {
        SceneWorker.addWorker(new WorkCommit() {

            public void commit() {
                if (isVisible) {
                    root.attachChild(orbNode);
                } else {
View Full Code Here

//        removeLightFromRenderer(lightToBeReplaced);
//        addLightToRenderer(lightToBeInserted);
        final DirectionalLight originalLight = (DirectionalLight)lightToBeUpdated.getLight();
        final DirectionalLight freshLight = (DirectionalLight)updatedLightInfo.getLight();
       
        SceneWorker.addWorker(new WorkCommit() {
            public void commit() {
                originalLight.setAmbient(freshLight.getAmbient());
                originalLight.setDiffuse(freshLight.getDiffuse());
                originalLight.setSpecular(freshLight.getSpecular());
                originalLight.setShadowCaster(freshLight.isShadowCaster());
View Full Code Here

TOP

Related Classes of org.jdesktop.mtgame.processor.WorkProcessor.WorkCommit

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.