diff --git a/src/cocoa_platform.h b/src/cocoa_platform.h index 0e92c4a25..4eb56e228 100644 --- a/src/cocoa_platform.h +++ b/src/cocoa_platform.h @@ -138,12 +138,4 @@ void _glfwTerminateJoysticks(void); GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired); void _glfwRestoreVideoMode(_GLFWmonitor* monitor); -// OpenGL support -int _glfwInitContextAPI(void); -void _glfwTerminateContextAPI(void); -int _glfwCreateContext(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWfbconfig* fbconfig); -void _glfwDestroyContext(_GLFWwindow* window); - #endif // _cocoa_platform_h_ diff --git a/src/egl_platform.h b/src/egl_platform.h index 1109eb9be..db9d837e5 100644 --- a/src/egl_platform.h +++ b/src/egl_platform.h @@ -77,4 +77,18 @@ typedef struct _GLFWlibraryEGL } _GLFWlibraryEGL; +//======================================================================== +// Prototypes for platform specific internal functions +//======================================================================== + +int _glfwInitContextAPI(void); +void _glfwTerminateContextAPI(void); +int _glfwCreateContext(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig); +void _glfwDestroyContext(_GLFWwindow* window); +int _glfwAnalyzeContext(const _GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig); + #endif // _egl_platform_h_ diff --git a/src/glx_platform.h b/src/glx_platform.h index 4b133a2d4..a8aaeeb6e 100644 --- a/src/glx_platform.h +++ b/src/glx_platform.h @@ -122,4 +122,15 @@ typedef struct _GLFWlibraryGLX } _GLFWlibraryGLX; +//======================================================================== +// Prototypes for platform specific internal functions +//======================================================================== + +int _glfwInitContextAPI(void); +void _glfwTerminateContextAPI(void); +int _glfwCreateContext(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig); +void _glfwDestroyContext(_GLFWwindow* window); + #endif // _glx_platform_h_ diff --git a/src/nsgl_platform.h b/src/nsgl_platform.h index 31da2f675..79158b57e 100644 --- a/src/nsgl_platform.h +++ b/src/nsgl_platform.h @@ -61,4 +61,15 @@ typedef struct _GLFWlibraryNSGL } _GLFWlibraryNSGL; +//======================================================================== +// Prototypes for platform specific internal functions +//======================================================================== + +int _glfwInitContextAPI(void); +void _glfwTerminateContextAPI(void); +int _glfwCreateContext(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig); +void _glfwDestroyContext(_GLFWwindow* window); + #endif // _nsgl_platform_h_ diff --git a/src/wgl_platform.h b/src/wgl_platform.h index bffdf742b..ae17a16ef 100644 --- a/src/wgl_platform.h +++ b/src/wgl_platform.h @@ -85,4 +85,18 @@ typedef struct _GLFWlibraryWGL } _GLFWlibraryWGL; +//======================================================================== +// Prototypes for platform specific internal functions +//======================================================================== + +int _glfwInitContextAPI(void); +void _glfwTerminateContextAPI(void); +int _glfwCreateContext(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig); +void _glfwDestroyContext(_GLFWwindow* window); +int _glfwAnalyzeContext(const _GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig); + #endif // _wgl_platform_h_ diff --git a/src/win32_platform.h b/src/win32_platform.h index 11d774b71..7b626e8cf 100644 --- a/src/win32_platform.h +++ b/src/win32_platform.h @@ -238,17 +238,6 @@ void _glfwInitTimer(void); void _glfwInitJoysticks(void); void _glfwTerminateJoysticks(void); -// OpenGL support -int _glfwInitContextAPI(void); -void _glfwTerminateContextAPI(void); -int _glfwCreateContext(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWfbconfig* fbconfig); -void _glfwDestroyContext(_GLFWwindow* window); -int _glfwAnalyzeContext(const _GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWfbconfig* fbconfig); - // Fullscreen support GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired); void _glfwRestoreVideoMode(_GLFWmonitor* monitor); diff --git a/src/x11_platform.h b/src/x11_platform.h index 603ad817a..0f760e9c3 100644 --- a/src/x11_platform.h +++ b/src/x11_platform.h @@ -239,14 +239,6 @@ void _glfwInitTimer(void); // Gamma void _glfwInitGammaRamp(void); -// OpenGL support -int _glfwInitContextAPI(void); -void _glfwTerminateContextAPI(void); -int _glfwCreateContext(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWfbconfig* fbconfig); -void _glfwDestroyContext(_GLFWwindow* window); - // Fullscreen support void _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired); void _glfwRestoreVideoMode(_GLFWmonitor* monitor);