Mercurial > minori
view dep/animia/src/win.cc @ 179:9c4645100fec
osx: clean up includes, we do not need cocoa
what we *do* need is the very basics that animia already depends on anyway.
these are basically guaranteed to be on any macos system, making it fairly portable
now... I haven't tested this :) I don't have a macos machine right now...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 04 Dec 2023 12:03:36 -0500 |
parents | 80d6b28eb29f |
children | 2d5823df870f |
line wrap: on
line source
#include "animia/win.h" #ifdef WIN32 # include "animia/win/win32.h" #elif MACOSX # include "animia/win/quartz.h" #elif X11 # include "animia/win/x11.h" #endif namespace animia::internal { #ifdef WIN32 win32::Win32WinTools os_win; #elif MACOSX quartz::QuartzWinTools os_win; #elif X11 x11::X11WinTools os_win; #else BaseWinTools os_win; #endif BaseWinTools& win = os_win; } // namespace animia::internal