diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-11 16:00:49 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-11 16:00:49 +0100 |
| commit | 5916e71d4fec16f03e372dbb1788d7ae42765f4f (patch) | |
| tree | d1a3dab4bbd12029debdbe22a28aec2026ccdbd6 /core/sys | |
| parent | 913b9b6447ac682aa2ac3d5e247e5fff637aa1d6 (diff) | |
Fix slicing bug on dynamic arrays
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/wgl.odin | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/core/sys/wgl.odin b/core/sys/wgl.odin index 57e974a7b..4cca783bc 100644 --- a/core/sys/wgl.odin +++ b/core/sys/wgl.odin @@ -51,8 +51,17 @@ Glyph_Metrics_Float :: struct #ordered { cell_inc_y: f32, } -Create_Context_Attribs_ARB_Type :: #type proc(hdc: Hdc, hshareContext: rawptr, attribList: ^i32) -> Hglrc; -Choose_Pixel_Format_ARB_Type :: #type proc(hdc: Hdc, attrib_i_list: ^i32, attrib_f_list: ^f32, max_formats: u32, formats: ^i32, num_formats : ^u32) -> Bool #cc_c; +CreateContextAttribsARB_Type :: #type proc(hdc: Hdc, h_share_context: rawptr, attribList: ^i32) -> Hglrc; +ChoosePixelFormatARB_Type :: #type proc(hdc: Hdc, attrib_i_list: ^i32, attrib_f_list: ^f32, max_formats: u32, formats: ^i32, num_formats : ^u32) -> Bool #cc_c; +SwapIntervalEXT_Type :: #type proc(interval : i32) -> bool #cc_c; +GetExtensionsStringARB_Type :: #type proc(Hdc) -> ^byte #cc_c; + + +CreateContextAttribsARB: CreateContextAttribsARB_Type; +ChoosePixelFormatARB: ChoosePixelFormatARB_Type; +SwapIntervalEXT: SwapIntervalEXT_Type; +GetExtensionsStringARB: GetExtensionsStringARB_Type; + CreateContext :: proc(hdc: Hdc) -> Hglrc #foreign opengl32 "wglCreateContext"; |