funcLib.c

Go to the documentation of this file.
00001 #include "funclib.h"
00002 #include <pspdebug.h>
00003 #include <pspfpu.h>
00004 
00005 #if FL_INCLUDE_ALL_C == 0
00006 #include "flCallbacks.h"
00007 #include "flDebug.h"
00008 #include "flMemory.h"
00009 #include "flGraphics.h"
00010 #include "flGraphicsSimple.h"
00011 #include "flInput.h"
00012 #include "flTexture.h"
00013 #include "flFont.h"
00014 #include "flMath.h"
00015 #include "flModel.h"
00016 #include "flNotify.h"
00017 #endif
00018 
00019 bool flRunning = false;
00020 
00021 void flInitialize() {
00022      flRunning = true;
00023      
00024      pspfpu_set_enable(0);
00025      pspDebugScreenInit();
00026      
00027      #if FL_DEBUG != 0
00028      debugInit();
00029      #if FL_DEBUG_STATUS != 0
00030      debugStatusLog("FuncLib Initializing.");
00031      #endif
00032      #endif
00033      
00034      #if FL_CALLBACKS != 0
00035      callbackInit();
00036      #if FL_DEBUG_STATUS != 0
00037      debugStatusLog("Callbacks Initialized.");
00038      #endif
00039      #endif
00040      
00041      #if FL_MATH != 0
00042      mathInit();
00043      #if FL_DEBUG_STATUS != 0
00044      debugStatusLog("Math Initialized.");
00045      #endif
00046      #endif
00047      
00048      #if FL_MEMORY != 0
00049      memInit();
00050      #if FL_DEBUG_STATUS != 0
00051      debugStatusLog("Memory Initialized.");
00052      #endif
00053      #endif
00054      
00055      #if FL_GRAPHICS != 0
00056      graphicsInit();
00057      graphicsSetProjection();
00058      #if FL_DEBUG_STATUS != 0
00059      debugStatusLog("Graphics Initialized.");
00060      #endif
00061      #endif
00062      
00063      #if FL_TEXTURE != 0
00064      texInit();
00065      #if FL_DEBUG_STATUS != 0
00066      debugStatusLog("Texture Initialized.");
00067      #endif
00068      #endif
00069      
00070      #if FL_INPUT != 0
00071      inputInit();
00072      #if FL_DEBUG_STATUS != 0
00073      debugStatusLog("Input Initialized.");
00074      #endif
00075      #endif
00076      
00077      #if FL_FONT != 0
00078      fontInit();
00079      #if FL_DEBUG_STATUS != 0
00080      debugStatusLog("Font Initialized.");
00081      #endif
00082      #endif
00083      
00084      #if FL_MODEL != 0
00085      mdlInit();
00086      #if FL_DEBUG_STATUS != 0
00087      debugStatusLog("Model Initialized.");
00088      #endif
00089      #endif
00090      
00091      #if FL_NOTIFY != 0
00092      ntfyInit();
00093      #if FL_DEBUG_STATUS != 0
00094      debugStatusLog("Notify Initialized.");
00095      #endif
00096      #endif
00097      
00098      #if FL_DEBUG_STATUS != 0
00099      debugStatusLog("FuncLib Initialized.");
00100      #endif
00101 }
00102 
00103 void flTerminate() {
00104      #if FL_DEBUG_STATUS != 0
00105      debugStatusLog("FuncLib Terminating.");
00106      #endif
00107      
00108      #if FL_MEMORY != 0
00109      memTerm();
00110      #endif
00111      
00112      #if FL_DEBUG_STATUS != 0
00113      debugStatusLog("FuncLib Terminated.");
00114      #endif
00115      
00116      flRunning = false;
00117      sceKernelExitGame();
00118 }
00119 
00120 #if FL_INCLUDE_ALL_C != 0
00121 #include "flIncludeC.h"
00122 #endif

Generated on Wed Sep 5 19:04:01 2007 for funcLib by  doxygen 1.5.1