mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 18:16:31 +03:00
49 lines
834 B
C++
49 lines
834 B
C++
#ifndef EE_WINDOWCONTEXT_HPP
|
|
#define EE_WINDOWCONTEXT_HPP
|
|
|
|
#include <eepp/config.hpp>
|
|
|
|
#ifdef EE_GLEW_AVAILABLE
|
|
#if defined( EE_X11_PLATFORM )
|
|
#ifdef __sun
|
|
struct __glXContextRec;
|
|
#else
|
|
struct __GLXcontextRec;
|
|
#endif
|
|
#elif EE_PLATFORM == EE_PLATFORM_MACOS
|
|
struct __AGLContextRec;
|
|
#endif
|
|
#endif
|
|
|
|
namespace EE { namespace Window {
|
|
|
|
#ifdef EE_GLEW_AVAILABLE
|
|
#if EE_PLATFORM == EE_PLATFORM_WIN
|
|
|
|
typedef void* eeWindowContex;
|
|
|
|
#elif defined( EE_X11_PLATFORM )
|
|
|
|
#ifdef __sun
|
|
typedef struct __glXContextRec* GLXContext;
|
|
#else
|
|
typedef struct __GLXcontextRec* GLXContext;
|
|
#endif
|
|
|
|
typedef GLXContext eeWindowContex;
|
|
|
|
#elif EE_PLATFORM == EE_PLATFORM_MACOS
|
|
|
|
typedef struct __AGLContextRec* AGLContext;
|
|
|
|
typedef AGLContext eeWindowContex;
|
|
|
|
#endif
|
|
#else
|
|
typedef unsigned int eeWindowContex; //! Fallback
|
|
#endif
|
|
|
|
}} // namespace EE::Window
|
|
|
|
#endif
|