de.javagl.swogl
Class Textures

java.lang.Object
  extended by de.javagl.swogl.Textures

public class Textures
extends java.lang.Object

Factory methods for creating Textures.


Method Summary
static Texture create(int width, int height)
          Creates a new Texture with the given size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Texture create(int width,
                             int height)
Creates a new Texture with the given size. The width and height will be clamped to be at least 1. It is valid to assume that the returned texture is backed by a BufferedImage with format TYPE_INT_ARGB.

Parameters:
width - The width of the texture
height - The height of the texture
Returns:
The texture