|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object crystalspace.jbind.impl.csNativeObject crystalspace.jbind.impl.csutil.scf.csBase crystalspace.jbind.impl.video.texture.csTextureHandle
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Fields inherited from interface crystalspace.jbind.interfaces.ivideo.texture.iTextureHandle |
CS_TEX_IMG_1D, CS_TEX_IMG_2D, CS_TEX_IMG_3D, CS_TEX_IMG_CUBEMAP, CS_TEXTURE_CUBE_NEG_X, CS_TEXTURE_CUBE_NEG_Y, CS_TEXTURE_CUBE_NEG_Z, CS_TEXTURE_CUBE_POS_X, CS_TEXTURE_CUBE_POS_Y, CS_TEXTURE_CUBE_POS_Z |
Constructor Summary | |
csTextureHandle(iPointer nPointer)
|
Method Summary | |
boolean |
getAlphaMap()
Query if the texture has an alpha channel. |
iPointer |
getCacheData()
Get data associated internally with this texture by texture cache. |
iGraphics2D |
getCanvas()
Get a canvas instance which is suitable for rendering on this texture. |
int |
getFlags()
Retrieve the flags set for this texture. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
byte[] |
getKeyColor()
Get the key color. |
boolean |
getKeyColorStatus()
Get the key color status (false if disabled, true if enabled);. |
byte[] |
getMeanColor()
Get the mean color. |
int[] |
getMipMapDimensions()
Get the dimensions for a given mipmap level (0 to 3);. |
java.lang.String |
getName()
Return the name of the interface |
int[] |
getOriginalDimensions()
Return the original dimensions of the image used to create this texture. |
int |
getVersion()
Return the version of the interface |
static void |
initSCF()
|
protected boolean |
isNativePointerValidSafe()
|
void |
prepare()
Merge this texture into current palette, compute mipmaps and so on. |
void |
setCacheData(iPointer d)
Set data associated internally with this texture by texture cache. |
void |
setKeyColor(byte red,
byte green,
byte blue)
Set the key color. |
void |
setKeyColorStatus(boolean Enable)
Enable key color. |
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 csTextureHandle(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 static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
protected boolean isNativePointerValidSafe()
public boolean getAlphaMap()
iTextureHandle
getAlphaMap
in interface iTextureHandle
iTextureHandle.getAlphaMap()
public iPointer getCacheData()
iTextureHandle
getCacheData
in interface iTextureHandle
iTextureHandle.getCacheData()
public iGraphics2D getCanvas()
iTextureHandle
getCanvas
in interface iTextureHandle
iTextureHandle.getCanvas()
public int getFlags()
iTextureHandle
getFlags
in interface iTextureHandle
iTextureHandle.getFlags()
public byte[] getKeyColor()
iTextureHandle
getKeyColor
in interface iTextureHandle
iTextureHandle.getKeyColor()
public boolean getKeyColorStatus()
iTextureHandle
getKeyColorStatus
in interface iTextureHandle
iTextureHandle.getKeyColorStatus()
public byte[] getMeanColor()
iTextureHandle
getMeanColor
in interface iTextureHandle
iTextureHandle.getMeanColor()
public int[] getMipMapDimensions()
iTextureHandle
getMipMapDimensions
in interface iTextureHandle
iTextureHandle.getMipMapDimensions()
public int[] getOriginalDimensions()
iTextureHandle
getOriginalDimensions
in interface iTextureHandle
iTextureHandle.getOriginalDimensions()
public void prepare()
iTextureHandle
prepare
in interface iTextureHandle
iTextureHandle.prepare()
public void setCacheData(iPointer d)
iTextureHandle
setCacheData
in interface iTextureHandle
d
- iTextureHandle.setCacheData(crystalspace.jbind.interfaces.iPointer)
public void setKeyColor(byte red, byte green, byte blue)
iTextureHandle
setKeyColor
in interface iTextureHandle
red
- green
- blue
- iTextureHandle.setKeyColor(byte, byte, byte)
public void setKeyColorStatus(boolean Enable)
iTextureHandle
setKeyColorStatus
in interface iTextureHandle
Enable
- iTextureHandle.setKeyColorStatus(boolean)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |