1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-27 04:28:52 -05:00

Renamed context module headers.

This commit is contained in:
Camilla Berglund 2014-04-08 16:25:35 +02:00
parent 8113c00712
commit 7c925353a5
10 changed files with 25 additions and 25 deletions

View File

@ -38,16 +38,16 @@ elseif (_GLFW_WAYLAND)
endif() endif()
if (_GLFW_EGL) if (_GLFW_EGL)
list(APPEND glfw_HEADERS ${common_HEADERS} egl_platform.h) list(APPEND glfw_HEADERS ${common_HEADERS} egl_context.h)
list(APPEND glfw_SOURCES ${common_SOURCES} egl_context.c) list(APPEND glfw_SOURCES ${common_SOURCES} egl_context.c)
elseif (_GLFW_NSGL) elseif (_GLFW_NSGL)
list(APPEND glfw_HEADERS ${common_HEADERS} nsgl_platform.h) list(APPEND glfw_HEADERS ${common_HEADERS} nsgl_context.h)
list(APPEND glfw_SOURCES ${common_SOURCES} nsgl_context.m) list(APPEND glfw_SOURCES ${common_SOURCES} nsgl_context.m)
elseif (_GLFW_WGL) elseif (_GLFW_WGL)
list(APPEND glfw_HEADERS ${common_HEADERS} wgl_platform.h) list(APPEND glfw_HEADERS ${common_HEADERS} wgl_context.h)
list(APPEND glfw_SOURCES ${common_SOURCES} wgl_context.c) list(APPEND glfw_SOURCES ${common_SOURCES} wgl_context.c)
elseif (_GLFW_X11) elseif (_GLFW_X11)
list(APPEND glfw_HEADERS ${common_HEADERS} glx_platform.h) list(APPEND glfw_HEADERS ${common_HEADERS} glx_context.h)
list(APPEND glfw_SOURCES ${common_SOURCES} glx_context.c) list(APPEND glfw_SOURCES ${common_SOURCES} glx_context.c)
endif() endif()

View File

@ -40,7 +40,7 @@ typedef void* id;
#include "posix_tls.h" #include "posix_tls.h"
#if defined(_GLFW_NSGL) #if defined(_GLFW_NSGL)
#include "nsgl_platform.h" #include "nsgl_context.h"
#else #else
#error "No supported context creation API selected" #error "No supported context creation API selected"
#endif #endif

View File

@ -25,8 +25,8 @@
// //
//======================================================================== //========================================================================
#ifndef _egl_platform_h_ #ifndef _egl_context_h_
#define _egl_platform_h_ #define _egl_context_h_
#include <EGL/egl.h> #include <EGL/egl.h>
@ -91,4 +91,4 @@ int _glfwAnalyzeContext(const _GLFWwindow* window,
const _GLFWctxconfig* ctxconfig, const _GLFWctxconfig* ctxconfig,
const _GLFWfbconfig* fbconfig); const _GLFWfbconfig* fbconfig);
#endif // _egl_platform_h_ #endif // _egl_context_h_

View File

@ -25,8 +25,8 @@
// //
//======================================================================== //========================================================================
#ifndef _glx_platform_h_ #ifndef _glx_context_h_
#define _glx_platform_h_ #define _glx_context_h_
#define GLX_GLXEXT_LEGACY #define GLX_GLXEXT_LEGACY
#include <GL/glx.h> #include <GL/glx.h>
@ -123,4 +123,4 @@ int _glfwCreateContext(_GLFWwindow* window,
const _GLFWfbconfig* fbconfig); const _GLFWfbconfig* fbconfig);
void _glfwDestroyContext(_GLFWwindow* window); void _glfwDestroyContext(_GLFWwindow* window);
#endif // _glx_platform_h_ #endif // _glx_context_h_

View File

@ -200,7 +200,7 @@ struct _GLFWfbconfig
int samples; int samples;
GLboolean sRGB; GLboolean sRGB;
// This is defined in the context API's platform.h // This is defined in the context API's context.h
_GLFW_PLATFORM_FBCONFIG; _GLFW_PLATFORM_FBCONFIG;
}; };
@ -262,7 +262,7 @@ struct _GLFWwindow
// This is defined in the window API's platform.h // This is defined in the window API's platform.h
_GLFW_PLATFORM_WINDOW_STATE; _GLFW_PLATFORM_WINDOW_STATE;
// This is defined in the context API's platform.h // This is defined in the context API's context.h
_GLFW_PLATFORM_CONTEXT_STATE; _GLFW_PLATFORM_CONTEXT_STATE;
}; };
@ -347,7 +347,7 @@ struct _GLFWlibrary
// This is defined in the window API's platform.h // This is defined in the window API's platform.h
_GLFW_PLATFORM_LIBRARY_WINDOW_STATE; _GLFW_PLATFORM_LIBRARY_WINDOW_STATE;
// This is defined in the context API's platform.h // This is defined in the context API's context.h
_GLFW_PLATFORM_LIBRARY_OPENGL_STATE; _GLFW_PLATFORM_LIBRARY_OPENGL_STATE;
// This is defined in the platform's time.h // This is defined in the platform's time.h
_GLFW_PLATFORM_LIBRARY_TIME_STATE; _GLFW_PLATFORM_LIBRARY_TIME_STATE;

