aboutsummaryrefslogtreecommitdiff
path: root/sdl2/gl.ha
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2023-09-22 14:27:12 +0200
committerDrew DeVault <sir@cmpwn.com>2023-09-22 14:27:12 +0200
commit260b9effb19fe85604f05ccf0be18795fd2bc782 (patch)
tree283fc37827b7f0c4eacd8672383ebe0c89c8cdc4 /sdl2/gl.ha
parentAdd SDL_CreateTextureFromSurface() (diff)
downloadhare-chip8-260b9effb19fe85604f05ccf0be18795fd2bc782.tar.gz
all: fix build errors
Diffstat (limited to 'sdl2/gl.ha')
-rw-r--r--sdl2/gl.ha6
1 files changed, 3 insertions, 3 deletions
diff --git a/sdl2/gl.ha b/sdl2/gl.ha
index 6599da8..9e3c163 100644
--- a/sdl2/gl.ha
+++ b/sdl2/gl.ha
@@ -1,6 +1,6 @@
use types::c;
-export type SDL_GLContext = void;
+export type SDL_GLContext = opaque;
export type SDL_GLprofile = enum int {
GL_CONTEXT_PROFILE_CORE = 0x0001,
@@ -41,7 +41,7 @@ export type SDL_GLattr = enum {
export @symbol("SDL_GL_CreateContext") fn SDL_GL_CreateContext(
window: *SDL_Window) *SDL_GLContext;
export @symbol("SDL_GL_GetProcAddress") fn SDL_GL_GetProcAddress(
- proc: *const c::char) *void;
+ proc: *const c::char) *opaque;
export @symbol("SDL_GL_SetAttribute") fn SDL_GL_SetAttribute(
- attr: SDL_GLattr, value: int) *void;
+ attr: SDL_GLattr, value: int) *opaque;
export @symbol("SDL_GL_SwapWindow") fn SDL_GL_SwapWindow(window: *SDL_Window) void;