#ifndef Globals_H #define Globals_H #include "Critical.h" #include "Punkt.h" #ifdef WIN32 # include "Maus.h" #endif #ifndef Global # define Global extern #endif struct HINSTANCE__; //! windows.h namespace Framework { class ThreadRegister; //! Thread.h class Thread; //! Thread.h class Model3DList; //! Model3DList.h class TexturList; //! TexturList.h class Datei; //! Datei.h class DLLRegister; //! DLLRegister.h namespace Logging { class LoggingHandler; //! LoggingHandler.h } #ifdef WIN32 class Maus; //! Maus.h class WFensterArray; //! Fenster.h Global WFensterArray WFensterA; Global bool MausTrack; Global Maus MausZeiger; Global bool msgExit; #endif Global bool MausStand[3]; Global bool istInitialisiert; Global ThreadRegister* thRegister; Global Critical logC; Global HINSTANCE__* _hinst; Global DLLRegister* dlls; Global bool debugDX; Global bool cursorVisible; Global Logging::LoggingHandler* loggingHandler; #ifdef WIN32 //! Returns the mouse coordinates on the screen DLLEXPORT Punkt getMausPos(); //! Sets the position of the mouse on the screen DLLEXPORT void setMausPos(const Punkt& pos); #endif //! Returns whether a mouse button is currently pressed //! \param taste The button to check //! Example: getMausStand( M_Links ); (Requires include ) DLLEXPORT bool getMausStand(int taste); //! Returns whether a keyboard key is currently pressed //! \param taste The key to check //! Example: getTastenStand( T_Enter ); (Requires include //! ) DLLEXPORT bool getTastenStand(unsigned char taste); //! Initializes the framework. //! Called automatically in the framework's (WinMain) DLLEXPORT void initFramework(HINSTANCE__* hInst = 0); //! Releases the memory used by (initFramework). //! Called automatically in the framework's (WinMain) DLLEXPORT void releaseFramework(); //! Checks whether a specific pointer points to a valid Thread object //! \param t The pointer to check //! \return 1 if the pointer is valid. 0 if the pointer does not //! point to an existing Thread object DLLEXPORT bool istThreadOk(Thread* t); //! Returns the framework's thread register DLLEXPORT ThreadRegister* getThreadRegister(); //! Returns the DLL register containing all currently dynamically loaded //! DLL files DLLEXPORT DLLRegister* getDLLRegister(); //! Sets DirectX to debug mode DLLEXPORT void setDebugDX(bool debug); #ifdef WIN32 //! Returns a reference to the mouse DLLEXPORT Maus& getMaus(); //! Sets the mouse cursor visibility DLLEXPORT void setShowCursor(bool visible); #endif } // namespace Framework #endif