Skip to content

Instantly share code, notes, and snippets.

View ColleagueRiley's full-sized avatar

Riley Mabb ColleagueRiley

View GitHub Profile
@ColleagueRiley
ColleagueRiley / RSGL_raycast.c
Last active September 14, 2024 20:35
raycaster in RSGL
#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[] = {
@ColleagueRiley
ColleagueRiley / RGFW_vs_GLFW.md
Last active January 1, 2025 12:19
RGFW vs GLFW
@ColleagueRiley
ColleagueRiley / glob.hpp
Last active July 13, 2021 20:32
Simple glob headfile for easy glob use including a glob function and error handling.
#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);