|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsubscript.vis.Texture
public class Texture
Wrapper for OpenGL textures.
Constructor Summary | |
---|---|
Texture(java.awt.image.BufferedImage im)
|
|
Texture(java.awt.image.BufferedImage im,
int width,
int height)
|
|
Texture(java.lang.String path)
Create a new texture. |
|
Texture(java.lang.String path,
int width,
int height)
Create a new texture. |
Method Summary | |
---|---|
void |
bind(javax.media.opengl.GLAutoDrawable gldrawable,
javax.media.opengl.GL gl)
Called to indicate that subsequent rendering should use this texture. |
int |
getHeight()
|
int |
getWidth()
|
int |
init(javax.media.opengl.GLAutoDrawable gldrawable)
Called internally to register this texture with a new GL context. |
void |
setFiltering(boolean v)
|
void |
setup(javax.media.opengl.GLAutoDrawable gldrawable,
javax.media.opengl.GL gl)
|
void |
unbind(javax.media.opengl.GLAutoDrawable gldrawable,
javax.media.opengl.GL gl)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Texture(java.lang.String path, int width, int height) throws java.io.IOException
path
- Pathname to a picture which is 2^n X 2^m pixels.
java.io.IOException
public Texture(java.awt.image.BufferedImage im, int width, int height)
public Texture(java.awt.image.BufferedImage im)
public Texture(java.lang.String path) throws java.io.IOException
path
- Pathname to a picture which is 2^n X 2^m pixels.
java.io.IOException
Method Detail |
---|
public void setFiltering(boolean v)
public int getWidth()
public int getHeight()
public int init(javax.media.opengl.GLAutoDrawable gldrawable)
public void setup(javax.media.opengl.GLAutoDrawable gldrawable, javax.media.opengl.GL gl)
public void bind(javax.media.opengl.GLAutoDrawable gldrawable, javax.media.opengl.GL gl)
public void unbind(javax.media.opengl.GLAutoDrawable gldrawable, javax.media.opengl.GL gl)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |