-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.cpp
41 lines (35 loc) · 1.26 KB
/
common.cpp
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
//--------------------------------------------------------------------------------------
// File: common.cpp
//--------------------------------------------------------------------------------------
#include "DXUT.h"
#include "DXUTgui.h"
#include "DXUTguiIME.h"
#include "DXUTcamera.h"
#include "DXUTsettingsdlg.h"
#include "SDKmesh.h"
#include "SDKmisc.h"
#include "resource.h"
#include <xaudio2.h>
#include <math.h>
#include <xmmintrin.h>
#include <emmintrin.h>
#include "common.h"
//--------------------------------------------------------------------------------------
// shared globals
//--------------------------------------------------------------------------------------
//performance counters
LARGE_INTEGER g_qwTimeBefore = { 0 };
LARGE_INTEGER g_qwTimeAfter = { 0 };
LARGE_INTEGER g_ticksPerSecond = { 0 };
//tunning hacks
float g_floatValues[16] = { 0 };
int g_intValues[16] = { 0 };
//--------------------------------------------------------------------------------------
// Debug
//--------------------------------------------------------------------------------------
void DBugVec(WCHAR *str, float* p)
{
WCHAR wszOutput[1024];
swprintf_s(wszOutput, 1024, L"\n%s: (%5.4f, %5.4f, %5.4f, %5.4f)", str, p[0], p[1], p[2], p[3]);
OutputDebugString(wszOutput);
}