This commit is contained in:
krzosa
2025-01-03 22:14:34 +01:00
parent de12ea371e
commit 1fca44fcfc
11 changed files with 190 additions and 168 deletions

View File

@@ -52,17 +52,17 @@ typedef BOOL MU_wglSwapIntervalEXT(int interval);
#define WGL_SAMPLE_BUFFERS_ARB 0x2041
#define WGL_SAMPLES_ARB 0x2042
global MU_wglChoosePixelFormatARB *wglChoosePixelFormatARB;
global MU_wglCreateContextAttribsARB *wglCreateContextAttribsARB;
global MU_wglSwapIntervalEXT *wglSwapIntervalEXT;
gb MU_wglChoosePixelFormatARB *wglChoosePixelFormatARB;
gb MU_wglCreateContextAttribsARB *wglCreateContextAttribsARB;
gb MU_wglSwapIntervalEXT *wglSwapIntervalEXT;
global MU_glGetProcAddress *wgl_get_proc_address;
global void *(*gl_get_proc_address)(const char *str);
global HMODULE opengl_hmodule;
gb MU_glGetProcAddress *wgl_get_proc_address;
gb void *(*gl_get_proc_address)(const char *str);
gb HMODULE opengl_hmodule;
global HGLRC(*mu_wglCreateContext)(HDC unnamedParam1);
global BOOL(*mu_wglMakeCurrent)(HDC unnamedParam1, HGLRC unnamedParam2);
global BOOL(*mu_wglDeleteContext)(HGLRC unnamedParam1);
gb HGLRC(*mu_wglCreateContext)(HDC unnamedParam1);
gb BOOL(*mu_wglMakeCurrent)(HDC unnamedParam1, HGLRC unnamedParam2);
gb BOOL(*mu_wglDeleteContext)(HGLRC unnamedParam1);
// compares src string with dstlen characters from dst, returns 1 if they are equal, 0 if not
fn int w32_are_strings_equal(const char *src, const char *dst, size_t dstlen) {