18 #define GLEWAPI extern 21 #define GLEWAPI extern __declspec(dllexport) 23 #define GLEWAPI extern __declspec(dllimport) 29 #ifdef _WIN32 // Windows 33 #elif __linux__ // Linux 35 #include <X11/Xatom.h> 38 #error "Not Supported Yet or Unknown compiler" 41 #include <Utility/UnorderedMap/NRE_UnorderedMap.hpp> 42 #include <Utility/Singleton/NRE_Singleton.hpp> 43 #include <Utility/Id/NRE_Id.hpp> 56 typedef std::size_t Id;
58 #ifdef _WIN32 // Windows 59 typedef HWND NativeWindowType;
60 #elif __linux__ // Linux 61 typedef Window NativeWindowType;
69 friend Utility::Singleton<GraphicsDriver>;
71 #ifdef __linux__ // Linux 75 Utility::UnorderedMap<NativeWindowType, Id> windows;
92 #ifdef __linux__ // Linux 96 Display* getDisplay();
100 Atom& getCloseAtom();
118 Id
findId(NativeWindowType window)
const;
139 #include "NRE_GraphicsDriver.tpp" 140 #ifdef _WIN32 // Windows 141 #include "../../../OS/Windows/Graphics/Driver/NRE_WindowsGraphicsDriver.tpp" 142 #elif __linux__ // Linux 143 #include "../../../OS/Linux/Graphics/Driver/NRE_LinuxGraphicsDriver.tpp" Manage the os-dependant graphics driver.
Definition: NRE_GraphicsDriver.hpp:68
GraphicsDriver & operator=(GraphicsDriver &&drv)=delete
void unregisterWindow(NativeWindowType window)
The NearlyRealEngine's global namespace.
void registerWindow(NativeWindowType window, Id id)
Id findId(NativeWindowType window) const
Definition: NRE_GraphicsDriver.cpp:15