jjdh.opengl.core.texture
Class ImageContent
java.lang.Object
jjdh.opengl.core.texture.ImageContent
public class ImageContent
- extends Object
Method Summary |
protected com.sun.opengl.util.texture.TextureData |
getData()
|
int |
getPos()
|
com.sun.opengl.util.texture.Texture |
getTexture()
|
static com.sun.opengl.util.texture.Texture |
htmlAsTexture(ResourceReference ref)
|
static com.sun.opengl.util.texture.Texture |
htmlAsTexture(String regex)
|
static com.sun.opengl.util.texture.Texture |
htmlAsTexture(String regex,
int size)
|
protected void |
init(BufferedImage image)
|
protected static int |
normalize(int size)
Returns the biggest power of two with 32 <= result <= 1024. |
protected static int |
normalize(int min,
int size,
int max)
Returns the biggest power of two with min <= result <= max. |
void |
setPos(int newPos)
This method make use of OpenGL Functions, so it has to be called from the
OpenGL Thread ! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
content
protected BufferedImage content
size
protected int size
pos
protected int pos
texture
protected com.sun.opengl.util.texture.Texture texture
ImageContent
public ImageContent(BufferedImage image)
ImageContent
public ImageContent(BufferedImage image,
int textureSize)
normalize
protected static int normalize(int size)
- Returns the biggest power of two with 32 <= result <= 1024.
normalize
protected static int normalize(int min,
int size,
int max)
- Returns the biggest power of two with min <= result <= max.
init
protected void init(BufferedImage image)
getData
protected com.sun.opengl.util.texture.TextureData getData()
setPos
public void setPos(int newPos)
- This method make use of OpenGL Functions, so it has to be called from the
OpenGL Thread !
- Parameters:
newPos
- the position to scroll to
getPos
public int getPos()
getTexture
public com.sun.opengl.util.texture.Texture getTexture()
htmlAsTexture
public static com.sun.opengl.util.texture.Texture htmlAsTexture(ResourceReference ref)
htmlAsTexture
public static com.sun.opengl.util.texture.Texture htmlAsTexture(String regex)
htmlAsTexture
public static com.sun.opengl.util.texture.Texture htmlAsTexture(String regex,
int size)
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.