NOTE: this article has been moved to the RGFW wiki here:
https://github.com/ColleagueRiley/RGFW/wiki/RGFW-vs-GLFW
This should have more up-to-date information.
| #define RSGL_IMPLEMENTATION | |
| #include "RSGL.h" | |
| int main(void) { | |
| RGFW_window* win = RGFW_createWindow("name", RGFW_RECT(0, 0, 800, 600), RGFW_CENTER); | |
| srand(time(NULL)); | |
| RSGL_init(RSGL_AREA(win->r.w, win->r.h), RGFW_getProcAddress); | |
| u32 map[] = { |
NOTE: this article has been moved to the RGFW wiki here:
https://github.com/ColleagueRiley/RGFW/wiki/RGFW-vs-GLFW
This should have more up-to-date information.
| #include <iostream> | |
| #include <glob.h> // glob(), globfree() | |
| #include <string.h> // memset() | |
| #include <vector> | |
| std::string globError; | |
| int globReturn; | |
| std::vector<std::string> ERRORglob(std::string error,glob_t glob_result){ | |
| globfree(&glob_result); |