com.badlogic.gdx.graphics.g3d.particles.ParticleEffectLoader Java Examples

The following examples show how to use com.badlogic.gdx.graphics.g3d.particles.ParticleEffectLoader. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GameScene.java    From GdxDemo3D with Apache License 2.0 5 votes vote down vote up
public GameScene(ModelLoader.ModelParameters modelParameters,
				 TextureLoader.TextureParameter textureParameter,
				 ParticleEffectLoader.ParticleEffectLoadParameter pfxParameter,
				 String pfxPath, String modelPath, String modelExt, ObjectMap<String, GameObjectBlueprint> sharedBlueprints) {
	this.sharedBlueprints = sharedBlueprints;
	this.assets = new BlenderAssetManager(modelParameters, textureParameter, pfxParameter,
			pfxPath, modelPath, modelExt);
}
 
Example #2
Source File: GameSceneManager.java    From GdxDemo3D with Apache License 2.0 5 votes vote down vote up
public GameSceneManager(ModelLoader.ModelParameters modelParameters,
						TextureLoader.TextureParameter textureParameter,
						ParticleEffectLoader.ParticleEffectLoadParameter pfxParameter,
						String pfxPath, String modelPath, String modelExt) {
	this.modelPath = modelPath;
	this.modelExt = modelExt;
	this.pfxPath = pfxPath;

	this.modelParameters = modelParameters;
	this.textureParameter = textureParameter;
	this.pfxParameter = pfxParameter;
}
 
Example #3
Source File: BlenderAssetManager.java    From GdxDemo3D with Apache License 2.0 5 votes vote down vote up
public BlenderAssetManager(
		ModelLoader.ModelParameters modelParameters,
		TextureLoader.TextureParameter textureParameter,
		ParticleEffectLoader.ParticleEffectLoadParameter pfxParameter,
		String pfxPath, String modelPath, String modelExt) {
	this.modelExt = modelExt;
	this.modelPath = modelPath;
	this.pfxPath = pfxPath;

	this.modelParameters = modelParameters;
	this.textureParameter = textureParameter;
	this.pfxParameter = pfxParameter;
}
 
Example #4
Source File: ParticleUtils.java    From Skyland with MIT License 5 votes vote down vote up
private void initManager() {
    particleManager = new AssetManager();
    ParticleEffectLoader.ParticleEffectLoadParameter loadParam = new ParticleEffectLoader.ParticleEffectLoadParameter(particleSystem.getBatches());
    ParticleEffectLoader loader = new ParticleEffectLoader(new InternalFileHandleResolver());
    particleManager.setLoader(ParticleEffect.class, loader);
    particleManager.load(Particles.PARTICLE_CLOUD_PUFF, ParticleEffect.class, loadParam);
    particleManager.load(Particles.PARTICLE_CAVE_DUST, ParticleEffect.class, loadParam);
    particleManager.finishLoading();
}
 
Example #5
Source File: Assets.java    From gdx-proto with Apache License 2.0 5 votes vote down vote up
public static void loadParticleEffects(ParticleSystem particleSystem) {
	ParticleEffectLoader.ParticleEffectLoadParameter loadParam = new ParticleEffectLoader.ParticleEffectLoadParameter(particleSystem.getBatches());
	ParticleEffectLoader loader = new ParticleEffectLoader(new InternalFileHandleResolver());
	manager.setLoader(ParticleEffect.class, loader);
	manager.load("particle/bullet-hit.pfx", ParticleEffect.class, loadParam);
	manager.load("particle/blue-explosion.pfx", ParticleEffect.class, loadParam);
	manager.finishLoading();
}