aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-10-14 17:52:57 +0100
committerGitHub <noreply@github.com>2025-10-14 17:52:57 +0100
commit225edc552a4a87edd1861c1d0e62c3a8e41648c7 (patch)
treebc8d9abfed65870223278968fd328cadf61deaf2 /vendor
parentaf5b73ecda9ba03fc4568d7c62d2e8e452626d8b (diff)
parent36197a2de0ee6d921de50587261af8dca901d4a4 (diff)
Merge pull request #5801 from IllusionMan1212/egl-procs
vendor/egl: a few more procedures and constants
Diffstat (limited to 'vendor')
-rw-r--r--vendor/egl/egl.odin26
1 files changed, 25 insertions, 1 deletions
diff --git a/vendor/egl/egl.odin b/vendor/egl/egl.odin
index fe52a7fce..3421e7be5 100644
--- a/vendor/egl/egl.odin
+++ b/vendor/egl/egl.odin
@@ -26,6 +26,7 @@ OPENGL_BIT :: 0x0008
OPENGL_ES2_BIT :: 0x0004
OPENGL_ES3_BIT :: 0x00000040
+BUFFER_SIZE :: 0x3020
ALPHA_SIZE :: 0x3021
BLUE_SIZE :: 0x3022
GREEN_SIZE :: 0x3023
@@ -39,6 +40,8 @@ NONE :: 0x3038
COLOR_BUFFER_TYPE :: 0x303F
RENDERABLE_TYPE :: 0x3040
CONFORMANT :: 0x3042
+VENDOR :: 0x3053
+VERSION :: 0x3054
HEIGHT :: 0x3056
WIDTH :: 0x3057
@@ -56,17 +59,38 @@ CONTEXT_OPENGL_PROFILE_MASK :: 0x30FD
OPENGL_API :: 0x30A2
+CONTEXT_OPENGL_DEBUG :: 0x31B0
+
+Platform :: enum u32 {
+ ANDROID_KHR = 0x3141,
+ GBM_KHR = 0x31D7,
+ WAYLAND_KHR = 0x31D8,
+ X11_KHR = 0x31D5,
+ X11_SCREEN_KHR = 0x31D6,
+ DEVICE_EXT = 0x313F,
+ WAYLAND_EXT = 0x31D8,
+ X11_EXT = 0x31D5,
+ X11_SCREEN_EXT = 0x31D6,
+ XCB_EXT = 0x31DC,
+ XCB_SCREEN_EXT = 0x31DE,
+ GBM_MESA = 0x31D7,
+ SURFACELESS_MESA = 0x31DD,
+}
+
foreign import egl "system:EGL"
@(default_calling_convention="c", link_prefix="egl")
foreign egl {
GetDisplay :: proc(display: NativeDisplayType) -> Display ---
+ GetPlatformDisplay :: proc(platform: Platform, native_display: rawptr, attrib_list: ^i32) -> Display ---
Initialize :: proc(display: Display, major: ^i32, minor: ^i32) -> Boolean ---
BindAPI :: proc(api: u32) -> Boolean ---
- ChooseConfig :: proc(display: Display, attrib_list: ^i32, configs: ^Config, config_size: i32, num_config: ^i32) -> Boolean ---
+ ChooseConfig :: proc(display: Display, attrib_list: ^i32, configs: [^]Config, config_size: i32, num_config: ^i32) -> Boolean ---
CreateWindowSurface :: proc(display: Display, config: Config, native_window: NativeWindowType, attrib_list: ^i32) -> Surface ---
+ CreatePlatformWindowSurface :: proc(display: Display, config: Config, native_window: rawptr, attrib_list: ^i32) -> Surface ---
CreateContext :: proc(display: Display, config: Config, share_context: Context, attrib_list: ^i32) -> Context ---
MakeCurrent :: proc(display: Display, draw: Surface, read: Surface, ctx: Context) -> Boolean ---
QuerySurface :: proc(display: Display, surface: Surface, attribute: i32, value: ^i32) -> Boolean ---
+ QueryString :: proc(display: Display, name: i32) -> cstring ---
SwapInterval :: proc(display: Display, interval: i32) -> Boolean ---
SwapBuffers :: proc(display: Display, surface: Surface) -> Boolean ---
GetProcAddress :: proc(name: cstring) -> rawptr ---