Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glfw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pirvi-public
glfw
Commits
961e45bd
Commit
961e45bd
authored
1 year ago
by
Camilla Löwy
Browse files
Options
Downloads
Patches
Plain Diff
Include declarations from native access header
parent
e28397bd
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/internal.h
+3
-0
3 additions, 0 deletions
src/internal.h
src/platform.h
+9
-0
9 additions, 0 deletions
src/platform.h
with
12 additions
and
0 deletions
src/internal.h
+
3
−
0
View file @
961e45bd
...
@@ -324,6 +324,9 @@ typedef VkResult (APIENTRY * PFN_vkEnumerateInstanceExtensionProperties)(const c
...
@@ -324,6 +324,9 @@ typedef VkResult (APIENTRY * PFN_vkEnumerateInstanceExtensionProperties)(const c
#include
"platform.h"
#include
"platform.h"
#define GLFW_NATIVE_INCLUDE_NONE
#include
"../include/GLFW/glfw3native.h"
// Checks for whether the library has been initialized
// Checks for whether the library has been initialized
#define _GLFW_REQUIRE_INIT() \
#define _GLFW_REQUIRE_INIT() \
if (!_glfw.initialized) \
if (!_glfw.initialized) \
...
...
This diff is collapsed.
Click to expand it.
src/platform.h
+
9
−
0
View file @
961e45bd
...
@@ -38,9 +38,13 @@
...
@@ -38,9 +38,13 @@
#endif
#endif
#include
"null_platform.h"
#include
"null_platform.h"
#define GLFW_EXPOSE_NATIVE_EGL
#define GLFW_EXPOSE_NATIVE_OSMESA
#if defined(_GLFW_WIN32)
#if defined(_GLFW_WIN32)
#include
"win32_platform.h"
#include
"win32_platform.h"
#define GLFW_EXPOSE_NATIVE_WIN32
#define GLFW_EXPOSE_NATIVE_WGL
#else
#else
#define GLFW_WIN32_WINDOW_STATE
#define GLFW_WIN32_WINDOW_STATE
#define GLFW_WIN32_MONITOR_STATE
#define GLFW_WIN32_MONITOR_STATE
...
@@ -52,6 +56,8 @@
...
@@ -52,6 +56,8 @@
#if defined(_GLFW_COCOA)
#if defined(_GLFW_COCOA)
#include
"cocoa_platform.h"
#include
"cocoa_platform.h"
#define GLFW_EXPOSE_NATIVE_COCOA
#define GLFW_EXPOSE_NATIVE_NSGL
#else
#else
#define GLFW_COCOA_WINDOW_STATE
#define GLFW_COCOA_WINDOW_STATE
#define GLFW_COCOA_MONITOR_STATE
#define GLFW_COCOA_MONITOR_STATE
...
@@ -63,6 +69,7 @@
...
@@ -63,6 +69,7 @@
#if defined(_GLFW_WAYLAND)
#if defined(_GLFW_WAYLAND)
#include
"wl_platform.h"
#include
"wl_platform.h"
#define GLFW_EXPOSE_NATIVE_WAYLAND
#else
#else
#define GLFW_WAYLAND_WINDOW_STATE
#define GLFW_WAYLAND_WINDOW_STATE
#define GLFW_WAYLAND_MONITOR_STATE
#define GLFW_WAYLAND_MONITOR_STATE
...
@@ -72,6 +79,8 @@
...
@@ -72,6 +79,8 @@
#if defined(_GLFW_X11)
#if defined(_GLFW_X11)
#include
"x11_platform.h"
#include
"x11_platform.h"
#define GLFW_EXPOSE_NATIVE_X11
#define GLFW_EXPOSE_NATIVE_GLX
#else
#else
#define GLFW_X11_WINDOW_STATE
#define GLFW_X11_WINDOW_STATE
#define GLFW_X11_MONITOR_STATE
#define GLFW_X11_MONITOR_STATE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment