Provides Array Visualizer with information about how the given array data is to be interpreted as an array with particular dimensions and data of a particular type.
Parameters
Data Type | Code |
AGL_UCHAR | 4096 |
AGL_CHAR | 4097 |
AGL_USHORT | 4098 |
AGL_SHORT | 4099 |
AGL_ULONG | 4100 |
AGL_LONG | 4101 |
AGL_FLOAT | 4102 |
AGL_DOUBLE | 4103 |
AGL_ULLONG | 4104 |
AGL_LLONG | 4105 |
Return Value
Returns the value 0 if the call is successful; any other value indicates failure.
Remarks
Caution: The product of the dimension sizes, when multiplied times the number of bytes required for each data element, must be exactly equal to the number of bytes in the array, as requested of, and allocated by aglMalloc. Otherwise, the error AGL_ERROR_RESHAPE_INVALID is returned and the call fails.
See Also