logic
Class TextureLoader

java.lang.Object
  extended by logic.TextureLoader

public class TextureLoader
extends java.lang.Object

class providing a static function to load a image as JOGL texture

Author:
Fennes

Constructor Summary
TextureLoader()
           
 
Method Summary
static com.sun.opengl.util.texture.Texture load(java.lang.String fileName)
          Texture loader utilizes JOGL's provided utilities to produce a texture.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextureLoader

public TextureLoader()
Method Detail

load

public static com.sun.opengl.util.texture.Texture load(java.lang.String fileName)
Texture loader utilizes JOGL's provided utilities to produce a texture.

Parameters:
fileName - relative filename from execution point
Returns:
a texture binded to the OpenGL context