Examples of loadAsset()


Examples of com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData.loadAsset()

  @Override
  public void load (AssetManager manager, ResourceData resources) {
    SaveData data = resources.getSaveData("pointSpriteBatch");
    if(data != null)
      setTexture((Texture)manager.get(data.loadAsset()));
  }
}
View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode.loadAsset()

      String str = null;
      RootNode rootNode = SnippetFactory.getJsSnippets(getServletContext(), request);
      if (unid != null && unid.length() > 0) {
        VFSFile rootFile = SnippetFactory.getJsRootFile(getServletContext());
        JSSnippet snippet = (JSSnippet) rootNode.loadAsset(rootFile, unid);
        if (snippet == null) {
          service400(request, response, "Invalid unid: {0}", unid);
          return;
        }
        if (FORMAT_JSON.equals(format)) {
View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode.loadAsset()

   * @return
   */
  private static Asset getAsset(ServletContext context, HttpServletRequest request, String assetName, NodeFactory nodeFactory, String rootPath){
    try {
          RootNode root = getSnippets(context, nodeFactory, rootPath, request);
          return root.loadAsset(getRootFile(context, rootPath), assetName);
      } catch (IOException ioe) {
          return null;
      }
  }

View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode.loadAsset()

   * @return
   */
  private static Asset getAsset(ServletContext context, HttpServletRequest request, String assetName, NodeFactory nodeFactory, String rootPath){
    try {
          RootNode root = getSnippets(context, nodeFactory, rootPath, request);
          return root.loadAsset(getRootFile(context, rootPath), assetName);
      } catch (IOException ioe) {
          return null;
      }
  }

View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode.loadAsset()

   * @return
   */
  private static Asset getAsset(String assetName, NodeFactory nodeFactory, String rootPath){
    try {
          RootNode root = getSnippets(nodeFactory, rootPath);
          return root.loadAsset(getRootFile(rootPath), assetName);
      } catch (IOException ioe) {
          return null;
      }
  }

View Full Code Here

Examples of com.jme3.asset.AssetManager.loadAsset()

{
    public static void main(String[] args)
    {
        // create the geometry and attach it
      AssetManager assetMan = new DesktopAssetManager(true);
      AnimData aData = (AnimData) assetMan.loadAsset("ready_idle.anim.xml");
      if(aData.anims.size() == 1)
        aData.anims.get(0).getName();

    }
}
View Full Code Here

Examples of com.jme3.asset.DesktopAssetManager.loadAsset()

{
    public static void main(String[] args)
    {
        // create the geometry and attach it
      AssetManager assetMan = new DesktopAssetManager(true);
      AnimData aData = (AnimData) assetMan.loadAsset("ready_idle.anim.xml");
      if(aData.anims.size() == 1)
        aData.anims.get(0).getName();

    }
}
View Full Code Here

Examples of org.drools.repository.ModuleItem.loadAsset()

        repositoryPackageService.saveModule( data );
        data = repositoryPackageService.loadModule( uuid );
        it = rulesRepository.loadModule( data.getName() );
        assertTrue( data.isArchived() );
        assertTrue( it.loadAsset( "drools" ).isArchived() );
        assertTrue( it.loadAsset( "rule_1" ).isArchived() );

        data.setArchived( false );

        repositoryPackageService.saveModule( data );
View Full Code Here

Examples of org.drools.repository.ModuleItem.loadAsset()

        repositoryPackageService.saveModule( data );
        data = repositoryPackageService.loadModule( uuid );
        it = rulesRepository.loadModule( data.getName() );
        assertTrue( data.isArchived() );
        assertTrue( it.loadAsset( "drools" ).isArchived() );
        assertTrue( it.loadAsset( "rule_1" ).isArchived() );

        data.setArchived( false );

        repositoryPackageService.saveModule( data );
        data = repositoryPackageService.loadModule( uuid );
View Full Code Here

Examples of org.drools.repository.ModuleItem.loadAsset()

        repositoryPackageService.saveModule( data );
        data = repositoryPackageService.loadModule( uuid );
        it = rulesRepository.loadModule( data.getName() );
        assertFalse( data.isArchived() );
        assertFalse( it.loadAsset( "drools" ).isArchived() );
        assertTrue( it.loadAsset( "rule_1" ).isArchived() );

        data.setArchived( true );

        repositoryPackageService.saveModule( data );
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.