#ifndef SAMPLEFRAMEWORK_H_ #define SAMPLEFRAMEWORK_H_ void SfwOpenWindow(const char* title); void SfwCloseWindow(); void SfwUpdate(); bool SfwIsDone(); void SfwSetInputManager(gainput::InputManager* manager); int SfwGetWidth(); int SfwGetHeight(); #if defined(GAINPUT_PLATFORM_LINUX) #include Display* SfwGetXDisplay(); #include #define SFW_LOG(...) printf(__VA_ARGS__); #elif defined(GAINPUT_PLATFORM_WIN) #define WIN32_LEAN_AND_MEAN #define NOMINMAX #include HWND SfwGetHWnd(); #include #define SFW_LOG(...) { char buf[1024]; sprintf(buf, __VA_ARGS__); OutputDebugStringA(buf); } #elif defined(GAINPUT_PLATFORM_ANDROID) #include #define SFW_LOG(...) ((void)__android_log_print(ANDROID_LOG_INFO, "gainput", __VA_ARGS__)) #elif defined(GAINPUT_PLATFORM_MAC) #include #define SFW_LOG(...) printf(__VA_ARGS__); #endif #endif