/** Exits from the SoundPointer module */ void orxFASTCALL orxSoundPointer_Exit() { /* Initialized? */ if(sstSoundPointer.u32Flags & orxSOUNDPOINTER_KU32_STATIC_FLAG_READY) { /* Removes event handler */ orxEvent_RemoveHandler(orxEVENT_TYPE_OBJECT, orxSoundPointer_EventHandler); /* Deletes SoundPointer list */ orxSoundPointer_DeleteAll(); /* Unregisters structure type */ orxStructure_Unregister(orxSTRUCTURE_ID_SOUNDPOINTER); /* Updates flags */ sstSoundPointer.u32Flags &= ~orxSOUNDPOINTER_KU32_STATIC_FLAG_READY; } else { /* Logs message */ orxDEBUG_PRINT(orxDEBUG_LEVEL_SOUND, "Tried to exit Sound Pointer module when it wasn't initialized."); } /* Done! */ return; }
/** Exits from Camera module */ void orxFASTCALL orxCamera_Exit() { /* Initialized? */ if(sstCamera.u32Flags & orxCAMERA_KU32_STATIC_FLAG_READY) { /* Deletes camera list */ orxCamera_DeleteAll(); /* Unregisters structure type */ orxStructure_Unregister(orxSTRUCTURE_ID_CAMERA); /* Deletes reference table */ orxHashTable_Delete(sstCamera.pstReferenceTable); /* Updates flags */ sstCamera.u32Flags &= ~orxCAMERA_KU32_STATIC_FLAG_READY; } else { /* Logs message */ orxDEBUG_PRINT(orxDEBUG_LEVEL_RENDER, "Tried to exit camera module when it wasn't initialized."); } return; }
/** Exits from the text module */ void orxFASTCALL orxText_Exit() { /* Initialized? */ if(sstText.u32Flags & orxTEXT_KU32_STATIC_FLAG_READY) { /* Deletes text list */ orxText_DeleteAll(); /* Removes event handlers */ orxEvent_RemoveHandler(orxEVENT_TYPE_RESOURCE, orxText_EventHandler); orxEvent_RemoveHandler(orxEVENT_TYPE_LOCALE, orxText_EventHandler); /* Unregisters structure type */ orxStructure_Unregister(orxSTRUCTURE_ID_TEXT); /* Updates flags */ sstText.u32Flags &= ~orxTEXT_KU32_STATIC_FLAG_READY; } else { /* Logs message */ orxDEBUG_PRINT(orxDEBUG_LEVEL_DISPLAY, "Tried to exit text module when it wasn't initialized."); } return; }
/** Exits from the Graphic module */ void orxFASTCALL orxGraphic_Exit() { /* Initialized? */ if(sstGraphic.u32Flags & orxGRAPHIC_KU32_STATIC_FLAG_READY) { /* Deletes graphic list */ orxGraphic_DeleteAll(); /* Removes event handler */ orxEvent_RemoveHandler(orxEVENT_TYPE_LOCALE, orxGraphic_EventHandler); /* Unregisters structure type */ orxStructure_Unregister(orxSTRUCTURE_ID_GRAPHIC); /* Updates flags */ sstGraphic.u32Flags &= ~orxGRAPHIC_KU32_STATIC_FLAG_READY; } else { /* Logs message */ orxDEBUG_PRINT(orxDEBUG_LEVEL_DISPLAY, "Tried to exit graphic module when it wasn't initialized."); } return; }
/** Exits from the FXPointer module */ void orxFASTCALL orxFXPointer_Exit() { /* Initialized? */ if(sstFXPointer.u32Flags & orxFXPOINTER_KU32_STATIC_FLAG_READY) { /* Deletes FXPointer list */ orxFXPointer_DeleteAll(); /* Unregisters structure type */ orxStructure_Unregister(orxSTRUCTURE_ID_FXPOINTER); /* Updates flags */ sstFXPointer.u32Flags &= ~orxFXPOINTER_KU32_STATIC_FLAG_READY; } else { /* Logs message */ orxDEBUG_PRINT(orxDEBUG_LEVEL_OBJECT, "Tried to exit FX pointer module when it wasn't initialized."); } return; }
/** Exits from the TimeLine module */ void orxFASTCALL orxTimeLine_Exit() { /* Initialized? */ if(sstTimeLine.u32Flags & orxTIMELINE_KU32_STATIC_FLAG_READY) { orxTIMELINE_TRACK *pstTrack; /* Removes event handler */ orxEvent_RemoveHandler(orxEVENT_TYPE_RESOURCE, orxTimeLine_EventHandler); /* Deletes TimeLine list */ orxTimeLine_DeleteAll(); /* Unregisters structure type */ orxStructure_Unregister(orxSTRUCTURE_ID_TIMELINE); /* For all remaining tracks */ while(orxHashTable_GetNext(sstTimeLine.pstTrackTable, orxNULL, orxNULL, (void **)&pstTrack) != orxHANDLE_UNDEFINED) { /* Deletes it */ orxTimeLine_DeleteTrack(pstTrack); } /* Deletes track table */ orxHashTable_Delete(sstTimeLine.pstTrackTable); /* Updates flags */ sstTimeLine.u32Flags &= ~orxTIMELINE_KU32_STATIC_FLAG_READY; } else { /* Logs message */ orxDEBUG_PRINT(orxDEBUG_LEVEL_OBJECT, "Tried to exit from the TimeLine module when it wasn't initialized."); } /* Done! */ return; }
/** Exits from clock module */ void orxFASTCALL orxClock_Exit() { /* Initialized? */ if(sstClock.u32Flags & orxCLOCK_KU32_STATIC_FLAG_READY) { /* Deletes all the clocks */ orxClock_DeleteAll(); /* Deletes timer bank */ orxBank_Delete(sstClock.pstTimerBank); sstClock.pstTimerBank = orxNULL; /* Deletes reference table */ orxHashTable_Delete(sstClock.pstReferenceTable); /* Unregisters structure type */ orxStructure_Unregister(orxSTRUCTURE_ID_CLOCK); /* Updates flags */ sstClock.u32Flags &= ~orxCLOCK_KU32_STATIC_FLAG_READY; } return; }