|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.renderer.Texture
public abstract class Texture
An OpenGL texture object.
| Constructor Summary | |
|---|---|
Texture(Renderer renderer,
int target)
Creates a new texture for the specified renderer. |
|
| Method Summary | |
|---|---|
void |
delete()
Deletes this texture, rendering it unusable. |
void |
generateMipmap()
Generates a set of mipmaps for this texture. |
int |
getDepth()
Returns the depth of the texture. |
int |
getFormat()
Returns the format of this texture. |
abstract int |
getHeight()
Returns the height of the texture. |
int |
getId()
Returns this texture's OpenGL identifier. |
int |
getTarget()
Returns the texture's target. |
abstract int |
getWidth()
Returns the width of the texture. |
boolean |
hasAlpha()
Checks whether this texture has an alpha channel. |
boolean |
isDepth()
Determines whether this is a depth texture. |
void |
setBorderColor(Color4f borderColor)
Sets the border color. |
void |
setCompare(int mode,
int func)
Convenience method to set both compare parameters at once. |
void |
setCompareFunc(int compareFunc)
Sets the texture compare function. |
void |
setCompareMode(int compareMode)
Sets the texture compare mode. |
void |
setDepthMode(int depthMode)
Sets the depth texture mode. |
void |
setFilters(int min,
int mag)
Convenience method to set both the filters at once. |
void |
setGenerateMipmaps(boolean generate)
Sets whether or not to generate mipmaps automatically. |
void |
setMagFilter(int magFilter)
Sets the texture magnification filter. |
void |
setMaxAnisotropy(float maxAnisotropy)
Sets the texture maximum anisotropy. |
void |
setMinFilter(int minFilter)
Sets the texture minification filter. |
void |
setWrap(int s,
int t)
Convenience method to set the s and t wrap modes at once. |
void |
setWrap(int s,
int t,
int r)
Convenience method to set all the wrap modes at once. |
void |
setWrapR(int wrap)
Sets the r texture wrap mode. |
void |
setWrapS(int wrap)
Sets the s texture wrap mode. |
void |
setWrapT(int wrap)
Sets the t texture wrap mode. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Texture(Renderer renderer,
int target)
| Method Detail |
|---|
public final int getId()
public final int getTarget()
public int getFormat()
public boolean hasAlpha()
public boolean isDepth()
public abstract int getWidth()
public abstract int getHeight()
public int getDepth()
public void setFilters(int min,
int mag)
public void setMinFilter(int minFilter)
public void setMagFilter(int magFilter)
public void setMaxAnisotropy(float maxAnisotropy)
public void setWrap(int s,
int t)
public void setWrap(int s,
int t,
int r)
public void setWrapS(int wrap)
public void setWrapT(int wrap)
public void setWrapR(int wrap)
public void setBorderColor(Color4f borderColor)
public void setGenerateMipmaps(boolean generate)
public void setCompare(int mode,
int func)
public void setCompareMode(int compareMode)
public void setCompareFunc(int compareFunc)
public void setDepthMode(int depthMode)
public void generateMipmap()
public void delete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||