-
Notifications
You must be signed in to change notification settings - Fork 2
/
directxtest.h
54 lines (41 loc) · 1.81 KB
/
directxtest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//-------------------------------------------------------------------------------------
// DirectXTest.h
//
// Copyright (c) Microsoft Corporation.
//-------------------------------------------------------------------------------------
#pragma once
#pragma warning(push)
#pragma warning(disable : 4005)
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#define NODRAWTEXT
#define NOGDI
#define NOMCX
#define NOSERVICE
#define NOHELP
#pragma warning(pop)
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#include <cstdlib>
#include <cstdio>
#include <iterator>
#include <Windows.h>
#define _XM_NO_XMVECTOR_OVERLOADS_
#include <DirectXMath.h>
#include <DirectXPackedVector.h>
#define _DIRECTX_TEST_NAME_ "UVAtlas"
#define print printf
#define printe printf
#define printxmv(v) print("%s: %f,%f,%f,%f\n", #v, XMVectorGetX(v), XMVectorGetY(v), XMVectorGetZ(v), XMVectorGetW(v))
#if 0
#define printdigest(str,digest) print( "%s: 0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x\n", str, \
digest[0], digest[1], digest[2], digest[3], digest[4], digest[5], digest[6], digest[7], \
digest[8], digest[9], digest[10], digest[11], digest[12], digest[13], digest[14], digest[15] );
#else
#define printdigest(str,digest) print( "%s: %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\n", str, \
digest[0], digest[1], digest[2], digest[3], digest[4], digest[5], digest[6], digest[7], \
digest[8], digest[9], digest[10], digest[11], digest[12], digest[13], digest[14], digest[15] );
#endif
#define MESH_MEDIA_PATH L"%DIRECTXMESH_MEDIA_PATH%\\"
#define TEX_MEDIA_PATH L"%DIRECTXTEX_MEDIA_PATH%\\"
#define TEMP_PATH L"%TEMP%\\"