We do not use the image rendering part anyhow, so just disable it for now. If we want to use it we will need a modified implementation anyhow to integrate with OpenSceneGraph threaded OpenGL resource management.
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
|
|
#ifndef __SHCONFIG_H
|
|
#define __SHCONFIG_H
|
|
|
|
////////////////////////////////////////////////////////////
|
|
// Identify the operating system
|
|
////////////////////////////////////////////////////////////
|
|
#if defined(_WIN32) || defined(__WIN32__)
|
|
|
|
// Windows
|
|
#define VG_API_WINDOWS
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#endif
|
|
#ifndef NOMINMAX
|
|
#define NOMINMAX
|
|
#endif
|
|
|
|
#elif defined(linux) || defined(__linux)
|
|
|
|
// Linux
|
|
#define VG_API_LINUX
|
|
|
|
#elif defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh)
|
|
|
|
// MacOS
|
|
#define VG_API_MACOSX
|
|
|
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
|
|
|
// FreeBSD
|
|
#define VG_API_FREEBSD
|
|
|
|
#else
|
|
|
|
// Unsupported system
|
|
#error This operating system is not supported by SFML library
|
|
|
|
#endif
|
|
|
|
// We currently do not support using images (inside paths). If we were going to
|
|
// use it loading and unloading needs to happen within OpenSceneGraph to handle
|
|
// synchronization correctly in multithreading mode.
|
|
#define SH_NO_IMAGE
|
|
|
|
#endif // __SHCONFIG_H
|