mt-lang 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/index.html +4 -3
- data/lib/milk_tea/base.rb +1 -1
- data/std/asset_pack.mt +267 -0
- data/std/async/libuv_runtime.mt +539 -0
- data/std/async/mailbox.mt +191 -0
- data/std/async/runtime.mt +87 -0
- data/std/async.mt +87 -0
- data/std/base64.mt +185 -0
- data/std/behavior_tree.mt +396 -0
- data/std/binary.mt +314 -0
- data/std/binary_heap.mt +157 -0
- data/std/bitset.mt +239 -0
- data/std/box2d.mt +535 -0
- data/std/bytes.mt +46 -0
- data/std/c/box2d.mt +1254 -0
- data/std/c/cgltf.mt +647 -0
- data/std/c/cjson.mt +106 -0
- data/std/c/crypto.mt +11 -0
- data/std/c/crypto_support.h +51 -0
- data/std/c/ctype.mt +19 -0
- data/std/c/ctype_bindgen.h +29 -0
- data/std/c/curl.mt +1223 -0
- data/std/c/enet.mt +473 -0
- data/std/c/errno.mt +41 -0
- data/std/c/errno_bindgen.h +53 -0
- data/std/c/flecs.mt +2945 -0
- data/std/c/fs.linux.mt +43 -0
- data/std/c/fs.windows.mt +43 -0
- data/std/c/fs_support.h +954 -0
- data/std/c/gl.mt +2065 -0
- data/std/c/gl_registry_helpers.h +10748 -0
- data/std/c/glfw.mt +499 -0
- data/std/c/libc.mt +167 -0
- data/std/c/libuv.mt +1491 -0
- data/std/c/math.mt +22 -0
- data/std/c/math_bindgen.h +31 -0
- data/std/c/miniaudio.mt +3420 -0
- data/std/c/pcre2.mt +735 -0
- data/std/c/process.mt +58 -0
- data/std/c/process_support.h +1147 -0
- data/std/c/raygui.mt +1602 -0
- data/std/c/raylib.mt +1245 -0
- data/std/c/raymath.mt +163 -0
- data/std/c/rlgl.mt +434 -0
- data/std/c/rpng.mt +60 -0
- data/std/c/rres.mt +187 -0
- data/std/c/sdl3.mt +4132 -0
- data/std/c/sqlite3.mt +951 -0
- data/std/c/stb_image.mt +52 -0
- data/std/c/stb_image_resize2.mt +128 -0
- data/std/c/stb_image_write.mt +19 -0
- data/std/c/stb_rect_pack.mt +38 -0
- data/std/c/stb_truetype.mt +175 -0
- data/std/c/stb_vorbis.mt +31 -0
- data/std/c/stdio.mt +90 -0
- data/std/c/steamworks.h +5769 -0
- data/std/c/steamworks.mt +4771 -0
- data/std/c/string.mt +16 -0
- data/std/c/string_bindgen.h +36 -0
- data/std/c/sync.mt +33 -0
- data/std/c/sync_support.h +219 -0
- data/std/c/terminal.mt +24 -0
- data/std/c/terminal_support.h +408 -0
- data/std/c/time.mt +26 -0
- data/std/c/tls.mt +24 -0
- data/std/c/tls_support.h +626 -0
- data/std/c/tracy.mt +53 -0
- data/std/c/zlib.mt +20 -0
- data/std/c/zlib_support.h +239 -0
- data/std/c/zstd.mt +231 -0
- data/std/cell.mt +60 -0
- data/std/cgltf.mt +115 -0
- data/std/cjson.mt +90 -0
- data/std/cli.mt +768 -0
- data/std/cookie.mt +198 -0
- data/std/counter.mt +160 -0
- data/std/crypto.mt +74 -0
- data/std/cstring.mt +13 -0
- data/std/ctype.mt +52 -0
- data/std/curl/runtime.mt +261 -0
- data/std/curl.mt +38 -0
- data/std/deque.mt +348 -0
- data/std/encoding.mt +93 -0
- data/std/enet.mt +133 -0
- data/std/env.mt +41 -0
- data/std/errno.mt +47 -0
- data/std/flecs.mt +978 -0
- data/std/fmt.mt +271 -0
- data/std/fs.linux.mt +696 -0
- data/std/fs.windows.mt +711 -0
- data/std/fsm.mt +267 -0
- data/std/gl.mt +2062 -0
- data/std/glfw.mt +471 -0
- data/std/goap.mt +342 -0
- data/std/graph.mt +521 -0
- data/std/gzip.mt +77 -0
- data/std/hash.mt +429 -0
- data/std/http/server.mt +810 -0
- data/std/http.mt +1227 -0
- data/std/intern.mt +53 -0
- data/std/jobs.mt +288 -0
- data/std/json.mt +627 -0
- data/std/libc.mt +34 -0
- data/std/libuv.mt +554 -0
- data/std/linear_algebra.mt +243 -0
- data/std/linked_map.mt +372 -0
- data/std/linked_map_view.mt +49 -0
- data/std/linked_set.mt +117 -0
- data/std/log.mt +69 -0
- data/std/map.mt +418 -0
- data/std/math.mt +24 -0
- data/std/mem/arena.mt +137 -0
- data/std/mem/endian.mt +51 -0
- data/std/mem/heap.mt +298 -0
- data/std/mem/pool.mt +164 -0
- data/std/mem/stack.mt +47 -0
- data/std/mem/tracking.mt +119 -0
- data/std/miniaudio.mt +1299 -0
- data/std/multiset.mt +191 -0
- data/std/net/channel.mt +727 -0
- data/std/net/clock.mt +237 -0
- data/std/net/discovery.mt +277 -0
- data/std/net/lobby.mt +813 -0
- data/std/net/manager.mt +539 -0
- data/std/net/mux.mt +839 -0
- data/std/net/nat.mt +122 -0
- data/std/net/packet.mt +219 -0
- data/std/net/punch.mt +162 -0
- data/std/net/rpc.mt +119 -0
- data/std/net/session.mt +1157 -0
- data/std/net/stun.mt +252 -0
- data/std/net/sync.mt +183 -0
- data/std/net/turn.mt +459 -0
- data/std/net.mt +2944 -0
- data/std/oauth2.mt +408 -0
- data/std/option.mt +51 -0
- data/std/ordered_map.mt +497 -0
- data/std/ordered_set.mt +348 -0
- data/std/path.mt +368 -0
- data/std/pcre2/runtime.mt +35 -0
- data/std/pcre2.mt +78 -0
- data/std/priority_queue.mt +55 -0
- data/std/process.mt +837 -0
- data/std/queue.mt +55 -0
- data/std/random.mt +146 -0
- data/std/raygui.mt +99 -0
- data/std/raylib/debug_console.mt +71 -0
- data/std/raylib/easing.mt +388 -0
- data/std/raylib/packed_assets.mt +255 -0
- data/std/raylib/runtime.mt +30 -0
- data/std/raylib/tracy_gpu.mt +37 -0
- data/std/raylib.mt +1510 -0
- data/std/raymath.mt +153 -0
- data/std/result.mt +89 -0
- data/std/rlgl.mt +268 -0
- data/std/rpng.mt +46 -0
- data/std/rres.mt +36 -0
- data/std/sdl3/runtime.mt +54 -0
- data/std/sdl3.mt +1731 -0
- data/std/serialize.mt +68 -0
- data/std/set.mt +124 -0
- data/std/spatial.mt +176 -0
- data/std/sqlite3.mt +151 -0
- data/std/stack.mt +55 -0
- data/std/stb_image.mt +47 -0
- data/std/stb_image_resize2.mt +41 -0
- data/std/stb_image_write.mt +17 -0
- data/std/stb_rect_pack.mt +15 -0
- data/std/stb_truetype.mt +77 -0
- data/std/stb_vorbis.mt +16 -0
- data/std/stdio.mt +88 -0
- data/std/steamworks.mt +1542 -0
- data/std/str.mt +293 -0
- data/std/string.mt +234 -0
- data/std/sync.mt +194 -0
- data/std/tar.mt +704 -0
- data/std/terminal.mt +1002 -0
- data/std/testing.mt +266 -0
- data/std/thread.mt +120 -0
- data/std/time.mt +105 -0
- data/std/tls.mt +616 -0
- data/std/toml.mt +1310 -0
- data/std/tracy.mt +42 -0
- data/std/uri.mt +118 -0
- data/std/url.mt +372 -0
- data/std/vec.mt +433 -0
- data/std/zstd.mt +94 -0
- metadata +187 -2
data/std/c/glfw.mt
ADDED
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
# generated by mtc bindgen from /home/teefan/Projects/Ruby/mt-lang/third_party/glfw-upstream/include/GLFW/glfw3.h
|
|
2
|
+
external
|
|
3
|
+
|
|
4
|
+
link "glfw3"
|
|
5
|
+
include "GLFW/glfw3.h"
|
|
6
|
+
|
|
7
|
+
type GLFWglproc = fn() -> void
|
|
8
|
+
type GLFWvkproc = fn() -> void
|
|
9
|
+
|
|
10
|
+
opaque GLFWmonitor = c"GLFWmonitor"
|
|
11
|
+
opaque GLFWwindow = c"GLFWwindow"
|
|
12
|
+
opaque GLFWcursor = c"GLFWcursor"
|
|
13
|
+
|
|
14
|
+
type GLFWallocatefun = fn(arg0: ptr_uint, arg1: ptr[void]) -> ptr[void]
|
|
15
|
+
type GLFWreallocatefun = fn(arg0: ptr[void], arg1: ptr_uint, arg2: ptr[void]) -> ptr[void]
|
|
16
|
+
type GLFWdeallocatefun = fn(arg0: ptr[void], arg1: ptr[void]) -> void
|
|
17
|
+
type GLFWerrorfun = fn(arg0: int, arg1: cstr) -> void
|
|
18
|
+
type GLFWwindowposfun = fn(arg0: ptr[GLFWwindow], arg1: int, arg2: int) -> void
|
|
19
|
+
type GLFWwindowsizefun = fn(arg0: ptr[GLFWwindow], arg1: int, arg2: int) -> void
|
|
20
|
+
type GLFWwindowclosefun = fn(arg0: ptr[GLFWwindow]) -> void
|
|
21
|
+
type GLFWwindowrefreshfun = fn(arg0: ptr[GLFWwindow]) -> void
|
|
22
|
+
type GLFWwindowfocusfun = fn(arg0: ptr[GLFWwindow], arg1: int) -> void
|
|
23
|
+
type GLFWwindowiconifyfun = fn(arg0: ptr[GLFWwindow], arg1: int) -> void
|
|
24
|
+
type GLFWwindowmaximizefun = fn(arg0: ptr[GLFWwindow], arg1: int) -> void
|
|
25
|
+
type GLFWframebuffersizefun = fn(arg0: ptr[GLFWwindow], arg1: int, arg2: int) -> void
|
|
26
|
+
type GLFWwindowcontentscalefun = fn(arg0: ptr[GLFWwindow], arg1: float, arg2: float) -> void
|
|
27
|
+
type GLFWmousebuttonfun = fn(arg0: ptr[GLFWwindow], arg1: int, arg2: int, arg3: int) -> void
|
|
28
|
+
type GLFWcursorposfun = fn(arg0: ptr[GLFWwindow], arg1: double, arg2: double) -> void
|
|
29
|
+
type GLFWcursorenterfun = fn(arg0: ptr[GLFWwindow], arg1: int) -> void
|
|
30
|
+
type GLFWscrollfun = fn(arg0: ptr[GLFWwindow], arg1: double, arg2: double) -> void
|
|
31
|
+
type GLFWkeyfun = fn(arg0: ptr[GLFWwindow], arg1: int, arg2: int, arg3: int, arg4: int) -> void
|
|
32
|
+
type GLFWcharfun = fn(arg0: ptr[GLFWwindow], arg1: uint) -> void
|
|
33
|
+
type GLFWcharmodsfun = fn(arg0: ptr[GLFWwindow], arg1: uint, arg2: int) -> void
|
|
34
|
+
type GLFWdropfun = fn(arg0: ptr[GLFWwindow], arg1: int, arg2: ptr[cstr]) -> void
|
|
35
|
+
type GLFWmonitorfun = fn(arg0: ptr[GLFWmonitor], arg1: int) -> void
|
|
36
|
+
type GLFWjoystickfun = fn(arg0: int, arg1: int) -> void
|
|
37
|
+
|
|
38
|
+
struct GLFWvidmode:
|
|
39
|
+
width: int
|
|
40
|
+
height: int
|
|
41
|
+
redBits: int
|
|
42
|
+
greenBits: int
|
|
43
|
+
blueBits: int
|
|
44
|
+
refreshRate: int
|
|
45
|
+
|
|
46
|
+
struct GLFWgammaramp:
|
|
47
|
+
red: ptr[ushort]
|
|
48
|
+
green: ptr[ushort]
|
|
49
|
+
blue: ptr[ushort]
|
|
50
|
+
size: uint
|
|
51
|
+
|
|
52
|
+
struct GLFWimage:
|
|
53
|
+
width: int
|
|
54
|
+
height: int
|
|
55
|
+
pixels: ptr[ubyte]
|
|
56
|
+
|
|
57
|
+
struct GLFWgamepadstate:
|
|
58
|
+
buttons: array[ubyte, 15]
|
|
59
|
+
axes: array[float, 6]
|
|
60
|
+
|
|
61
|
+
struct GLFWallocator:
|
|
62
|
+
allocate: fn(arg0: ptr_uint, arg1: ptr[void]) -> ptr[void]
|
|
63
|
+
reallocate: fn(arg0: ptr[void], arg1: ptr_uint, arg2: ptr[void]) -> ptr[void]
|
|
64
|
+
deallocate: fn(arg0: ptr[void], arg1: ptr[void]) -> void
|
|
65
|
+
user: ptr[void]
|
|
66
|
+
|
|
67
|
+
external function glfwInit() -> int
|
|
68
|
+
external function glfwTerminate() -> void
|
|
69
|
+
external function glfwInitHint(hint: int, value: int) -> void
|
|
70
|
+
external function glfwInitAllocator(allocator: const_ptr[GLFWallocator]) -> void
|
|
71
|
+
external function glfwGetVersion(major: ptr[int], minor: ptr[int], rev: ptr[int]) -> void
|
|
72
|
+
external function glfwGetVersionString() -> cstr
|
|
73
|
+
external function glfwGetError(description: ptr[cstr]?) -> int
|
|
74
|
+
external function glfwSetErrorCallback(callback: GLFWerrorfun?) -> GLFWerrorfun?
|
|
75
|
+
external function glfwGetPlatform() -> int
|
|
76
|
+
external function glfwPlatformSupported(platform: int) -> int
|
|
77
|
+
external function glfwGetMonitors(count: ptr[int]) -> ptr[ptr[GLFWmonitor]]?
|
|
78
|
+
external function glfwGetPrimaryMonitor() -> ptr[GLFWmonitor]?
|
|
79
|
+
external function glfwGetMonitorPos(monitor: ptr[GLFWmonitor], xpos: ptr[int], ypos: ptr[int]) -> void
|
|
80
|
+
external function glfwGetMonitorWorkarea(monitor: ptr[GLFWmonitor], xpos: ptr[int], ypos: ptr[int], width: ptr[int], height: ptr[int]) -> void
|
|
81
|
+
external function glfwGetMonitorPhysicalSize(monitor: ptr[GLFWmonitor], widthMM: ptr[int], heightMM: ptr[int]) -> void
|
|
82
|
+
external function glfwGetMonitorContentScale(monitor: ptr[GLFWmonitor], xscale: ptr[float], yscale: ptr[float]) -> void
|
|
83
|
+
external function glfwGetMonitorName(monitor: ptr[GLFWmonitor]) -> cstr?
|
|
84
|
+
external function glfwSetMonitorUserPointer(monitor: ptr[GLFWmonitor], pointer: ptr[void]) -> void
|
|
85
|
+
external function glfwGetMonitorUserPointer(monitor: ptr[GLFWmonitor]) -> ptr[void]?
|
|
86
|
+
external function glfwSetMonitorCallback(callback: GLFWmonitorfun?) -> GLFWmonitorfun?
|
|
87
|
+
external function glfwGetVideoModes(monitor: ptr[GLFWmonitor], count: ptr[int]) -> const_ptr[GLFWvidmode]?
|
|
88
|
+
external function glfwGetVideoMode(monitor: ptr[GLFWmonitor]) -> const_ptr[GLFWvidmode]?
|
|
89
|
+
external function glfwSetGamma(monitor: ptr[GLFWmonitor], gamma: float) -> void
|
|
90
|
+
external function glfwGetGammaRamp(monitor: ptr[GLFWmonitor]) -> const_ptr[GLFWgammaramp]?
|
|
91
|
+
external function glfwSetGammaRamp(monitor: ptr[GLFWmonitor], ramp: const_ptr[GLFWgammaramp]) -> void
|
|
92
|
+
external function glfwDefaultWindowHints() -> void
|
|
93
|
+
external function glfwWindowHint(hint: int, value: int) -> void
|
|
94
|
+
external function glfwWindowHintString(hint: int, value: cstr) -> void
|
|
95
|
+
external function glfwCreateWindow(width: int, height: int, title: cstr, monitor: ptr[GLFWmonitor]?, share: ptr[GLFWwindow]?) -> ptr[GLFWwindow]?
|
|
96
|
+
external function glfwDestroyWindow(window: ptr[GLFWwindow]) -> void
|
|
97
|
+
external function glfwWindowShouldClose(window: ptr[GLFWwindow]) -> int
|
|
98
|
+
external function glfwSetWindowShouldClose(window: ptr[GLFWwindow], value: int) -> void
|
|
99
|
+
external function glfwGetWindowTitle(window: ptr[GLFWwindow]) -> cstr?
|
|
100
|
+
external function glfwSetWindowTitle(window: ptr[GLFWwindow], title: cstr) -> void
|
|
101
|
+
external function glfwSetWindowIcon(window: ptr[GLFWwindow], count: int, images: const_ptr[GLFWimage]) -> void
|
|
102
|
+
external function glfwGetWindowPos(window: ptr[GLFWwindow], xpos: ptr[int], ypos: ptr[int]) -> void
|
|
103
|
+
external function glfwSetWindowPos(window: ptr[GLFWwindow], xpos: int, ypos: int) -> void
|
|
104
|
+
external function glfwGetWindowSize(window: ptr[GLFWwindow], width: ptr[int], height: ptr[int]) -> void
|
|
105
|
+
external function glfwSetWindowSizeLimits(window: ptr[GLFWwindow], minwidth: int, minheight: int, maxwidth: int, maxheight: int) -> void
|
|
106
|
+
external function glfwSetWindowAspectRatio(window: ptr[GLFWwindow], numer: int, denom: int) -> void
|
|
107
|
+
external function glfwSetWindowSize(window: ptr[GLFWwindow], width: int, height: int) -> void
|
|
108
|
+
external function glfwGetFramebufferSize(window: ptr[GLFWwindow], width: ptr[int], height: ptr[int]) -> void
|
|
109
|
+
external function glfwGetWindowFrameSize(window: ptr[GLFWwindow], left: ptr[int], top: ptr[int], right: ptr[int], bottom: ptr[int]) -> void
|
|
110
|
+
external function glfwGetWindowContentScale(window: ptr[GLFWwindow], xscale: ptr[float], yscale: ptr[float]) -> void
|
|
111
|
+
external function glfwGetWindowOpacity(window: ptr[GLFWwindow]) -> float
|
|
112
|
+
external function glfwSetWindowOpacity(window: ptr[GLFWwindow], opacity: float) -> void
|
|
113
|
+
external function glfwIconifyWindow(window: ptr[GLFWwindow]) -> void
|
|
114
|
+
external function glfwRestoreWindow(window: ptr[GLFWwindow]) -> void
|
|
115
|
+
external function glfwMaximizeWindow(window: ptr[GLFWwindow]) -> void
|
|
116
|
+
external function glfwShowWindow(window: ptr[GLFWwindow]) -> void
|
|
117
|
+
external function glfwHideWindow(window: ptr[GLFWwindow]) -> void
|
|
118
|
+
external function glfwFocusWindow(window: ptr[GLFWwindow]) -> void
|
|
119
|
+
external function glfwRequestWindowAttention(window: ptr[GLFWwindow]) -> void
|
|
120
|
+
external function glfwGetWindowMonitor(window: ptr[GLFWwindow]) -> ptr[GLFWmonitor]?
|
|
121
|
+
external function glfwSetWindowMonitor(window: ptr[GLFWwindow], monitor: ptr[GLFWmonitor], xpos: int, ypos: int, width: int, height: int, refreshRate: int) -> void
|
|
122
|
+
external function glfwGetWindowAttrib(window: ptr[GLFWwindow], attrib: int) -> int
|
|
123
|
+
external function glfwSetWindowAttrib(window: ptr[GLFWwindow], attrib: int, value: int) -> void
|
|
124
|
+
external function glfwSetWindowUserPointer(window: ptr[GLFWwindow], pointer: ptr[void]) -> void
|
|
125
|
+
external function glfwGetWindowUserPointer(window: ptr[GLFWwindow]) -> ptr[void]?
|
|
126
|
+
external function glfwSetWindowPosCallback(window: ptr[GLFWwindow], callback: GLFWwindowposfun?) -> GLFWwindowposfun?
|
|
127
|
+
external function glfwSetWindowSizeCallback(window: ptr[GLFWwindow], callback: GLFWwindowsizefun?) -> GLFWwindowsizefun?
|
|
128
|
+
external function glfwSetWindowCloseCallback(window: ptr[GLFWwindow], callback: GLFWwindowclosefun?) -> GLFWwindowclosefun?
|
|
129
|
+
external function glfwSetWindowRefreshCallback(window: ptr[GLFWwindow], callback: GLFWwindowrefreshfun?) -> GLFWwindowrefreshfun?
|
|
130
|
+
external function glfwSetWindowFocusCallback(window: ptr[GLFWwindow], callback: GLFWwindowfocusfun?) -> GLFWwindowfocusfun?
|
|
131
|
+
external function glfwSetWindowIconifyCallback(window: ptr[GLFWwindow], callback: GLFWwindowiconifyfun?) -> GLFWwindowiconifyfun?
|
|
132
|
+
external function glfwSetWindowMaximizeCallback(window: ptr[GLFWwindow], callback: GLFWwindowmaximizefun?) -> GLFWwindowmaximizefun?
|
|
133
|
+
external function glfwSetFramebufferSizeCallback(window: ptr[GLFWwindow], callback: GLFWframebuffersizefun?) -> GLFWframebuffersizefun?
|
|
134
|
+
external function glfwSetWindowContentScaleCallback(window: ptr[GLFWwindow], callback: GLFWwindowcontentscalefun?) -> GLFWwindowcontentscalefun?
|
|
135
|
+
external function glfwPollEvents() -> void
|
|
136
|
+
external function glfwWaitEvents() -> void
|
|
137
|
+
external function glfwWaitEventsTimeout(timeout: double) -> void
|
|
138
|
+
external function glfwPostEmptyEvent() -> void
|
|
139
|
+
external function glfwGetInputMode(window: ptr[GLFWwindow], mode: int) -> int
|
|
140
|
+
external function glfwSetInputMode(window: ptr[GLFWwindow], mode: int, value: int) -> void
|
|
141
|
+
external function glfwRawMouseMotionSupported() -> int
|
|
142
|
+
external function glfwGetKeyName(key: int, scancode: int) -> cstr?
|
|
143
|
+
external function glfwGetKeyScancode(key: int) -> int
|
|
144
|
+
external function glfwGetKey(window: ptr[GLFWwindow], key: int) -> int
|
|
145
|
+
external function glfwGetMouseButton(window: ptr[GLFWwindow], button: int) -> int
|
|
146
|
+
external function glfwGetCursorPos(window: ptr[GLFWwindow], xpos: ptr[double]?, ypos: ptr[double]?) -> void
|
|
147
|
+
external function glfwSetCursorPos(window: ptr[GLFWwindow], xpos: double, ypos: double) -> void
|
|
148
|
+
external function glfwCreateCursor(image: const_ptr[GLFWimage], xhot: int, yhot: int) -> ptr[GLFWcursor]?
|
|
149
|
+
external function glfwCreateStandardCursor(shape: int) -> ptr[GLFWcursor]?
|
|
150
|
+
external function glfwDestroyCursor(cursor: ptr[GLFWcursor]) -> void
|
|
151
|
+
external function glfwSetCursor(window: ptr[GLFWwindow], cursor: ptr[GLFWcursor]?) -> void
|
|
152
|
+
external function glfwSetKeyCallback(window: ptr[GLFWwindow], callback: GLFWkeyfun?) -> GLFWkeyfun?
|
|
153
|
+
external function glfwSetCharCallback(window: ptr[GLFWwindow], callback: GLFWcharfun?) -> GLFWcharfun?
|
|
154
|
+
external function glfwSetCharModsCallback(window: ptr[GLFWwindow], callback: GLFWcharmodsfun?) -> GLFWcharmodsfun?
|
|
155
|
+
external function glfwSetMouseButtonCallback(window: ptr[GLFWwindow], callback: GLFWmousebuttonfun?) -> GLFWmousebuttonfun?
|
|
156
|
+
external function glfwSetCursorPosCallback(window: ptr[GLFWwindow], callback: GLFWcursorposfun?) -> GLFWcursorposfun?
|
|
157
|
+
external function glfwSetCursorEnterCallback(window: ptr[GLFWwindow], callback: GLFWcursorenterfun?) -> GLFWcursorenterfun?
|
|
158
|
+
external function glfwSetScrollCallback(window: ptr[GLFWwindow], callback: GLFWscrollfun?) -> GLFWscrollfun?
|
|
159
|
+
external function glfwSetDropCallback(window: ptr[GLFWwindow], callback: GLFWdropfun?) -> GLFWdropfun?
|
|
160
|
+
external function glfwJoystickPresent(jid: int) -> int
|
|
161
|
+
external function glfwGetJoystickAxes(jid: int, count: ptr[int]) -> const_ptr[float]?
|
|
162
|
+
external function glfwGetJoystickButtons(jid: int, count: ptr[int]) -> const_ptr[ubyte]?
|
|
163
|
+
external function glfwGetJoystickHats(jid: int, count: ptr[int]) -> const_ptr[ubyte]?
|
|
164
|
+
external function glfwGetJoystickName(jid: int) -> cstr?
|
|
165
|
+
external function glfwGetJoystickGUID(jid: int) -> cstr?
|
|
166
|
+
external function glfwSetJoystickUserPointer(jid: int, pointer: ptr[void]) -> void
|
|
167
|
+
external function glfwGetJoystickUserPointer(jid: int) -> ptr[void]?
|
|
168
|
+
external function glfwJoystickIsGamepad(jid: int) -> int
|
|
169
|
+
external function glfwSetJoystickCallback(callback: GLFWjoystickfun?) -> GLFWjoystickfun?
|
|
170
|
+
external function glfwUpdateGamepadMappings(string: cstr) -> int
|
|
171
|
+
external function glfwGetGamepadName(jid: int) -> cstr?
|
|
172
|
+
external function glfwGetGamepadState(jid: int, state: ptr[GLFWgamepadstate]) -> int
|
|
173
|
+
external function glfwSetClipboardString(window: ptr[GLFWwindow], string: cstr) -> void
|
|
174
|
+
external function glfwGetClipboardString(window: ptr[GLFWwindow]) -> cstr?
|
|
175
|
+
external function glfwGetTime() -> double
|
|
176
|
+
external function glfwSetTime(time: double) -> void
|
|
177
|
+
external function glfwGetTimerValue() -> ulong
|
|
178
|
+
external function glfwGetTimerFrequency() -> ulong
|
|
179
|
+
external function glfwMakeContextCurrent(window: ptr[GLFWwindow]?) -> void
|
|
180
|
+
external function glfwGetCurrentContext() -> ptr[GLFWwindow]?
|
|
181
|
+
external function glfwSwapBuffers(window: ptr[GLFWwindow]) -> void
|
|
182
|
+
external function glfwSwapInterval(interval: int) -> void
|
|
183
|
+
external function glfwExtensionSupported(extension: cstr) -> int
|
|
184
|
+
external function glfwGetProcAddress(procname: cstr) -> GLFWglproc?
|
|
185
|
+
external function glfwVulkanSupported() -> int
|
|
186
|
+
external function glfwGetRequiredInstanceExtensions(count: ptr[uint]) -> ptr[cstr]?
|
|
187
|
+
|
|
188
|
+
const GLFW_VERSION_MAJOR: int = 3
|
|
189
|
+
const GLFW_VERSION_MINOR: int = 4
|
|
190
|
+
const GLFW_VERSION_REVISION: int = 0
|
|
191
|
+
const GLFW_TRUE: int = 1
|
|
192
|
+
const GLFW_FALSE: int = 0
|
|
193
|
+
const GLFW_RELEASE: int = 0
|
|
194
|
+
const GLFW_PRESS: int = 1
|
|
195
|
+
const GLFW_REPEAT: int = 2
|
|
196
|
+
const GLFW_HAT_CENTERED: int = 0
|
|
197
|
+
const GLFW_HAT_UP: int = 1
|
|
198
|
+
const GLFW_HAT_RIGHT: int = 2
|
|
199
|
+
const GLFW_HAT_DOWN: int = 4
|
|
200
|
+
const GLFW_HAT_LEFT: int = 8
|
|
201
|
+
const GLFW_KEY_UNKNOWN: int = -1
|
|
202
|
+
const GLFW_KEY_SPACE: int = 32
|
|
203
|
+
const GLFW_KEY_APOSTROPHE: int = 39
|
|
204
|
+
const GLFW_KEY_COMMA: int = 44
|
|
205
|
+
const GLFW_KEY_MINUS: int = 45
|
|
206
|
+
const GLFW_KEY_PERIOD: int = 46
|
|
207
|
+
const GLFW_KEY_SLASH: int = 47
|
|
208
|
+
const GLFW_KEY_0: int = 48
|
|
209
|
+
const GLFW_KEY_1: int = 49
|
|
210
|
+
const GLFW_KEY_2: int = 50
|
|
211
|
+
const GLFW_KEY_3: int = 51
|
|
212
|
+
const GLFW_KEY_4: int = 52
|
|
213
|
+
const GLFW_KEY_5: int = 53
|
|
214
|
+
const GLFW_KEY_6: int = 54
|
|
215
|
+
const GLFW_KEY_7: int = 55
|
|
216
|
+
const GLFW_KEY_8: int = 56
|
|
217
|
+
const GLFW_KEY_9: int = 57
|
|
218
|
+
const GLFW_KEY_SEMICOLON: int = 59
|
|
219
|
+
const GLFW_KEY_EQUAL: int = 61
|
|
220
|
+
const GLFW_KEY_A: int = 65
|
|
221
|
+
const GLFW_KEY_B: int = 66
|
|
222
|
+
const GLFW_KEY_C: int = 67
|
|
223
|
+
const GLFW_KEY_D: int = 68
|
|
224
|
+
const GLFW_KEY_E: int = 69
|
|
225
|
+
const GLFW_KEY_F: int = 70
|
|
226
|
+
const GLFW_KEY_G: int = 71
|
|
227
|
+
const GLFW_KEY_H: int = 72
|
|
228
|
+
const GLFW_KEY_I: int = 73
|
|
229
|
+
const GLFW_KEY_J: int = 74
|
|
230
|
+
const GLFW_KEY_K: int = 75
|
|
231
|
+
const GLFW_KEY_L: int = 76
|
|
232
|
+
const GLFW_KEY_M: int = 77
|
|
233
|
+
const GLFW_KEY_N: int = 78
|
|
234
|
+
const GLFW_KEY_O: int = 79
|
|
235
|
+
const GLFW_KEY_P: int = 80
|
|
236
|
+
const GLFW_KEY_Q: int = 81
|
|
237
|
+
const GLFW_KEY_R: int = 82
|
|
238
|
+
const GLFW_KEY_S: int = 83
|
|
239
|
+
const GLFW_KEY_T: int = 84
|
|
240
|
+
const GLFW_KEY_U: int = 85
|
|
241
|
+
const GLFW_KEY_V: int = 86
|
|
242
|
+
const GLFW_KEY_W: int = 87
|
|
243
|
+
const GLFW_KEY_X: int = 88
|
|
244
|
+
const GLFW_KEY_Y: int = 89
|
|
245
|
+
const GLFW_KEY_Z: int = 90
|
|
246
|
+
const GLFW_KEY_LEFT_BRACKET: int = 91
|
|
247
|
+
const GLFW_KEY_BACKSLASH: int = 92
|
|
248
|
+
const GLFW_KEY_RIGHT_BRACKET: int = 93
|
|
249
|
+
const GLFW_KEY_GRAVE_ACCENT: int = 96
|
|
250
|
+
const GLFW_KEY_WORLD_1: int = 161
|
|
251
|
+
const GLFW_KEY_WORLD_2: int = 162
|
|
252
|
+
const GLFW_KEY_ESCAPE: int = 256
|
|
253
|
+
const GLFW_KEY_ENTER: int = 257
|
|
254
|
+
const GLFW_KEY_TAB: int = 258
|
|
255
|
+
const GLFW_KEY_BACKSPACE: int = 259
|
|
256
|
+
const GLFW_KEY_INSERT: int = 260
|
|
257
|
+
const GLFW_KEY_DELETE: int = 261
|
|
258
|
+
const GLFW_KEY_RIGHT: int = 262
|
|
259
|
+
const GLFW_KEY_LEFT: int = 263
|
|
260
|
+
const GLFW_KEY_DOWN: int = 264
|
|
261
|
+
const GLFW_KEY_UP: int = 265
|
|
262
|
+
const GLFW_KEY_PAGE_UP: int = 266
|
|
263
|
+
const GLFW_KEY_PAGE_DOWN: int = 267
|
|
264
|
+
const GLFW_KEY_HOME: int = 268
|
|
265
|
+
const GLFW_KEY_END: int = 269
|
|
266
|
+
const GLFW_KEY_CAPS_LOCK: int = 280
|
|
267
|
+
const GLFW_KEY_SCROLL_LOCK: int = 281
|
|
268
|
+
const GLFW_KEY_NUM_LOCK: int = 282
|
|
269
|
+
const GLFW_KEY_PRINT_SCREEN: int = 283
|
|
270
|
+
const GLFW_KEY_PAUSE: int = 284
|
|
271
|
+
const GLFW_KEY_F1: int = 290
|
|
272
|
+
const GLFW_KEY_F2: int = 291
|
|
273
|
+
const GLFW_KEY_F3: int = 292
|
|
274
|
+
const GLFW_KEY_F4: int = 293
|
|
275
|
+
const GLFW_KEY_F5: int = 294
|
|
276
|
+
const GLFW_KEY_F6: int = 295
|
|
277
|
+
const GLFW_KEY_F7: int = 296
|
|
278
|
+
const GLFW_KEY_F8: int = 297
|
|
279
|
+
const GLFW_KEY_F9: int = 298
|
|
280
|
+
const GLFW_KEY_F10: int = 299
|
|
281
|
+
const GLFW_KEY_F11: int = 300
|
|
282
|
+
const GLFW_KEY_F12: int = 301
|
|
283
|
+
const GLFW_KEY_F13: int = 302
|
|
284
|
+
const GLFW_KEY_F14: int = 303
|
|
285
|
+
const GLFW_KEY_F15: int = 304
|
|
286
|
+
const GLFW_KEY_F16: int = 305
|
|
287
|
+
const GLFW_KEY_F17: int = 306
|
|
288
|
+
const GLFW_KEY_F18: int = 307
|
|
289
|
+
const GLFW_KEY_F19: int = 308
|
|
290
|
+
const GLFW_KEY_F20: int = 309
|
|
291
|
+
const GLFW_KEY_F21: int = 310
|
|
292
|
+
const GLFW_KEY_F22: int = 311
|
|
293
|
+
const GLFW_KEY_F23: int = 312
|
|
294
|
+
const GLFW_KEY_F24: int = 313
|
|
295
|
+
const GLFW_KEY_F25: int = 314
|
|
296
|
+
const GLFW_KEY_KP_0: int = 320
|
|
297
|
+
const GLFW_KEY_KP_1: int = 321
|
|
298
|
+
const GLFW_KEY_KP_2: int = 322
|
|
299
|
+
const GLFW_KEY_KP_3: int = 323
|
|
300
|
+
const GLFW_KEY_KP_4: int = 324
|
|
301
|
+
const GLFW_KEY_KP_5: int = 325
|
|
302
|
+
const GLFW_KEY_KP_6: int = 326
|
|
303
|
+
const GLFW_KEY_KP_7: int = 327
|
|
304
|
+
const GLFW_KEY_KP_8: int = 328
|
|
305
|
+
const GLFW_KEY_KP_9: int = 329
|
|
306
|
+
const GLFW_KEY_KP_DECIMAL: int = 330
|
|
307
|
+
const GLFW_KEY_KP_DIVIDE: int = 331
|
|
308
|
+
const GLFW_KEY_KP_MULTIPLY: int = 332
|
|
309
|
+
const GLFW_KEY_KP_SUBTRACT: int = 333
|
|
310
|
+
const GLFW_KEY_KP_ADD: int = 334
|
|
311
|
+
const GLFW_KEY_KP_ENTER: int = 335
|
|
312
|
+
const GLFW_KEY_KP_EQUAL: int = 336
|
|
313
|
+
const GLFW_KEY_LEFT_SHIFT: int = 340
|
|
314
|
+
const GLFW_KEY_LEFT_CONTROL: int = 341
|
|
315
|
+
const GLFW_KEY_LEFT_ALT: int = 342
|
|
316
|
+
const GLFW_KEY_LEFT_SUPER: int = 343
|
|
317
|
+
const GLFW_KEY_RIGHT_SHIFT: int = 344
|
|
318
|
+
const GLFW_KEY_RIGHT_CONTROL: int = 345
|
|
319
|
+
const GLFW_KEY_RIGHT_ALT: int = 346
|
|
320
|
+
const GLFW_KEY_RIGHT_SUPER: int = 347
|
|
321
|
+
const GLFW_KEY_MENU: int = 348
|
|
322
|
+
const GLFW_MOD_SHIFT: int = 1
|
|
323
|
+
const GLFW_MOD_CONTROL: int = 2
|
|
324
|
+
const GLFW_MOD_ALT: int = 4
|
|
325
|
+
const GLFW_MOD_SUPER: int = 8
|
|
326
|
+
const GLFW_MOD_CAPS_LOCK: int = 16
|
|
327
|
+
const GLFW_MOD_NUM_LOCK: int = 32
|
|
328
|
+
const GLFW_MOUSE_BUTTON_1: int = 0
|
|
329
|
+
const GLFW_MOUSE_BUTTON_2: int = 1
|
|
330
|
+
const GLFW_MOUSE_BUTTON_3: int = 2
|
|
331
|
+
const GLFW_MOUSE_BUTTON_4: int = 3
|
|
332
|
+
const GLFW_MOUSE_BUTTON_5: int = 4
|
|
333
|
+
const GLFW_MOUSE_BUTTON_6: int = 5
|
|
334
|
+
const GLFW_MOUSE_BUTTON_7: int = 6
|
|
335
|
+
const GLFW_MOUSE_BUTTON_8: int = 7
|
|
336
|
+
const GLFW_JOYSTICK_1: int = 0
|
|
337
|
+
const GLFW_JOYSTICK_2: int = 1
|
|
338
|
+
const GLFW_JOYSTICK_3: int = 2
|
|
339
|
+
const GLFW_JOYSTICK_4: int = 3
|
|
340
|
+
const GLFW_JOYSTICK_5: int = 4
|
|
341
|
+
const GLFW_JOYSTICK_6: int = 5
|
|
342
|
+
const GLFW_JOYSTICK_7: int = 6
|
|
343
|
+
const GLFW_JOYSTICK_8: int = 7
|
|
344
|
+
const GLFW_JOYSTICK_9: int = 8
|
|
345
|
+
const GLFW_JOYSTICK_10: int = 9
|
|
346
|
+
const GLFW_JOYSTICK_11: int = 10
|
|
347
|
+
const GLFW_JOYSTICK_12: int = 11
|
|
348
|
+
const GLFW_JOYSTICK_13: int = 12
|
|
349
|
+
const GLFW_JOYSTICK_14: int = 13
|
|
350
|
+
const GLFW_JOYSTICK_15: int = 14
|
|
351
|
+
const GLFW_JOYSTICK_16: int = 15
|
|
352
|
+
const GLFW_GAMEPAD_BUTTON_A: int = 0
|
|
353
|
+
const GLFW_GAMEPAD_BUTTON_B: int = 1
|
|
354
|
+
const GLFW_GAMEPAD_BUTTON_X: int = 2
|
|
355
|
+
const GLFW_GAMEPAD_BUTTON_Y: int = 3
|
|
356
|
+
const GLFW_GAMEPAD_BUTTON_LEFT_BUMPER: int = 4
|
|
357
|
+
const GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER: int = 5
|
|
358
|
+
const GLFW_GAMEPAD_BUTTON_BACK: int = 6
|
|
359
|
+
const GLFW_GAMEPAD_BUTTON_START: int = 7
|
|
360
|
+
const GLFW_GAMEPAD_BUTTON_GUIDE: int = 8
|
|
361
|
+
const GLFW_GAMEPAD_BUTTON_LEFT_THUMB: int = 9
|
|
362
|
+
const GLFW_GAMEPAD_BUTTON_RIGHT_THUMB: int = 10
|
|
363
|
+
const GLFW_GAMEPAD_BUTTON_DPAD_UP: int = 11
|
|
364
|
+
const GLFW_GAMEPAD_BUTTON_DPAD_RIGHT: int = 12
|
|
365
|
+
const GLFW_GAMEPAD_BUTTON_DPAD_DOWN: int = 13
|
|
366
|
+
const GLFW_GAMEPAD_BUTTON_DPAD_LEFT: int = 14
|
|
367
|
+
const GLFW_GAMEPAD_AXIS_LEFT_X: int = 0
|
|
368
|
+
const GLFW_GAMEPAD_AXIS_LEFT_Y: int = 1
|
|
369
|
+
const GLFW_GAMEPAD_AXIS_RIGHT_X: int = 2
|
|
370
|
+
const GLFW_GAMEPAD_AXIS_RIGHT_Y: int = 3
|
|
371
|
+
const GLFW_GAMEPAD_AXIS_LEFT_TRIGGER: int = 4
|
|
372
|
+
const GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER: int = 5
|
|
373
|
+
const GLFW_NO_ERROR: int = 0
|
|
374
|
+
const GLFW_NOT_INITIALIZED: int = 65537
|
|
375
|
+
const GLFW_NO_CURRENT_CONTEXT: int = 65538
|
|
376
|
+
const GLFW_INVALID_ENUM: int = 65539
|
|
377
|
+
const GLFW_INVALID_VALUE: int = 65540
|
|
378
|
+
const GLFW_OUT_OF_MEMORY: int = 65541
|
|
379
|
+
const GLFW_API_UNAVAILABLE: int = 65542
|
|
380
|
+
const GLFW_VERSION_UNAVAILABLE: int = 65543
|
|
381
|
+
const GLFW_PLATFORM_ERROR: int = 65544
|
|
382
|
+
const GLFW_FORMAT_UNAVAILABLE: int = 65545
|
|
383
|
+
const GLFW_NO_WINDOW_CONTEXT: int = 65546
|
|
384
|
+
const GLFW_CURSOR_UNAVAILABLE: int = 65547
|
|
385
|
+
const GLFW_FEATURE_UNAVAILABLE: int = 65548
|
|
386
|
+
const GLFW_FEATURE_UNIMPLEMENTED: int = 65549
|
|
387
|
+
const GLFW_PLATFORM_UNAVAILABLE: int = 65550
|
|
388
|
+
const GLFW_FOCUSED: int = 131073
|
|
389
|
+
const GLFW_ICONIFIED: int = 131074
|
|
390
|
+
const GLFW_RESIZABLE: int = 131075
|
|
391
|
+
const GLFW_VISIBLE: int = 131076
|
|
392
|
+
const GLFW_DECORATED: int = 131077
|
|
393
|
+
const GLFW_AUTO_ICONIFY: int = 131078
|
|
394
|
+
const GLFW_FLOATING: int = 131079
|
|
395
|
+
const GLFW_MAXIMIZED: int = 131080
|
|
396
|
+
const GLFW_CENTER_CURSOR: int = 131081
|
|
397
|
+
const GLFW_TRANSPARENT_FRAMEBUFFER: int = 131082
|
|
398
|
+
const GLFW_HOVERED: int = 131083
|
|
399
|
+
const GLFW_FOCUS_ON_SHOW: int = 131084
|
|
400
|
+
const GLFW_MOUSE_PASSTHROUGH: int = 131085
|
|
401
|
+
const GLFW_POSITION_X: int = 131086
|
|
402
|
+
const GLFW_POSITION_Y: int = 131087
|
|
403
|
+
const GLFW_RED_BITS: int = 135169
|
|
404
|
+
const GLFW_GREEN_BITS: int = 135170
|
|
405
|
+
const GLFW_BLUE_BITS: int = 135171
|
|
406
|
+
const GLFW_ALPHA_BITS: int = 135172
|
|
407
|
+
const GLFW_DEPTH_BITS: int = 135173
|
|
408
|
+
const GLFW_STENCIL_BITS: int = 135174
|
|
409
|
+
const GLFW_ACCUM_RED_BITS: int = 135175
|
|
410
|
+
const GLFW_ACCUM_GREEN_BITS: int = 135176
|
|
411
|
+
const GLFW_ACCUM_BLUE_BITS: int = 135177
|
|
412
|
+
const GLFW_ACCUM_ALPHA_BITS: int = 135178
|
|
413
|
+
const GLFW_AUX_BUFFERS: int = 135179
|
|
414
|
+
const GLFW_STEREO: int = 135180
|
|
415
|
+
const GLFW_SAMPLES: int = 135181
|
|
416
|
+
const GLFW_SRGB_CAPABLE: int = 135182
|
|
417
|
+
const GLFW_REFRESH_RATE: int = 135183
|
|
418
|
+
const GLFW_DOUBLEBUFFER: int = 135184
|
|
419
|
+
const GLFW_CLIENT_API: int = 139265
|
|
420
|
+
const GLFW_CONTEXT_VERSION_MAJOR: int = 139266
|
|
421
|
+
const GLFW_CONTEXT_VERSION_MINOR: int = 139267
|
|
422
|
+
const GLFW_CONTEXT_REVISION: int = 139268
|
|
423
|
+
const GLFW_CONTEXT_ROBUSTNESS: int = 139269
|
|
424
|
+
const GLFW_OPENGL_FORWARD_COMPAT: int = 139270
|
|
425
|
+
const GLFW_CONTEXT_DEBUG: int = 139271
|
|
426
|
+
const GLFW_OPENGL_PROFILE: int = 139272
|
|
427
|
+
const GLFW_CONTEXT_RELEASE_BEHAVIOR: int = 139273
|
|
428
|
+
const GLFW_CONTEXT_NO_ERROR: int = 139274
|
|
429
|
+
const GLFW_CONTEXT_CREATION_API: int = 139275
|
|
430
|
+
const GLFW_SCALE_TO_MONITOR: int = 139276
|
|
431
|
+
const GLFW_SCALE_FRAMEBUFFER: int = 139277
|
|
432
|
+
const GLFW_COCOA_RETINA_FRAMEBUFFER: int = 143361
|
|
433
|
+
const GLFW_COCOA_FRAME_NAME: int = 143362
|
|
434
|
+
const GLFW_COCOA_GRAPHICS_SWITCHING: int = 143363
|
|
435
|
+
const GLFW_X11_CLASS_NAME: int = 147457
|
|
436
|
+
const GLFW_X11_INSTANCE_NAME: int = 147458
|
|
437
|
+
const GLFW_WIN32_KEYBOARD_MENU: int = 151553
|
|
438
|
+
const GLFW_WIN32_SHOWDEFAULT: int = 151554
|
|
439
|
+
const GLFW_WAYLAND_APP_ID: int = 155649
|
|
440
|
+
const GLFW_NO_API: int = 0
|
|
441
|
+
const GLFW_OPENGL_API: int = 196609
|
|
442
|
+
const GLFW_OPENGL_ES_API: int = 196610
|
|
443
|
+
const GLFW_NO_ROBUSTNESS: int = 0
|
|
444
|
+
const GLFW_NO_RESET_NOTIFICATION: int = 200705
|
|
445
|
+
const GLFW_LOSE_CONTEXT_ON_RESET: int = 200706
|
|
446
|
+
const GLFW_OPENGL_ANY_PROFILE: int = 0
|
|
447
|
+
const GLFW_OPENGL_CORE_PROFILE: int = 204801
|
|
448
|
+
const GLFW_OPENGL_COMPAT_PROFILE: int = 204802
|
|
449
|
+
const GLFW_CURSOR: int = 208897
|
|
450
|
+
const GLFW_STICKY_KEYS: int = 208898
|
|
451
|
+
const GLFW_STICKY_MOUSE_BUTTONS: int = 208899
|
|
452
|
+
const GLFW_LOCK_KEY_MODS: int = 208900
|
|
453
|
+
const GLFW_RAW_MOUSE_MOTION: int = 208901
|
|
454
|
+
const GLFW_CURSOR_NORMAL: int = 212993
|
|
455
|
+
const GLFW_CURSOR_HIDDEN: int = 212994
|
|
456
|
+
const GLFW_CURSOR_DISABLED: int = 212995
|
|
457
|
+
const GLFW_CURSOR_CAPTURED: int = 212996
|
|
458
|
+
const GLFW_ANY_RELEASE_BEHAVIOR: int = 0
|
|
459
|
+
const GLFW_RELEASE_BEHAVIOR_FLUSH: int = 217089
|
|
460
|
+
const GLFW_RELEASE_BEHAVIOR_NONE: int = 217090
|
|
461
|
+
const GLFW_NATIVE_CONTEXT_API: int = 221185
|
|
462
|
+
const GLFW_EGL_CONTEXT_API: int = 221186
|
|
463
|
+
const GLFW_OSMESA_CONTEXT_API: int = 221187
|
|
464
|
+
const GLFW_ANGLE_PLATFORM_TYPE_NONE: int = 225281
|
|
465
|
+
const GLFW_ANGLE_PLATFORM_TYPE_OPENGL: int = 225282
|
|
466
|
+
const GLFW_ANGLE_PLATFORM_TYPE_OPENGLES: int = 225283
|
|
467
|
+
const GLFW_ANGLE_PLATFORM_TYPE_D3D9: int = 225284
|
|
468
|
+
const GLFW_ANGLE_PLATFORM_TYPE_D3D11: int = 225285
|
|
469
|
+
const GLFW_ANGLE_PLATFORM_TYPE_VULKAN: int = 225287
|
|
470
|
+
const GLFW_ANGLE_PLATFORM_TYPE_METAL: int = 225288
|
|
471
|
+
const GLFW_WAYLAND_PREFER_LIBDECOR: int = 229377
|
|
472
|
+
const GLFW_WAYLAND_DISABLE_LIBDECOR: int = 229378
|
|
473
|
+
const GLFW_ANY_POSITION: uint = 2147483648
|
|
474
|
+
const GLFW_ARROW_CURSOR: int = 221185
|
|
475
|
+
const GLFW_IBEAM_CURSOR: int = 221186
|
|
476
|
+
const GLFW_CROSSHAIR_CURSOR: int = 221187
|
|
477
|
+
const GLFW_POINTING_HAND_CURSOR: int = 221188
|
|
478
|
+
const GLFW_RESIZE_EW_CURSOR: int = 221189
|
|
479
|
+
const GLFW_RESIZE_NS_CURSOR: int = 221190
|
|
480
|
+
const GLFW_RESIZE_NWSE_CURSOR: int = 221191
|
|
481
|
+
const GLFW_RESIZE_NESW_CURSOR: int = 221192
|
|
482
|
+
const GLFW_RESIZE_ALL_CURSOR: int = 221193
|
|
483
|
+
const GLFW_NOT_ALLOWED_CURSOR: int = 221194
|
|
484
|
+
const GLFW_CONNECTED: int = 262145
|
|
485
|
+
const GLFW_DISCONNECTED: int = 262146
|
|
486
|
+
const GLFW_JOYSTICK_HAT_BUTTONS: int = 327681
|
|
487
|
+
const GLFW_ANGLE_PLATFORM_TYPE: int = 327682
|
|
488
|
+
const GLFW_PLATFORM: int = 327683
|
|
489
|
+
const GLFW_COCOA_CHDIR_RESOURCES: int = 331777
|
|
490
|
+
const GLFW_COCOA_MENUBAR: int = 331778
|
|
491
|
+
const GLFW_X11_XCB_VULKAN_SURFACE: int = 335873
|
|
492
|
+
const GLFW_WAYLAND_LIBDECOR: int = 339969
|
|
493
|
+
const GLFW_ANY_PLATFORM: int = 393216
|
|
494
|
+
const GLFW_PLATFORM_WIN32: int = 393217
|
|
495
|
+
const GLFW_PLATFORM_COCOA: int = 393218
|
|
496
|
+
const GLFW_PLATFORM_WAYLAND: int = 393219
|
|
497
|
+
const GLFW_PLATFORM_X11: int = 393220
|
|
498
|
+
const GLFW_PLATFORM_NULL: int = 393221
|
|
499
|
+
const GLFW_DONT_CARE: int = -1
|
data/std/c/libc.mt
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# generated by mtc bindgen from /usr/include/stdlib.h
|
|
2
|
+
external
|
|
3
|
+
|
|
4
|
+
include "stdlib.h"
|
|
5
|
+
|
|
6
|
+
opaque __fsid_t = c"struct __fsid_t"
|
|
7
|
+
|
|
8
|
+
struct div_t:
|
|
9
|
+
quot: int
|
|
10
|
+
rem: int
|
|
11
|
+
|
|
12
|
+
struct ldiv_t:
|
|
13
|
+
quot: ptr_int
|
|
14
|
+
rem: ptr_int
|
|
15
|
+
|
|
16
|
+
struct lldiv_t:
|
|
17
|
+
quot: long
|
|
18
|
+
rem: long
|
|
19
|
+
|
|
20
|
+
external function __ctype_get_mb_cur_max() -> ptr_uint
|
|
21
|
+
external function atof(__nptr: cstr) -> double
|
|
22
|
+
external function atoi(__nptr: cstr) -> int
|
|
23
|
+
external function atol(__nptr: cstr) -> ptr_int
|
|
24
|
+
external function atoll(__nptr: cstr) -> long
|
|
25
|
+
external function strtod(__nptr: cstr, __endptr: ptr[ptr[char]]?) -> double
|
|
26
|
+
external function strtof(__nptr: cstr, __endptr: ptr[ptr[char]]?) -> float
|
|
27
|
+
external function strtol(__nptr: cstr, __endptr: ptr[ptr[char]]?, __base: int) -> ptr_int
|
|
28
|
+
external function strtoul(__nptr: cstr, __endptr: ptr[ptr[char]]?, __base: int) -> ptr_uint
|
|
29
|
+
external function strtoq(__nptr: cstr, __endptr: ptr[ptr[char]]?, __base: int) -> long
|
|
30
|
+
external function strtouq(__nptr: cstr, __endptr: ptr[ptr[char]]?, __base: int) -> ulong
|
|
31
|
+
external function strtoll(__nptr: cstr, __endptr: ptr[ptr[char]]?, __base: int) -> long
|
|
32
|
+
external function strtoull(__nptr: cstr, __endptr: ptr[ptr[char]]?, __base: int) -> ulong
|
|
33
|
+
external function l64a(__n: ptr_int) -> ptr[char]
|
|
34
|
+
external function a64l(__s: cstr) -> ptr_int
|
|
35
|
+
|
|
36
|
+
type u_short = ushort
|
|
37
|
+
type u_int = uint
|
|
38
|
+
type u_long = ptr_uint
|
|
39
|
+
type quad_t = ptr_int
|
|
40
|
+
type u_quad_t = ptr_uint
|
|
41
|
+
type fsid_t = __fsid_t
|
|
42
|
+
type loff_t = ptr_int
|
|
43
|
+
type ino_t = ptr_uint
|
|
44
|
+
type dev_t = ptr_uint
|
|
45
|
+
type gid_t = uint
|
|
46
|
+
type mode_t = uint
|
|
47
|
+
type nlink_t = ptr_uint
|
|
48
|
+
type uid_t = uint
|
|
49
|
+
type off_t = ptr_int
|
|
50
|
+
type pid_t = int
|
|
51
|
+
type id_t = uint
|
|
52
|
+
type ssize_t = ptr_int
|
|
53
|
+
type daddr_t = int
|
|
54
|
+
type caddr_t = ptr[char]
|
|
55
|
+
type key_t = int
|
|
56
|
+
type u_int16_t = ushort
|
|
57
|
+
type u_int32_t = uint
|
|
58
|
+
type u_int64_t = ptr_uint
|
|
59
|
+
type register_t = ptr_int
|
|
60
|
+
type blkcnt_t = ptr_int
|
|
61
|
+
type fsblkcnt_t = ptr_uint
|
|
62
|
+
type fsfilcnt_t = ptr_uint
|
|
63
|
+
|
|
64
|
+
external function random() -> ptr_int
|
|
65
|
+
external function srandom(__seed: uint) -> void
|
|
66
|
+
external function initstate(__seed: uint, __statebuf: ptr[char], __statelen: ptr_uint) -> ptr[char]
|
|
67
|
+
external function setstate(__statebuf: ptr[char]) -> ptr[char]
|
|
68
|
+
|
|
69
|
+
struct random_data = c"struct random_data":
|
|
70
|
+
fptr: ptr[int]
|
|
71
|
+
rptr: ptr[int]
|
|
72
|
+
state: ptr[int]
|
|
73
|
+
rand_type: int
|
|
74
|
+
rand_deg: int
|
|
75
|
+
rand_sep: int
|
|
76
|
+
end_ptr: ptr[int]
|
|
77
|
+
|
|
78
|
+
external function random_r(__buf: ptr[random_data], __result: ptr[int]) -> int
|
|
79
|
+
external function srandom_r(__seed: uint, __buf: ptr[random_data]) -> int
|
|
80
|
+
external function initstate_r(__seed: uint, __statebuf: ptr[char], __statelen: ptr_uint, __buf: ptr[random_data]) -> int
|
|
81
|
+
external function setstate_r(__statebuf: ptr[char], __buf: ptr[random_data]) -> int
|
|
82
|
+
external function rand() -> int
|
|
83
|
+
external function srand(__seed: uint) -> void
|
|
84
|
+
external function rand_r(__seed: ptr[uint]) -> int
|
|
85
|
+
external function drand48() -> double
|
|
86
|
+
external function erand48(__xsubi: ptr[ushort]) -> double
|
|
87
|
+
external function lrand48() -> ptr_int
|
|
88
|
+
external function nrand48(__xsubi: ptr[ushort]) -> ptr_int
|
|
89
|
+
external function mrand48() -> ptr_int
|
|
90
|
+
external function jrand48(__xsubi: ptr[ushort]) -> ptr_int
|
|
91
|
+
external function srand48(__seedval: ptr_int) -> void
|
|
92
|
+
external function seed48(__seed16v: ptr[ushort]) -> ptr[ushort]
|
|
93
|
+
external function lcong48(__param: ptr[ushort]) -> void
|
|
94
|
+
|
|
95
|
+
struct drand48_data = c"struct drand48_data":
|
|
96
|
+
__x: array[ushort, 3]
|
|
97
|
+
__old_x: array[ushort, 3]
|
|
98
|
+
__c: ushort
|
|
99
|
+
__init: ushort
|
|
100
|
+
__a: ulong
|
|
101
|
+
|
|
102
|
+
external function drand48_r(__buffer: ptr[drand48_data], __result: ptr[double]) -> int
|
|
103
|
+
external function erand48_r(__xsubi: ptr[ushort], __buffer: ptr[drand48_data], __result: ptr[double]) -> int
|
|
104
|
+
external function lrand48_r(__buffer: ptr[drand48_data], __result: ptr[ptr_int]) -> int
|
|
105
|
+
external function nrand48_r(__xsubi: ptr[ushort], __buffer: ptr[drand48_data], __result: ptr[ptr_int]) -> int
|
|
106
|
+
external function mrand48_r(__buffer: ptr[drand48_data], __result: ptr[ptr_int]) -> int
|
|
107
|
+
external function jrand48_r(__xsubi: ptr[ushort], __buffer: ptr[drand48_data], __result: ptr[ptr_int]) -> int
|
|
108
|
+
external function srand48_r(__seedval: ptr_int, __buffer: ptr[drand48_data]) -> int
|
|
109
|
+
external function seed48_r(__seed16v: ptr[ushort], __buffer: ptr[drand48_data]) -> int
|
|
110
|
+
external function lcong48_r(__param: ptr[ushort], __buffer: ptr[drand48_data]) -> int
|
|
111
|
+
external function arc4random() -> uint
|
|
112
|
+
external function arc4random_buf(__buf: ptr[void], __size: ptr_uint) -> void
|
|
113
|
+
external function arc4random_uniform(__upper_bound: uint) -> uint
|
|
114
|
+
external function malloc(__size: ptr_uint) -> ptr[void]?
|
|
115
|
+
external function calloc(__nmemb: ptr_uint, __size: ptr_uint) -> ptr[void]?
|
|
116
|
+
external function realloc(__ptr: ptr[void]?, __size: ptr_uint) -> ptr[void]?
|
|
117
|
+
external function free(__ptr: ptr[void]?) -> void
|
|
118
|
+
external function reallocarray(__ptr: ptr[void]?, __nmemb: ptr_uint, __size: ptr_uint) -> ptr[void]?
|
|
119
|
+
external function valloc(__size: ptr_uint) -> ptr[void]
|
|
120
|
+
external function posix_memalign(__memptr: ptr[ptr[void]], __alignment: ptr_uint, __size: ptr_uint) -> int
|
|
121
|
+
external function aligned_alloc(__alignment: ptr_uint, __size: ptr_uint) -> ptr[void]?
|
|
122
|
+
external function abort() -> void
|
|
123
|
+
external function atexit(__func: fn() -> void) -> int
|
|
124
|
+
external function at_quick_exit(__func: fn() -> void) -> int
|
|
125
|
+
external function on_exit(__func: fn(arg0: int, arg1: ptr[void]) -> void, __arg: ptr[void]) -> int
|
|
126
|
+
external function exit(__status: int) -> void
|
|
127
|
+
external function quick_exit(__status: int) -> void
|
|
128
|
+
external function _Exit(__status: int) -> void
|
|
129
|
+
external function getenv(__name: cstr) -> ptr[char]
|
|
130
|
+
external function putenv(__string: ptr[char]) -> int
|
|
131
|
+
external function setenv(__name: cstr, __value: cstr, __replace: int) -> int
|
|
132
|
+
external function unsetenv(__name: cstr) -> int
|
|
133
|
+
external function clearenv() -> int
|
|
134
|
+
external function mktemp(__template: ptr[char]) -> ptr[char]
|
|
135
|
+
external function mkstemp(__template: ptr[char]) -> int
|
|
136
|
+
external function mkstemps(__template: ptr[char], __suffixlen: int) -> int
|
|
137
|
+
external function mkdtemp(__template: ptr[char]) -> ptr[char]
|
|
138
|
+
external function system(__command: cstr) -> int
|
|
139
|
+
external function realpath(__name: cstr, __resolved: ptr[char]) -> ptr[char]
|
|
140
|
+
|
|
141
|
+
type __compar_fn_t = fn(arg0: const_ptr[void], arg1: const_ptr[void]) -> int
|
|
142
|
+
|
|
143
|
+
external function bsearch(__key: const_ptr[void], __base: const_ptr[void], __nmemb: ptr_uint, __size: ptr_uint, __compar: fn(arg0: const_ptr[void], arg1: const_ptr[void]) -> int) -> ptr[void]
|
|
144
|
+
external function qsort(__base: ptr[void], __nmemb: ptr_uint, __size: ptr_uint, __compar: fn(arg0: const_ptr[void], arg1: const_ptr[void]) -> int) -> void
|
|
145
|
+
external function abs(__x: int) -> int
|
|
146
|
+
external function labs(__x: ptr_int) -> ptr_int
|
|
147
|
+
external function llabs(__x: long) -> long
|
|
148
|
+
external function div(__numer: int, __denom: int) -> div_t
|
|
149
|
+
external function ldiv(__numer: ptr_int, __denom: ptr_int) -> ldiv_t
|
|
150
|
+
external function lldiv(__numer: long, __denom: long) -> lldiv_t
|
|
151
|
+
external function ecvt(__value: double, __ndigit: int, __decpt: ptr[int], __sign: ptr[int]) -> ptr[char]
|
|
152
|
+
external function fcvt(__value: double, __ndigit: int, __decpt: ptr[int], __sign: ptr[int]) -> ptr[char]
|
|
153
|
+
external function gcvt(__value: double, __ndigit: int, __buf: ptr[char]) -> ptr[char]
|
|
154
|
+
external function ecvt_r(__value: double, __ndigit: int, __decpt: ptr[int], __sign: ptr[int], __buf: ptr[char], __len: ptr_uint) -> int
|
|
155
|
+
external function fcvt_r(__value: double, __ndigit: int, __decpt: ptr[int], __sign: ptr[int], __buf: ptr[char], __len: ptr_uint) -> int
|
|
156
|
+
external function mblen(__s: cstr, __n: ptr_uint) -> int
|
|
157
|
+
external function mbtowc(__pwc: ptr[int], __s: cstr, __n: ptr_uint) -> int
|
|
158
|
+
external function wctomb(__s: ptr[char], __wchar: int) -> int
|
|
159
|
+
external function mbstowcs(__pwcs: ptr[int], __s: cstr, __n: ptr_uint) -> ptr_uint
|
|
160
|
+
external function wcstombs(__s: ptr[char], __pwcs: const_ptr[int], __n: ptr_uint) -> ptr_uint
|
|
161
|
+
external function rpmatch(__response: cstr) -> int
|
|
162
|
+
external function getsubopt(__optionp: ptr[ptr[char]], __tokens: const_ptr[ptr[char]], __valuep: ptr[ptr[char]]) -> int
|
|
163
|
+
external function getloadavg(__loadavg: ptr[double], __nelem: int) -> int
|
|
164
|
+
|
|
165
|
+
const RAND_MAX: int = 2147483647
|
|
166
|
+
const EXIT_FAILURE: int = 1
|
|
167
|
+
const EXIT_SUCCESS: int = 0
|