Skip to content

HandmadeNetwork/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 

Repository files navigation

Minimal Code Examples

Graphics

Platform Name Link
Windows SDL2 Drawing Pixels https://gist.github.com/mmozeiko/729860eeb414f1a2ee345d9d3ab4dd4e
Windows Basic OpenGL 4.5 https://gist.github.com/mmozeiko/ed2ad27f75edf9c26053ce332a1f6647
Windows OpenGL 4.5 for multiple windows https://gist.github.com/mmozeiko/6825cb94d393cb4032d250b8e7cc9d14
Windows D3D11 Drawing Pixels https://gist.github.com/mmozeiko/6f36f2b82204b70a9b7fe6c05ccd868f
Windows Basic D3D11 https://gist.github.com/mmozeiko/5e727f845db182d468a34d524508ad5f
Windows Minimal D3D11 example https://gist.github.com/d7samurai/261c69490cce0620d0bfc93003cd1052
Windows Minimal D3D11 sprite rendering https://gist.github.com/d7samurai/8f91f0343c411286373161202c199b5c
Linux OpenGL on X11 https://gist.github.com/mmozeiko/911347b5e3d998621295794e0ba334c4
Android Basic OpenGL/C App https://github.com/mmozeiko/android-native-example

Networking

Platform Name Link
Windows TLS Socket client https://gist.github.com/mmozeiko/c0dfcc8fec527a90a02145d2cc0bfb6d

Platform Utilities

Platform Name Link
Windows Capturing an RGBA image to clipboard https://gist.github.com/mmozeiko/bd79c7d256eecd1eb89441f3e0a3ad17
Windows Monitor file access with ETW https://gist.github.com/mmozeiko/4279a6aa54684965770330231133badf
Windows Generate 32-bit RGBA BMP files https://gist.github.com/mmozeiko/454261be848a0be0a22bafb8abd14a4f
Windows Flush file cache https://gist.github.com/mmozeiko/2d455bf4e9ba02e69365e7cc63f4df2f
Linux Libc-free threading https://github.com/skeeto/scratch/blob/master/misc/stack_head.c

Compilers and Languages

Platform Name Link
N/A Linear scanning garbage collector https://gist.github.com/pervognsen/7fe51bef8977cb249ac4c6f830f818a5
N/A x64 codegen https://gist.github.com/pervognsen/9d815016d8ef39f1b2c8e509ee2cf052
Linux Minimal Forth https://github.com/nornagon/jonesforth/blob/master/jonesforth.S
Linux Minimal Token-threaded Forth https://github.com/kragen/tokthr/blob/master/tokthr.S
N/A Minimal COFF Generator https://gist.github.com/RealNeGate/428a274496ce9852e06f9db1852b6cc2
N/A Building a Compiler https://compilers.iecc.com/crenshaw/

Bootstrapping

Name Links
Simple Assembler from Octal https://dercuano.github.io/notes/forth-assembling.html
Lisp in the Boot Sector https://justine.lol/sectorlisp2/
Booting from UEFI https://git.mr4th.com/Mr4th/lil_uefi/src/branch/master
Bootstrapping from a Hex Monitor https://github.com/oriansj/stage0

Misc

Platform Name Link
N/A A* Pathfinding https://gist.github.com/mmozeiko/68f0a8459ef2f98bcd879158011cc275
Windows / Linux Get RDTSC Frequency https://gist.github.com/pmttavara/6f06fc5c7679c07375483b06bb77430c

Handy Resources

Name Links
Binary Formats Visualized https://github.com/corkami/pics/blob/master/binary/README.md
Tiny ELF Binaries https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html
Making portable binaries https://justine.lol/ape.html

About

Minimal Code Examples and Resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published