#ifndef THREEDUTILS_H
#define THREEDUTILS_H

#include <windows.h>
#include <d3d9.h>
#include <d3dx9.h>

struct Vector
{
	float X;
	float Y;
	float Z;
};

struct StandardVertex
{
	Vector Position;
	Vector Normal;
	DWORD Diffuse;
};

bool FindClickedFace(IDirect3DDevice9* pd3dDevice, int WindowWidth, int WindowHeight, LPD3DXMESH CheckMesh, POINT ptCursor, DWORD& FaceHit /*out*/);

#endif