net.sf.tankbattles.scene
Class TextureHelper

java.lang.Object
  extended by net.sf.tankbattles.scene.TextureHelper

public class TextureHelper
extends java.lang.Object

Encapsulates the details of texture loading and default configuration.

Author:
Erick B Passos

Constructor Summary
TextureHelper()
           
 
Method Summary
static com.jme.image.Texture loadTexture(java.lang.String texturePath)
          Loads a texture and sets its default combine parameters.
static void setDefaultCombine(com.jme.image.Texture texture)
          Sets the default combine mode for a texture.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextureHelper

public TextureHelper()
Method Detail

loadTexture

public static com.jme.image.Texture loadTexture(java.lang.String texturePath)
Loads a texture and sets its default combine parameters.

Parameters:
texturePath - texture file path.
Returns:
the newly loaded texture with its default parameters set.

setDefaultCombine

public static void setDefaultCombine(com.jme.image.Texture texture)
Sets the default combine mode for a texture. Uses modulate combine as default.

Parameters:
texture - to be configured