public class TSRTextureManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
|
TSRTextureManager() |
protected |
TSRTextureManager(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
TSRTexture |
aquire(java.lang.String _pResourceName) |
TSRTexture |
aquire(java.lang.String _pResourceName,
int _typeHint) |
TSRTexture |
aquire(java.lang.String _pResourceName,
int _typeHint,
boolean _bLoadImmediately) |
void |
calculatePackedFloatParams(long _uiSizeI,
long _uiSizeJ,
float[] _pafHeights,
TSRVector4 _vPackedFloatParams) |
TSRTexture |
createArrayTexture(SWIGTYPE_p_vectorT_TSRTextureLayer_t _aLayers,
int _uiWidth,
int _uiHeight,
boolean _bGenerateMipMaps) |
TSRTexture |
createGradientTexture(long _uiSize,
boolean _bVertical,
SWIGTYPE_p_std__vectorT_TSRGradientStop_t _aGraidentStops) |
TSRTexture |
createHeightmapOffsetsTexture(long _uiSizeI,
long _uiSizeJ,
float[] _pafXZOffsets) |
TSRTexture |
createHeightmapTexture(long _uiSizeI,
long _uiSizeJ,
float[] _pafHeights,
TSRVector4 _vPackedFloatParams) |
SWIGTYPE_p_TSRPlatformTexture |
createInternalTexture(java.lang.String _pcFileName) |
SWIGTYPE_p_TSRPlatformTexture |
createInternalTexture(SWIGTYPE_p_unsigned_char _pTextureData,
int _uiDataSize) |
void |
delete() |
void |
encodeFloatsIntoRGBA(long _uiSizeI,
long _uiSizeJ,
float[] _pafHeights,
int[] _pDest,
TSRVector4 _vPackedFloatParams) |
protected void |
finalize() |
TSRTexture |
getBlack() |
protected static long |
getCPtr(TSRTextureManager obj) |
TSRTexture |
getDefaultNormal() |
static TSRTextureManager |
getInstance() |
long |
getQueueLength() |
TSRTexture |
getWhite() |
void |
update() |
boolean |
updateHeightmapOffsetTexture(TSRTexture _pTexture,
float[] _pafXZOffsets) |
boolean |
updateHeightmapTexture(TSRTexture _pTexture,
float[] _pafHeights,
TSRVector4 _vPackedFloatParams) |
protected TSRTextureManager(long cPtr, boolean cMemoryOwn)
public TSRTextureManager()
protected static long getCPtr(TSRTextureManager obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public TSRTexture getWhite()
public TSRTexture getBlack()
public TSRTexture getDefaultNormal()
public TSRTexture aquire(java.lang.String _pResourceName, int _typeHint, boolean _bLoadImmediately)
public TSRTexture aquire(java.lang.String _pResourceName, int _typeHint)
public TSRTexture aquire(java.lang.String _pResourceName)
public SWIGTYPE_p_TSRPlatformTexture createInternalTexture(java.lang.String _pcFileName)
public SWIGTYPE_p_TSRPlatformTexture createInternalTexture(SWIGTYPE_p_unsigned_char _pTextureData, int _uiDataSize)
public void update()
public long getQueueLength()
public static TSRTextureManager getInstance()
public TSRTexture createHeightmapTexture(long _uiSizeI, long _uiSizeJ, float[] _pafHeights, TSRVector4 _vPackedFloatParams)
public TSRTexture createHeightmapOffsetsTexture(long _uiSizeI, long _uiSizeJ, float[] _pafXZOffsets)
public boolean updateHeightmapTexture(TSRTexture _pTexture, float[] _pafHeights, TSRVector4 _vPackedFloatParams)
public boolean updateHeightmapOffsetTexture(TSRTexture _pTexture, float[] _pafXZOffsets)
public TSRTexture createGradientTexture(long _uiSize, boolean _bVertical, SWIGTYPE_p_std__vectorT_TSRGradientStop_t _aGraidentStops)
public TSRTexture createArrayTexture(SWIGTYPE_p_vectorT_TSRTextureLayer_t _aLayers, int _uiWidth, int _uiHeight, boolean _bGenerateMipMaps)
public void calculatePackedFloatParams(long _uiSizeI, long _uiSizeJ, float[] _pafHeights, TSRVector4 _vPackedFloatParams)
public void encodeFloatsIntoRGBA(long _uiSizeI, long _uiSizeJ, float[] _pafHeights, int[] _pDest, TSRVector4 _vPackedFloatParams)