org.gljava.opengl
public class Texture extends Object
Version: $Id: Texture.java,v 1.3 2005/02/10 04:18:56 ivan_ganza Exp $
Field Summary | |
---|---|
int | height |
float | heightRatio |
int | target The GL target type |
int | texHeight |
int | textureID The GL texture ID |
int | texWidth |
int | width |
float | widthRatio |
Constructor Summary | |
---|---|
Texture(int target, int textureID)
Create a new texture
|
Method Summary | |
---|---|
void | bind(GL gl)
Bind the specified GL context to a texture
|
void | calculateHeightRatio()
Set the height of the texture. |
void | calculateWidthRatio()
Set the width of the texture. |
float | getHeight()
Get the height of the physical texture
|
int | getImageHeight()
Get the height of the original image
|
int | getImageWidth()
Get the width of the original image
|
float | getWidth()
Get the width of the physical texture
|
void | setHeight(int height)
Set the height of the image
|
void | setTextureHeight(int texHeight)
Set the height of this texture
|
void | setTextureWidth(int texWidth)
Set the width of this texture
|
void | setWidth(int width)
Set the width of the image
|
Parameters: target The GL target textureID The GL texture ID
Parameters: gl The GL context to bind to
Returns: The height of physical texture
Returns: The height of the original image
Returns: The width of the original image
Returns: The width of physical texture
Parameters: height The height of the image
Parameters: texHeight The height of the texture
Parameters: texWidth The width of the texture
Parameters: width The width of the image