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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (import chicken scheme) | |
| (use hypergiant srfi-42 miscmacros) | |
| ;;; | |
| ;;; Game logic | |
| ;;; | |
| ;; Turns | |
| (define turn (make-parameter 'black)) |
