|
TorqueScript Reference
|
Inherits AssetBase.
Public Member Functions | |
| bool | addExplicitCell (int cellOffsetX, int cellOffsetY, int cellWidth, int cellHeight) |
| bool | clearExplicitCells () |
| int | getCellCountX () |
| int | getCellCountY () |
| int | getCellHeight () |
| int | getCellOffsetX () |
| int | getCellOffsetY () |
| bool | getCellRowOrder () |
| int | getCellStrideX () |
| int | getCellStrideY () |
| int | getCellWidth () |
| int | getExplicitCellCount () |
| string | getFilterMode () |
| bool | getForce16Bit () |
| int | getFrameCount () |
| string | getFrameSize (int frame) |
| string | getImageFile () |
| int | getImageHeight () |
| string | getImageSize () |
| int | getImageWidth () |
| bool | getIsImagePOT () |
| bool | insertExplicitCell (int cellIndex, int cellOffsetX, int cellOffsetY, int cellWidth, int cellHeight) |
| bool | removeExplicitCell (int cellIndex) |
| void | setCellCountX (countX) |
| void | setCellCountY (countY) |
| void | setCellHeight (Height) |
| void | setCellOffsetX (offsetX) |
| void | setCellOffsetY (offsetY) |
| void | setCellRowOrder (rowOrder?) |
| void | setCellStrideX (strideX) |
| void | setCellStrideY (strideY) |
| void | setCellWidth (Width) |
| bool | setExplicitCell (int cellIndex, int cellOffsetX, int cellOffsetY, int cellWidth, int cellHeight) |
| void | setFilterMode (mode) |
| void | setForce16Bit (force16Bit?) |
| void | setImageFile (ImageFile) |
Public Member Functions inherited from AssetBase | |
| string | getAssetId () |
| void | refreshAsset () |
Public Member Functions inherited from SimObject | |
| string | call (functionName,[args]*) |
| int | clone ([bool copyDynamicFields?=false]?) |
| void | delete () |
| void | dump () |
| void | dumpClassHierarchy () |
| const char * | getClassName () |
| string | getClassNamespace () |
| string | getDynamicField (index) |
| int | getDynamicFieldCount () |
| string | getField (int index) |
| int | getFieldCount () |
| const char * | getFieldType (fieldName) |
| const char * | getFieldValue (fieldName) |
| int | getGroup () |
| int | getId () |
| string | getInternalName () |
| const char * | getName () |
| string | getProgenitorFile () |
| string | getSuperClassNamespace () |
| int | getType () |
| bool | isChildOfGroup () |
| bool | isMemberOfClass (string classname) |
| bool | isMethod (const char *methodName) |
| bool | isMethod (string method name) |
| bool | isTimerActive () |
| bool | save (fileName,[selectedOnly]?) |
| int | schedule (time, command,[arg]*) |
| void | setClassNamespace () |
| bool | setFieldValue (fieldName, value) |
| void | setInternalName (string InternalName) |
| void | setName (newName) |
| void | setProgenitorFile (file) |
| void | setSuperClassNamespace () |
| bool | startTimer (callbackFunction, float timePeriod,[repeat]?) |
| void | stopTimer () |
Additional Inherited Members | |
Static Public Member Functions inherited from SimObject | |
| static S32 QSORT_CALLBACK | compareFields (const void *a, const void *b) |
| bool addExplicitCell | ( | int | cellOffsetX, |
| int | cellOffsetY, | ||
| int | cellWidth, | ||
| int | cellHeight | ||
| ) |
Add an explicit cell.
| cellOffsetX | The offset in the X axis to the top-left of the cell. |
| cellOffsetY | The offset in the Y axis to the top-left of the cell. |
| cellWidth | The width of the cell. |
| cellHeight | The height of the cell. The image asset must be in explicit mode for this operation to succeed. |
| bool clearExplicitCells | ( | ) |
Clears all explicit cells. The image asset stays in explicit mode however with no explicit cells a single full-frame cell becomes default.
| int getCellCountX | ( | ) |
Gets the CELL count X.
| int getCellCountY | ( | ) |
Gets the CELL count Y.
| int getCellHeight | ( | ) |
Gets the CELL height.
| int getCellOffsetX | ( | ) |
Gets the CELL offset X.
| int getCellOffsetY | ( | ) |
Gets the CELL offset Y.
| bool getCellRowOrder | ( | ) |
Gets whether CELL row order should be used or not.
| int getCellStrideX | ( | ) |
Gets the CELL stride X.
| int getCellStrideY | ( | ) |
Gets the CELL stride Y.
| int getCellWidth | ( | ) |
Gets the CELL width.
| int getExplicitCellCount | ( | ) |
Gets the explicit cell count.
| string getFilterMode | ( | ) |
Gets the filter mode.
| bool getForce16Bit | ( | ) |
Gets whether 16-bit image is forced or not.
| int getFrameCount | ( | ) |
Gets the frame count.
| string getFrameSize | ( | int | frame | ) |
Gets the specified frames size.
| frame | The frame number to use. |
| string getImageFile | ( | ) |
Gets the image file.
| int getImageHeight | ( | ) |
Gets the image height.
| string getImageSize | ( | ) |
Gets the image size.
| int getImageWidth | ( | ) |
Gets the image width.
| bool getIsImagePOT | ( | ) |
Gets whether the image has a power-of-two dimensions or not.
| bool insertExplicitCell | ( | int | cellIndex, |
| int | cellOffsetX, | ||
| int | cellOffsetY, | ||
| int | cellWidth, | ||
| int | cellHeight | ||
| ) |
Insert an explicit cell at the specified index.
| cellIndex | The zero-based index to insert the cell. This will work when no cells are present. If the index is beyond the cell count then the cell is simply added. |
| cellOffsetX | The offset in the X axis to the top-left of the cell. |
| cellOffsetY | The offset in the Y axis to the top-left of the cell. |
| cellWidth | The width of the cell. |
| cellHeight | The height of the cell. The image asset must be in explicit mode for this operation to succeed. |
| bool removeExplicitCell | ( | int | cellIndex | ) |
Remove an explicit cell from the specified index.
| cellIndex | The zero-based index to remove the cell from. |
| void setCellCountX | ( | countX | ) |
Sets the CELL count X.
| void setCellCountY | ( | countY | ) |
Sets the CELL count Y.
| void setCellHeight | ( | Height | ) |
Sets the CELL height.
| void setCellOffsetX | ( | offsetX | ) |
Sets the CELL offset X.
| void setCellOffsetY | ( | offsetY | ) |
Sets the CELL offset Y.
| void setCellRowOrder | ( | rowOrder? | ) |
Sets whether CELL row order should be used or not.
| void setCellStrideX | ( | strideX | ) |
Sets the CELL stride X.
| void setCellStrideY | ( | strideY | ) |
Sets the CELL stride Y.
| void setCellWidth | ( | Width | ) |
Sets the CELL width.
| bool setExplicitCell | ( | int | cellIndex, |
| int | cellOffsetX, | ||
| int | cellOffsetY, | ||
| int | cellWidth, | ||
| int | cellHeight | ||
| ) |
Set an explicit cell at the specified index.
| cellIndex | The zero-based index to insert the cell. This will work when no cells are present. If the index is beyond the cell count then the cell is simply added. |
| cellOffsetX | The offset in the X axis to the top-left of the cell. |
| cellOffsetY | The offset in the Y axis to the top-left of the cell. |
| cellWidth | The width of the cell. |
| cellHeight | The height of the cell. The image asset must be in explicit mode for this operation to succeed. |
| void setFilterMode | ( | mode | ) |
Sets the filter mode.
| void setForce16Bit | ( | force16Bit? | ) |
Sets whether 16-bit image is forced or not.
| void setImageFile | ( | ImageFile | ) |
Sets the image file (bitmap file).
1.8.3.1