|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.video.txtmgr.csTextureManager
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csTextureManager(iPointer nPointer)
|
|
| 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. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
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. |
java.lang.String |
getName()
Return the name of the interface |
int |
getTextureFormat()
Query the basic format of textures that can be registered with this texture manager. |
int |
getVersion()
Return the version of the interface |
static void |
initSCF()
|
protected boolean |
isNativePointerValidSafe()
|
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 class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
| Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, isNativePointerValidSafe, newNativeObject, setMemoryOwner, toString |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
| Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
| Constructor Detail |
public csTextureManager(iPointer nPointer)
nPointer - | Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBasepublic java.lang.String getName()
iBase
getName in interface iBasegetName in class csBasepublic static void initSCF()
public void setVerbose(boolean vb)
iTextureManager
setVerbose in interface iTextureManagervb - public static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
protected boolean isNativePointerValidSafe()
public iSuperLightmap createSuperLightmap(int width,
int height)
iTextureManager
createSuperLightmap in interface iTextureManagerwidth - height -
iTextureManager.createSuperLightmap(int, int)public void freeImages()
iTextureManager
freeImages in interface iTextureManageriTextureManager.freeImages()public void freeMaterials()
iTextureManager
freeMaterials in interface iTextureManageriTextureManager.freeMaterials()
public float[] getLightmapRendererCoords(int slmWidth,
int slmHeight,
int lm_x1,
int lm_y1,
int lm_x2,
int lm_y2)
iTextureManager
getLightmapRendererCoords in interface iTextureManagerslmWidth - slmHeight - lm_x1 - lm_y1 - lm_x2 - lm_y2 -
iTextureManager.getLightmapRendererCoords(int, int, int, int, int, int)public int[] getMaxTextureSize()
iTextureManager
getMaxTextureSize in interface iTextureManageriTextureManager.getMaxTextureSize()public int getTextureFormat()
iTextureManager
getTextureFormat in interface iTextureManageriTextureManager.getTextureFormat()public void prepareMaterials()
iTextureManager
prepareMaterials in interface iTextureManageriTextureManager.prepareMaterials()public void prepareTextures()
iTextureManager
prepareTextures in interface iTextureManageriTextureManager.prepareTextures()public iMaterialHandle registerMaterial(iMaterial material)
iTextureManager
registerMaterial in interface iTextureManagermaterial -
iTextureManager.registerMaterial(crystalspace.jbind.interfaces.ivideo.material.iMaterial)public iMaterialHandle registerMaterial(iTextureHandle txthandle)
iTextureManager
registerMaterial in interface iTextureManagertxthandle -
iTextureManager.registerMaterial(crystalspace.jbind.interfaces.ivideo.texture.iTextureHandle)
public iTextureHandle registerTexture(iImage image,
int flags)
iTextureManager
registerTexture in interface iTextureManagerimage - flags -
iTextureManager.registerTexture(crystalspace.jbind.interfaces.igraphic.image.iImage, int)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||