- small fix in Control template git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8650 75d07b2b-3a1a-0410-a2c5-0572b91ccdca3.0
parent
3e0ab2bd64
commit
71ee1ba5d1
@ -0,0 +1,14 @@ |
||||
<!-- |
||||
To change this template, choose Tools | Templates |
||||
and open the template in the editor. |
||||
--> |
||||
<!DOCTYPE html> |
||||
<html> |
||||
<head> |
||||
<title></title> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||
</head> |
||||
<body> |
||||
<div>A generic AppState that allows adding global behavior to your application.</div> |
||||
</body> |
||||
</html> |
@ -0,0 +1,40 @@ |
||||
<#assign licenseFirst = "/*"> |
||||
<#assign licensePrefix = " * "> |
||||
<#assign licenseLast = " */"> |
||||
<#include "../Licenses/license-${project.license}.txt"> |
||||
|
||||
<#if package?? && package != ""> |
||||
package ${package}; |
||||
|
||||
</#if> |
||||
import com.jme3.app.Application; |
||||
import com.jme3.app.state.AbstractAppState; |
||||
import com.jme3.app.state.AppStateManager; |
||||
|
||||
/** |
||||
* |
||||
* @author ${user} |
||||
*/ |
||||
public class ${name} extends AbstractAppState{ |
||||
|
||||
@Override |
||||
public void initialize(AppStateManager stateManager, Application app) { |
||||
super.initialize(stateManager, app); |
||||
//TODO: initialize your AppState, e.g. attach spatials to rootNode |
||||
//this is called on the OpenGL thread after the AppState has been attached |
||||
} |
||||
|
||||
@Override |
||||
public void update(float tpf) { |
||||
//TODO: implement behavior during runtime |
||||
} |
||||
|
||||
@Override |
||||
public void cleanup() { |
||||
super.cleanup(); |
||||
//TODO: clean up what you initialized in the initialize method, |
||||
//e.g. remove all spatials from rootNode |
||||
//this is called on the OpenGL thread after the AppState has been detached |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue