|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.proteinshader.graphics.textures.TextureManager
public class TextureManager
Uses a TextureFactory object to read textures from files and then
stores Java Texture objects that have references to OpenGL texture
objects and menu names that can be used for selecting the textures.
Whenever the readTextureFiles(gl) method is called, it will free any
graphics card memory for previously loaded textures before asking the
TextureFactory to create Textures from the files specified in the
textures config file.
The list returned by the getTextures() method will always have at
least one Texture object in it, the Texture with the menu name of
"None".
Constructor Summary | |
---|---|
TextureManager()
Constructs a TextureManager. |
Method Summary | |
---|---|
void |
deleteTextures(GL gl)
Frees graphics card memory for all previously cached textures. |
Vector<Texture> |
getBendTextures()
Returns a list of Java Texture objects with information on OpenGL texture objects that are currently stored on the graphics card. |
Vector<Texture> |
getHalftoningTextures()
Returns a list of Java Texture objects with information on OpenGL texture objects that are currently stored on the graphics card. |
Vector<Texture> |
getPatternsTextures()
Returns a list of Java Texture objects with information on OpenGL texture objects that are currently stored on the graphics card. |
void |
readTextureFiles(GL gl)
Calls on the TextureFactory to read the texture files specified in the texture config file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextureManager()
Method Detail |
---|
public void readTextureFiles(GL gl) throws TextureException
gl
- the current GL object.
TextureException
public Vector<Texture> getPatternsTextures()
public Vector<Texture> getHalftoningTextures()
public Vector<Texture> getBendTextures()
public void deleteTextures(GL gl)
gl
- the current GL object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |