Multi-Threading with the SoftPixel Engine

Since version 3.2 the SoftPixel Engine was new designed to support multi-threading in some parts. These are the currently supported features which can be used in combination with multi-threading:

Loading Textures:

 THREAD_PROC(MyThreadProc)
 {
     // Activate shared render context
     MySharedContext->activate();
     
     // Load some textures:
     spRenderer->loadTexture(...);
     ...
     
     // Deactivate shared render context that the loaded
     // textures can be used in the main thread
     MySharedContext->deactivate();
     
     return 0;
 }
 
 ...
 
 // Create the shared render context
 MySharedContext = spContext->createSharedContext();
 
 // Create and start my thread function
 ThreadManager MyThread(MyThreadProc);
 
 ...
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines