Skip to content

Instantly share code, notes, and snippets.

View g-berthiaume's full-sized avatar

G. Berthiaume g-berthiaume

View GitHub Profile
@raysan5
raysan5 / raylib_vs_sdl.md
Last active April 29, 2025 08:29
raylib vs SDL - A libraries comparison

raylib_vs_sdl

In the last years I've been asked multiple times about the comparison between raylib and SDL libraries. Unfortunately, my experience with SDL was quite limited so I couldn't provide a good comparison. In the last two years I've learned about SDL and used it to teach at University so I feel that now I can provide a good comparison between both.

Hope it helps future users to better understand this two libraries internals and functionality.

Table of Content

@tylov
tylov / fmt_print.h
Last active November 25, 2024 04:03
Lightweight fmt_print() function for C11
#ifndef FMT_H_INCLUDED
#define FMT_H_INCLUDED
/*
VER 2.3 API:
void fmt_print(fmt, ...);
void fmt_println(fmt, ...);
void fmt_printd(dst, fmt, ...);
const char* fmt_time(fmt, const struct tm* tm, char *buf, int len);
void fmt_close(fmt_stream* ss);
@dbechrd
dbechrd / 20230108_dbechrd_sdl2_quick_reference.c
Last active November 27, 2024 07:18
SDL 2 API Quick Reference
Moved to: https://blog.theprogrammingjunkie.com/post/sdl2-cheatsheet/