void registerTXDPlugins( void ) { // First register the main serialization plugins. // Those are responsible for detecting texture dictionaries and native textures in RW streams. // The sub module plugins depend on those. texDictionaryStreamStore.RegisterPlugin( engineFactory ); registerNativeTexturePlugins(); // Register pure sub modules. registerResizeFilteringEnvironment(); }
// Interface creation for the RenderWare engine. Interface* CreateEngine( LibraryVersion theVersion ) { if ( hasInitialized == false ) { // Verify data constants before we create a valid engine. if ( VerifyLibraryIntegrity() ) { // Configuration comes first. registerConfigurationEnvironment(); // Initialize our plugins first. refCountRegister.RegisterPlugin( engineFactory ); rwlockProvider.RegisterPlugin( engineFactory ); // Now do the main modules. registerThreadingEnvironment(); registerWarningHandlerEnvironment(); registerRasterConsistency(); registerEventSystem(); registerStreamGlobalPlugins(); registerFileSystemDataRepository(); registerSerializationPlugins(); registerObjectExtensionsPlugins(); registerTXDPlugins(); registerImagingPlugin(); registerWindowingSystem(); registerDriverEnvironment(); registerDrawingLayerEnvironment(); // After all plugins registered themselves, we know that // each configuration entry is properly initialized. // Now we can create a configuration block in the interface! registerConfigurationBlockDispatching(); hasInitialized = true; } } Interface *engineOut = NULL; if ( hasInitialized == true ) { // Create a specialized engine depending on the version. engineOut = engineFactory.Construct( _engineMemAlloc ); if ( engineOut ) { engineOut->SetVersion( theVersion ); } } return engineOut; }
void registerMobileUNCNativePlugin( void ) { uncNativeTexturePlugin.RegisterPlugin( engineFactory ); }
void registerRasterSizeBlurPlugin( void ) { resizeFilterBlurPluginRegister.RegisterPlugin( engineFactory ); }
void registerD3D8NativePlugin( void ) { d3dNativeTexturePluginRegister.RegisterPlugin( engineFactory ); }