mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Renamed global struct and substructs.
Renamed _glfwLibrary to _glfw and made all substructs lower-case, making global variable names easier to read and type. Partially inspired by the internal naming conventions of glwt.
This commit is contained in:
+4
-4
@@ -48,14 +48,14 @@
|
||||
#if defined(_GLFW_HAS_EGLGETPROCADDRESS)
|
||||
#define _glfw_eglGetProcAddress(x) eglGetProcAddress(x)
|
||||
#elif defined(_GLFW_HAS_DLOPEN)
|
||||
#define _glfw_eglGetProcAddress(x) dlsym(_glfwLibrary.EGL.libEGL, x)
|
||||
#define _glfw_eglGetProcAddress(x) dlsym(_glfw.egl.libEGL, x)
|
||||
#define _GLFW_DLOPEN_LIBEGL
|
||||
#else
|
||||
#error "No OpenGL entry point retrieval mechanism was enabled"
|
||||
#endif
|
||||
|
||||
#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextEGL EGL
|
||||
#define _GLFW_PLATFORM_LIBRARY_OPENGL_STATE _GLFWlibraryEGL EGL
|
||||
#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextEGL egl
|
||||
#define _GLFW_PLATFORM_LIBRARY_OPENGL_STATE _GLFWlibraryEGL egl
|
||||
|
||||
|
||||
//========================================================================
|
||||
@@ -83,7 +83,7 @@ typedef struct _GLFWcontextEGL
|
||||
typedef struct _GLFWlibraryEGL
|
||||
{
|
||||
EGLDisplay display;
|
||||
EGLint majorVersion, minorVersion;
|
||||
EGLint versionMajor, versionMinor;
|
||||
|
||||
GLboolean KHR_create_context;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user