|
|||||||||||
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 iBase
getVersion
in class csBase
public java.lang.String getName()
iBase
getName
in interface iBase
getName
in class csBase
public static void initSCF()
public void setVerbose(boolean vb)
iTextureManager
setVerbose
in interface iTextureManager
vb
- 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 iTextureManager
width
- height
-
iTextureManager.createSuperLightmap(int, int)
public void freeImages()
iTextureManager
freeImages
in interface iTextureManager
iTextureManager.freeImages()
public void freeMaterials()
iTextureManager
freeMaterials
in interface iTextureManager
iTextureManager.freeMaterials()
public float[] getLightmapRendererCoords(int slmWidth, int slmHeight, int lm_x1, int lm_y1, int lm_x2, int lm_y2)
iTextureManager
getLightmapRendererCoords
in interface iTextureManager
slmWidth
- slmHeight
- lm_x1
- lm_y1
- lm_x2
- lm_y2
-
iTextureManager.getLightmapRendererCoords(int, int, int, int, int, int)
public int[] getMaxTextureSize()
iTextureManager
getMaxTextureSize
in interface iTextureManager
iTextureManager.getMaxTextureSize()
public int getTextureFormat()
iTextureManager
getTextureFormat
in interface iTextureManager
iTextureManager.getTextureFormat()
public void prepareMaterials()
iTextureManager
prepareMaterials
in interface iTextureManager
iTextureManager.prepareMaterials()
public void prepareTextures()
iTextureManager
prepareTextures
in interface iTextureManager
iTextureManager.prepareTextures()
public iMaterialHandle registerMaterial(iMaterial material)
iTextureManager
registerMaterial
in interface iTextureManager
material
-
iTextureManager.registerMaterial(crystalspace.jbind.interfaces.ivideo.material.iMaterial)
public iMaterialHandle registerMaterial(iTextureHandle txthandle)
iTextureManager
registerMaterial
in interface iTextureManager
txthandle
-
iTextureManager.registerMaterial(crystalspace.jbind.interfaces.ivideo.texture.iTextureHandle)
public iTextureHandle registerTexture(iImage image, int flags)
iTextureManager
registerTexture
in interface iTextureManager
image
- 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 |