| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #ifndef Globals_H
- #define Globals_H
- #include "Critical.h"
- #include "Point.h"
- #ifdef WIN32
- # include "Mouse.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; //! TextureList.h
- class Datei; //! File.h
- class DLLRegister; //! DLLRegister.h
- namespace Logging
- {
- class LoggingHandler; //! LoggingHandler.h
- }
- #ifdef WIN32
- class Maus; //! Mouse.h
- class WFensterArray; //! Window.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 <MouseEvent.h>)
- 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
- //! <KeyboardEvent.h>)
- 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
|