public class Texture
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
id |
| Modifier and Type | Method and Description |
|---|---|
void |
bind() |
static java.nio.ByteBuffer |
convertImageData(java.awt.image.BufferedImage bufferedImage)
Convert the buffered image to a texture
|
void |
image2d(int internalformat,
int width,
int height,
int format,
int type,
java.nio.ByteBuffer pixels) |
static Texture |
loadImage(java.awt.image.BufferedImage image) |
static Texture |
loadImage(java.awt.image.BufferedImage image,
int textureType) |
static Texture |
loadImage(java.awt.image.BufferedImage image,
int textureType,
int loadTarget) |
static Texture |
loadImage(org.saintandreas.resources.Resource r) |
static Texture |
loadImage(org.saintandreas.resources.Resource r,
int textureType) |
static Texture |
loadImage(org.saintandreas.resources.Resource r,
int textureType,
int loadTarget) |
static Texture |
loadImage(java.net.URL url) |
static Texture |
loadImage(java.net.URL url,
int textureType) |
static Texture |
loadImage(java.net.URL url,
int textureType,
int loadTarget) |
void |
loadImageData(java.awt.image.BufferedImage image,
int loadTarget) |
void |
parameter(int pname,
float value) |
void |
parameter(int pname,
int value) |
void |
unbind() |
static void |
unbind(int target) |
public void bind()
public void unbind()
public static void unbind(int target)
public void parameter(int pname,
int value)
public void parameter(int pname,
float value)
public void image2d(int internalformat,
int width,
int height,
int format,
int type,
java.nio.ByteBuffer pixels)
public void loadImageData(java.awt.image.BufferedImage image,
int loadTarget)
public static Texture loadImage(java.awt.image.BufferedImage image, int textureType, int loadTarget)
public static Texture loadImage(org.saintandreas.resources.Resource r, int textureType, int loadTarget)
public static Texture loadImage(java.net.URL url, int textureType, int loadTarget)
public static Texture loadImage(java.awt.image.BufferedImage image, int textureType)
public static Texture loadImage(org.saintandreas.resources.Resource r, int textureType) throws java.io.IOException
java.io.IOExceptionpublic static Texture loadImage(java.net.URL url, int textureType) throws java.io.IOException
java.io.IOExceptionpublic static Texture loadImage(java.awt.image.BufferedImage image)
public static Texture loadImage(org.saintandreas.resources.Resource r) throws java.io.IOException
java.io.IOExceptionpublic static Texture loadImage(java.net.URL url) throws java.io.IOException
java.io.IOExceptionpublic static java.nio.ByteBuffer convertImageData(java.awt.image.BufferedImage bufferedImage)
Copyright © 2013-2014. All Rights Reserved.