Package com.ms.com.directX |
|
 Previous |
 Microsoft Packages |
 Index |
 Next |
D3DRMLOAD_ Values
Defines options for the LoadFromFileByPos methods. These options modify how the object is loaded.
- Source flags
- D3DRMLOAD_FROMFILE
- Load from a file. This is the default setting.
- D3DRMLOAD_FROMRESOURCE
- Reserved.
- D3DRMLOAD_FROMMEMORY
- Reserved.
- D3DRMLOAD_FROMSTREAM
- Reserved.
- Identifier flags
- D3DRMLOAD_BYNAME
- Load any object by using a specified name.
- D3DRMLOAD_BYPOSITION
- Load a stand-alone object based on a given zero-based position (that is, the nth object in the file). Stand-alone objects can contain other objects, but are not contained by any other objects.
- D3DRMLOAD_BYGUID
- Load any object by using a specified globally unique identifier (GUID).
- D3DRMLOAD_FIRST
- This is the default setting. Load the first stand-alone object of the given type (for example, a mesh if the application calls LoadFromFileByPos). Stand-alone objects can contain other objects, but are not contained by any other objects.
- Instance flags
- D3DRMLOAD_INSTANCEBYREFERENCE
- Check whether an object already exists with the same name as specified and, if so, use an instance of that object instead of creating a new one.
- D3DRMLOAD_INSTANCEBYCOPYING
- Check whether an object already exists with the same name as specified and, if so, copy that object.
The instance flags do not change the interpretation of any of the parameters. By using the D3DRMLOAD_INSTANCEBYREFERENCE flag, it is possible for an application to load the same file twice without creating any new objects. If an object does not have a name, setting the D3DRMLOAD_INSTANCEBYREFERENCE flag has the same effect as setting the D3DRMLOAD_INSTANCEBYCOPYING flag; the loader creates each unnamed object as a new one, even if some of the objects are identical.