View File

@ -24,8 +24,8 @@
// //
//======================================================================== //========================================================================
#ifndef _nsgl_platform_h_ #ifndef _nsgl_context_h_
#define _nsgl_platform_h_ #define _nsgl_context_h_
#define _GLFW_PLATFORM_FBCONFIG #define _GLFW_PLATFORM_FBCONFIG
#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextNSGL nsgl #define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextNSGL nsgl
@ -68,4 +68,4 @@ int _glfwCreateContext(_GLFWwindow* window,
const _GLFWfbconfig* fbconfig); const _GLFWfbconfig* fbconfig);
void _glfwDestroyContext(_GLFWwindow* window); void _glfwDestroyContext(_GLFWwindow* window);
#endif // _nsgl_platform_h_ #endif // _nsgl_context_h_

View File

@ -31,7 +31,7 @@
#include <wayland-client.h> #include <wayland-client.h>
#if defined(_GLFW_EGL) #if defined(_GLFW_EGL)
#include "egl_platform.h" #include "egl_context.h"
#else #else
#error "The Wayland backend depends on EGL platform support" #error "The Wayland backend depends on EGL platform support"
#endif #endif

View File

@ -25,8 +25,8 @@
// //
//======================================================================== //========================================================================
#ifndef _wgl_platform_h_ #ifndef _wgl_context_h_
#define _wgl_platform_h_ #define _wgl_context_h_
// This path may need to be changed if you build GLFW using your own setup // This path may need to be changed if you build GLFW using your own setup
// We ship and use our own copy of wglext.h since GLFW uses fairly new // We ship and use our own copy of wglext.h since GLFW uses fairly new
@ -95,4 +95,4 @@ int _glfwAnalyzeContext(const _GLFWwindow* window,
const _GLFWctxconfig* ctxconfig, const _GLFWctxconfig* ctxconfig,
const _GLFWfbconfig* fbconfig); const _GLFWfbconfig* fbconfig);
#endif // _wgl_platform_h_ #endif // _wgl_context_h_

View File

@ -154,11 +154,11 @@ typedef HRESULT (WINAPI * DWMISCOMPOSITIONENABLED_T)(BOOL*);
#include "win32_tls.h" #include "win32_tls.h"
#if defined(_GLFW_WGL) #if defined(_GLFW_WGL)
#include "wgl_platform.h" #include "wgl_context.h"
#elif defined(_GLFW_EGL) #elif defined(_GLFW_EGL)
#define _GLFW_EGL_NATIVE_WINDOW window->win32.handle #define _GLFW_EGL_NATIVE_WINDOW window->win32.handle
#define _GLFW_EGL_NATIVE_DISPLAY EGL_DEFAULT_DISPLAY #define _GLFW_EGL_NATIVE_DISPLAY EGL_DEFAULT_DISPLAY
#include "egl_platform.h" #include "egl_context.h"
#else #else
#error "No supported context creation API selected" #error "No supported context creation API selected"
#endif #endif

View File

@ -52,12 +52,12 @@
#if defined(_GLFW_GLX) #if defined(_GLFW_GLX)
#define _GLFW_X11_CONTEXT_VISUAL window->glx.visual #define _GLFW_X11_CONTEXT_VISUAL window->glx.visual
#include "glx_platform.h" #include "glx_context.h"
#elif defined(_GLFW_EGL) #elif defined(_GLFW_EGL)
#define _GLFW_X11_CONTEXT_VISUAL window->egl.visual #define _GLFW_X11_CONTEXT_VISUAL window->egl.visual
#define _GLFW_EGL_NATIVE_WINDOW window->x11.handle #define _GLFW_EGL_NATIVE_WINDOW window->x11.handle
#define _GLFW_EGL_NATIVE_DISPLAY _glfw.x11.display #define _GLFW_EGL_NATIVE_DISPLAY _glfw.x11.display
#include "egl_platform.h" #include "egl_context.h"
#else #else
#error "No supported context creation API selected" #error "No supported context creation API selected"
#endif #endif