begin adding bindings to rgfw window library

This commit is contained in:
2026-01-22 02:00:57 +00:00
parent 5eb94f5ccb
commit e0c09c5480
3 changed files with 15238 additions and 0 deletions

16
ffi/rgfw-export.c Normal file
View File

@@ -0,0 +1,16 @@
#include <math.h>
#define RGFW_IMPLEMENTATION
#define RGFW_OPENGL /* if this line is not added, OpenGL functions will not be included */
#include "RGFW.h"
#ifdef RGFW_MACOS
#include <OpenGL/gl.h> /* why does macOS do this */
#else
#include <GL/gl.h>
#endif
RGFW_windowFlags OPENGL_WINDOW = RGFW_windowOpenGL;
RGFW_window* createWindow(char* title, int x, int y, int width, int height, RGFW_windowFlags options) {
return RGFW_createWindow(title, x, y, width, height, options);
}