This file contains 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
#include "mu.h" | |
#define _CRT_SECURE_NO_WARNINGS | |
#include <malloc.h> | |
#define _USE_MATH_DEFINES | |
#include <math.h> | |
#define _NO_CRT_STDIO_INLINE | |
#include <stdio.h> | |
#include <stdarg.h> | |
#define NO_STRICT |
This file contains 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
// minimal d3d11 reference implementation; an uncluttered direct3d 11 setup and rendering primer for newcomers to the api. | |
// complete, runnable c+ application contained in a single function (winmain) and laid out in a step-by-step fashion that | |
// should be easy to follow from the code alone. win7 compatible. produces this output: https://youtu.be/XR7zPheek2Q | |
// twitter: @d7samurai | |
#pragma comment(lib, "d3d11") | |
#pragma comment(lib, "d3dcompiler") | |
#include <windows.h> |