Skip to content

Instantly share code, notes, and snippets.

@msmshazan
msmshazan / dx11.cpp
Created April 24, 2019 19:01
Minimal D3D11 example using C interface
// example how to set up D3D11 rendering
// set to 0 to create resizable window
#define WINDOW_WIDTH 1280
#define WINDOW_HEIGHT 720
// do you need depth buffer?
#define WINDOW_DEPTH 1
// do you need stencil buffer?
@d7samurai
d7samurai / .readme.md
Last active February 5, 2026 04:05
Minimal D3D11

Minimal D3D11

Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++, OOP or (other) obscuring cruft. View on YouTube

hollowcube

Other gists in this series:

@AlexCharlton
AlexCharlton / go.scm
Last active May 5, 2016 03:48
Go prototype in CHICKEN Scheme
(import chicken scheme)
(use hypergiant srfi-42 miscmacros)
;;;
;;; Game logic
;;;
;; Turns
(define turn (make-parameter 'black))