|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A texture wrapper is an engine-level object that wraps around an actual texture (iTextureHandle). Every texture in the engine is represented by a texture wrapper, which keeps the pointer to the texture handle, its name, and possibly the base image object.
Method Summary | |
iTextureWrapper |
Clone()
Create a clone this texture wrapper, using the same texture handle. |
int |
getFlags()
Return the flags which are used to register the texture. |
iImage |
getImageFile()
Get the iImage. |
int[] |
getKeyColor()
Query the transparent color. |
iTextureHandle |
getTextureHandle()
Get the texture handle. |
iTextureCallback |
getUseCallback()
Get the use callback. |
boolean |
isVisitRequired()
Return true if it is needed to call Visit();. |
boolean |
keepImage()
If this flag is true then the image will be kept even after calling Register. |
iObject |
queryObject()
Get the iObject for this texture. |
void |
register(iTextureManager txtmng)
Register the texture with the texture manager. |
void |
setFlags(int flags)
Set the flags which are used to register the texture. |
void |
setImageFile(iImage Image)
Change the base iImage. |
void |
setKeepImage(boolean k)
Set the keep image flag. |
void |
setKeyColor(int red,
int green,
int blue)
Set the transparent color. |
void |
setTextureHandle(iTextureHandle tex)
Change the texture handle. |
void |
setUseCallback(iTextureCallback callback)
Set a callback which is called just before the texture is used. |
void |
visit()
Visit this texture. |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Method Detail |
public iTextureWrapper Clone()
public int getFlags()
public iImage getImageFile()
public int[] getKeyColor()
public iTextureHandle getTextureHandle()
public iTextureCallback getUseCallback()
public boolean isVisitRequired()
public boolean keepImage()
public iObject queryObject()
public void register(iTextureManager txtmng)
txtmng
- public void setFlags(int flags)
flags
- public void setImageFile(iImage Image)
Image
- public void setKeepImage(boolean k)
k
- public void setKeyColor(int red, int green, int blue)
red
- green
- blue
- public void setTextureHandle(iTextureHandle tex)
tex
- public void setUseCallback(iTextureCallback callback)
callback
- public void visit()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |