enum LoadConstants { LoadAll = 0x00000000, LoadWaitCompletion = 0x00000001, LoadWaitFrame1 = 0x00000002, LoadOrdered = 0x00000010, LoadOnThread = 0x00000040, LoadKeepBindData = 0x00000080, LoadImageFiles = 0x00010000, LoadDisableSWF = 0x00080000, LoadDisableImports = 0x00100000, LoadQuietOpen = 0x00200000, LoadDebugHeap = 0x10000000 };
LoadConstants enumeration contains flags that describe which data components of the SWF file are loaded and how the library is used by the CreateMovie function. Specifying different flags allows you to skip loading images or resolving imports during loading, allowing for this to be done manually in a custom manner.
Members |
Description |
LoadAll = 0x00000000 |
Default. |
LoadWaitCompletion = 0x00000001 |
Waits until all of the loading is completed before returning MovieDef. |
LoadWaitFrame1 = 0x00000002 |
Waits until loading of the frame is completed before returning MovieDef. |
LoadOrdered = 0x00000010 |
Specifies ordered binding, where resources are loaded after main data file. If not specified, resource loading will be interleaved with resource and import binding. |
LoadOnThread = 0x00000040 |
This flag should be set if CreateMovie is called not on the main thread. The flag is needed in case texture creation has to be postponed until the renderer needs them on the main thread. |
LoadKeepBindData = 0x00000080 |
Set to preserve Creator bind data. If set image/resource data used for creation will be kept so that it can be re-bound with a different creator instance if necessary. A legacy flag and generally not used anymore in the application. |
LoadImageFiles = 0x00010000 |
Set this flag to allow images to be loaded into root MovieDef; file formats will be detected automatically. |
LoadDisableSWF = 0x00080000 |
Set to disable loading of SWF files; only GFx content is allowed. |
LoadDisableImports = 0x00100000 |
Disables loading of imports. Files loaded without imports may not be functional. This is primarily used for 'GFxExport' tool. |
LoadQuietOpen = 0x00200000 |
Disables logging error message if requested file is not found. |
LoadDebugHeap = 0x10000000 |
Marks all loaded/created heaps with UserDebug flag, so that they can be subtracted from the memory reports. Used only for Loader constructor. |
GFx_Loader.h