ref: update linking example

This commit is contained in:
samsonium
2026-10-29 20:24:06 +03:00
parent 01dabd2bdd
commit 0448be0d38
+7 -4
View File
@@ -1,8 +1,11 @@
extern "libglfw" {
type GLFWwindow = handle;
type GLFWmonitor = handle;
struct GLFWvidmode {
// Opaque types
type GLFWwindow handle;
type GLFWmonitor handle;
// Struct definition
type GLFWvidmode struct {
int width;
int height;
int redBits;
@@ -12,7 +15,7 @@ extern "libglfw" {
}
/// GLFWvidmode*
type GLFWvidmodeRef = ref GLFWvidmode;
type GLFWvidmodeRef ref GLFWvidmode;
/// Create window with specified [width], [height] and [title]
fn glfw_mkWindow(