2026-01-22 21:02:22 +00:00
|
|
|
#define RGFW_OPENGL
|
|
|
|
|
#define RGFW_ALLOC_DROPFILES
|
2026-01-22 02:00:57 +00:00
|
|
|
#define RGFW_IMPLEMENTATION
|
2026-01-22 21:02:22 +00:00
|
|
|
#define RGFW_PRINT_ERRORS
|
|
|
|
|
#define RGFW_DEBUG
|
|
|
|
|
#define GL_SILENCE_DEPRECATION
|
2026-01-22 02:00:57 +00:00
|
|
|
#include "RGFW.h"
|
2026-01-22 21:02:22 +00:00
|
|
|
#include <GLES3/gl3.h>
|
|
|
|
|
#include <stdbool.h>
|
2026-01-22 02:00:57 +00:00
|
|
|
|
2026-01-22 21:02:22 +00:00
|
|
|
RGFW_window* createWindow(char* title, int x, int y, int width, int height) {
|
|
|
|
|
return RGFW_createWindow(title, x, y, width, height, RGFW_windowCenter | RGFW_windowOpenGL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void closeWindow(RGFW_window* window) {
|
|
|
|
|
RGFW_window_close(window);
|
|
|
|
|
}
|
2026-01-22 02:00:57 +00:00
|
|
|
|
2026-01-22 21:02:22 +00:00
|
|
|
bool shouldCloseWindow(RGFW_window* window) {
|
2026-01-22 21:38:15 +00:00
|
|
|
if (RGFW_window_shouldClose(window)) {
|
|
|
|
|
return true;
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2026-01-22 21:02:22 +00:00
|
|
|
}
|
2026-01-22 02:00:57 +00:00
|
|
|
|
2026-01-22 21:02:22 +00:00
|
|
|
void swapBuffers(RGFW_window* window) {
|
|
|
|
|
RGFW_window_swapBuffers_OpenGL(window);
|
2026-01-22 02:00:57 +00:00
|
|
|
}
|