filename
Filename associated with the buffer. The extension of the filename will tell Vizard what image format the buffer provides (jpg, gif, bmp, etc..)
This command will load a texture using data from memory, instead of a file. The filename must contain the same extension as the format the buffer represents.
If the
viz.LOAD_ASYNC flag is set, the texture will be loaded asynchronously. In this case, the command will return immediately with a valid texture handle. The status of the async operation can be queried using the
<texture>.getAsyncStatus command. When the async operation completes, due to either success or failure, a
viz.ASYNC_EVENT will be triggered. The
<vizact>.onAsyncLoad or
<viztask>.waitAsyncLoad commands can be used to automatically process this event for a specified texture.