Skip to content

Instantly share code, notes, and snippets.

View sektant1's full-sized avatar
🧙‍♂️
Jesus is king

Gabriel Fernandes sektant1

🧙‍♂️
Jesus is king
  • 01:35 (UTC -03:00)
View GitHub Profile
@sektant1
sektant1 / SDLblit.cpp
Created April 4, 2026 21:38 — forked from CoryBloyd/SDLblit.cpp
Minimal code to set up a window in SDL and blit from CPU RAM to the window
// This work (SDLblit.cpp, by Cory Bloyd) is free of known copyright restrictions.
// https://creativecommons.org/publicdomain/zero/1.0/
#include <SDL.h>
inline uint32_t argb(uint8_t a, uint8_t r, uint8_t g, uint8_t b) { return (a<<24) | (r << 16) | (g << 8) | (b << 0); }
int main(int argc, char *argv[]) {
SDL_Init(SDL_INIT_VIDEO);
SDL_Rect screenRect = { 0,0,1024,1024 };
@sektant1
sektant1 / openglbb.md
Created August 20, 2025 00:20 — forked from graphitemaster/openglbb.md
OpenGL Black Bible

OpenGL Black Bible

Author: Dale Weiler

Preface

The following is a writeup of the following things I've independently discovered or been told over the years on how to utilize OpenGL effectively. Not everything in here I gurantee to be factually correct - though several others share similar ideas as present here. Take these are your own peril, like everything else - nothing is absolute; so profile to be sure and check the standards if something here is incorrect. These things presented here I've come to accept as being a safe

@sektant1
sektant1 / Graphics and Engine development.md
Created August 20, 2025 00:16 — forked from rtryan98/Graphics and Engine development.md
Talks, Posts, Papers and more for Graphics and (Game) Engine Development