|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.util.BufferedImageUtil
public class BufferedImageUtil
This is a utility class that allows you to convert a BufferedImage into a texture.
| Constructor Summary | |
|---|---|
BufferedImageUtil()
|
|
| Method Summary | |
|---|---|
static Texture |
getTexture(java.lang.String resourceName,
java.awt.image.BufferedImage resourceImage)
Load a texture |
static Texture |
getTexture(java.lang.String resourceName,
java.awt.image.BufferedImage resourceImage,
int filter)
Load a texture |
static Texture |
getTexture(java.lang.String resourceName,
java.awt.image.BufferedImage resourceimage,
int target,
int dstPixelFormat,
int minFilter,
int magFilter)
Load a texture into OpenGL from a BufferedImage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferedImageUtil()
| Method Detail |
|---|
public static Texture getTexture(java.lang.String resourceName,
java.awt.image.BufferedImage resourceImage)
throws java.io.IOException
resourceName - The location of the resource to loadresourceImage - The BufferedImage we are converting
java.io.IOException - Indicates a failure to access the resource
public static Texture getTexture(java.lang.String resourceName,
java.awt.image.BufferedImage resourceImage,
int filter)
throws java.io.IOException
resourceName - The location of the resource to loadresourceImage - The BufferedImage we are converting
java.io.IOException - Indicates a failure to access the resource
public static Texture getTexture(java.lang.String resourceName,
java.awt.image.BufferedImage resourceimage,
int target,
int dstPixelFormat,
int minFilter,
int magFilter)
throws java.io.IOException
resourceName - The location of the resource to loadresourceimage - The BufferedImage we are convertingtarget - The GL target to load the texture againstdstPixelFormat - The pixel format of the screenminFilter - The minimising filtermagFilter - The magnification filter
java.io.IOException - Indicates a failure to access the resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||