AtlatestRepositorysigil-app
1
/*2
* sigil-desktop.h - the C surface of sigil-desktop for sibling packages3
*4
* sigil-graphics builds its sokol_gfx environment and swapchain from5
* these, and loads GL through the proc loader instead of linking libGL.6
* Everything here is valid only while app-run is running (between the7
* init callback and the cleanup callback).8
*/10
#ifndef SIGIL_DESKTOP_H11
#define SIGIL_DESKTOP_H13
#ifdef __cplusplus14
extern "C" {15
#endif17
/* The window's framebuffer size in pixels: what GL draws into and what18
* frame-width / frame-height report. 1x1 before the window exists. */19
void sigil_desktop_framebuffer_size(int *width, int *height);21
/* The address of a GL or GL extension function for the current context22
* (glfwGetProcAddress), or NULL. Valid once the window exists; GL is23
* loaded by GLFW at run time, nothing links it. */24
void *sigil_desktop_gl_get_proc_address(const char *name);26
/* The platform GLFW picked: "wayland", "x11", "win32", "cocoa", or27
* "none" before app-run. */28
const char *sigil_desktop_platform(void);30
#ifdef __cplusplus31
}32
#endif34
#endif /* SIGIL_DESKTOP_H */