|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the standard texture manager interface. A 3D rasterizer will have to implement a subclass of this one and return a pointer to it in Graphics3D. This class is responsible for receiving all textures from the 3D engine, converting them to an internal format if needed, calculating a palette if needed, and calculating all lookup tables related to the textures. Mipmap creation is also done in this class.
| Method Summary | |
iSuperLightmap |
createSuperLightmap(int width,
int height)
Create a new super lightmap with the specified dimensions. |
void |
freeImages()
Call this function if you want to release all iImage's as given to this texture manager. |
void |
freeMaterials()
Call this function if you want to release all iMaterial's as given to this texture manager. |
float[] |
getLightmapRendererCoords(int slmWidth,
int slmHeight,
int lm_x1,
int lm_y1,
int lm_x2,
int lm_y2)
Retrieve the coordinates of a lightmap in the its superlightmap, in a system the renderer uses internally. |
int[] |
getMaxTextureSize()
Request maximum texture dimensions. |
int |
getTextureFormat()
Query the basic format of textures that can be registered with this texture manager. |
void |
prepareMaterials()
Prepare all materials. |
void |
prepareTextures()
After all textures have been added, this function does all needed calculations (palette, lookup tables, mipmaps, ...);. |
iMaterialHandle |
registerMaterial(iMaterial material)
Register a material. |
iMaterialHandle |
registerMaterial(iTextureHandle txthandle)
Register a material based on a texture handle. |
iTextureHandle |
registerTexture(iImage image,
int flags)
Register a texture. |
void |
setVerbose(boolean vb)
Set verbose mode on/off. |
| 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 iSuperLightmap createSuperLightmap(int width,
int height)
width - height -
public void freeImages()
public void freeMaterials()
public float[] getLightmapRendererCoords(int slmWidth,
int slmHeight,
int lm_x1,
int lm_y1,
int lm_x2,
int lm_y2)
slmWidth - slmHeight - lm_x1 - lm_y1 - lm_x2 - lm_y2 -
public int[] getMaxTextureSize()
public int getTextureFormat()
public void prepareMaterials()
public void prepareTextures()
public iMaterialHandle registerMaterial(iTextureHandle txthandle)
txthandle -
public iMaterialHandle registerMaterial(iMaterial material)
material -
public iTextureHandle registerTexture(iImage image,
int flags)
image - flags -
public void setVerbose(boolean vb)
vb -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||