Codota Logo
MaterialDebugAppState.reloadMaterial
Code IndexAdd Codota to your IDE (free)

How to use
reloadMaterial
method
in
com.jme3.util.MaterialDebugAppState

Best Java code snippets using com.jme3.util.MaterialDebugAppState.reloadMaterial (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

public void reload() {
  Material reloadedMat = reloadMaterial(geom.getMaterial());
  //if the reload is successful, we re setup the material with its params and reassign it to the box
  if (reloadedMat != null) {
    // setupMaterial(reloadedMat);
    geom.setMaterial(reloadedMat);
  }
}
origin: jMonkeyEngine/jmonkeyengine

protected void reloadScene(Geometry g, Geometry boxGeo, Node cubeNodes) {
  MaterialDebugAppState debug = stateManager.getState(MaterialDebugAppState.class);
  Material m = debug.reloadMaterial(g.getMaterial());
  if (m != null) {
    g.setMaterial(m);
  }
  m = debug.reloadMaterial(boxGeo.getMaterial());
  if (m != null) {
    cubeNodes.setMaterial(m);
  }
}
origin: jMonkeyEngine/jmonkeyengine

if (field.getType().isInstance(m)) {
  field.setAccessible(true);
  Material mat = reloadMaterial((Material) field.get(filter));
  if (mat == null) {
    return;
  p = (Filter.Pass) field.get(filter);
  if (p!= null && p.getPassMaterial() != null) {
    Material mat = reloadMaterial(p.getPassMaterial());
    if (mat == null) {
      return;
  if (passes != null) {
    for (Pass pass : passes) {
      Material mat = reloadMaterial(pass.getPassMaterial());
      if (mat == null) {
        return;
origin: org.jmonkeyengine/jme3-core

public void reload() {
  Material reloadedMat = reloadMaterial(geom.getMaterial());
  //if the reload is successful, we re setup the material with its params and reassign it to the box
  if (reloadedMat != null) {
    // setupMaterial(reloadedMat);
    geom.setMaterial(reloadedMat);
  }
}
origin: org.jmonkeyengine/jme3-core

if (field.getType().isInstance(m)) {
  field.setAccessible(true);
  Material mat = reloadMaterial((Material) field.get(filter));
  if (mat == null) {
    return;
  p = (Filter.Pass) field.get(filter);
  if (p!= null && p.getPassMaterial() != null) {
    Material mat = reloadMaterial(p.getPassMaterial());
    if (mat == null) {
      return;
  if (passes != null) {
    for (Pass pass : passes) {
      Material mat = reloadMaterial(pass.getPassMaterial());
      if (mat == null) {
        return;
com.jme3.utilMaterialDebugAppStatereloadMaterial

Popular methods of MaterialDebugAppState

  • registerBinding
    Will reload the spatials's materials whenever the shader file is changed on the hard drive
  • bind
  • isInitialized
  • <init>

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Path (java.nio.file)
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Reference (javax.naming)
  • JList (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now