-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDefines.h
More file actions
41 lines (35 loc) · 967 Bytes
/
Copy pathDefines.h
File metadata and controls
41 lines (35 loc) · 967 Bytes
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
#pragma once
#include <iostream>
#include <d3d11.h>
#include <d3dcompiler.h>
#include <DirectXMath.h>
#include <stdexcept>
#include <assert.h>
#include <vector>
#include <Windows.h>
#include <algorithm>
#include <fstream>
#include <chrono>
#include <string>
#include <memory>
#include "Image.h"
#include <string>
#define _USE_MATH_DEFINES
#include <math.h>
#include "WICTextureLoader.h" // maybe remove?
#include "DDSTextureLoader.h"
#include <wrl/client.h>
#include <unordered_map>
using namespace DirectX;
using Microsoft::WRL::ComPtr;
// For aligning 16 bits
#define ALIGN16 _declspec(align(16))
// Custom fail check define for throwing messageboxes at what the problem is.
#define FAILCHECK(check, message) if((check == 0)) { MessageBox(NULL, message, L"ERROR", MB_OK); }
// Window size
#define WINWIDTH 1024
#define WINHEIGHT 768
// Camera related values
//#define FOV 90.0f
#define NEAR_Z 0.1f
#define FAR_Z 1000.0f