/////////////////////////////////////////////////
//
//  filename: StdAfx.h
//  author:뭴빒뱬렊 
//  date: 2018/04/03 ver1.00
//		  2020/03/22 ver1.02
//
/////////////////////////////////////////////////

#ifndef __STDAFX_H__
#define __STDAFX_H__

#include <Windows.h>
#include <windowsx.h>
#include <atlimage.h>
#include <locale.h>
#include <atlstr.h>
#include <stdio.h>
#include <stdlib.h>
#include <gdiplus.h>
#include <Richedit.h>
#include <tchar.h>

#include <imm.h>
#pragma comment(lib, "imm32.lib")

#include <mmsystem.h>
#pragma comment(lib, "winmm.lib")

using namespace Gdiplus;

#include <stdio.h>
#include <time.h>

#include <d3d12.h>
#include <dxgi1_4.h>
#include <D3Dcompiler.h>
#include <math.h>
#include <DirectXMath.h>
#include <wrl.h>

#pragma comment(lib, "d3d12.lib")
#pragma comment(lib, "dxgi.lib")
#pragma comment(lib, "d3dcompiler.lib")
#pragma comment(lib, "windowscodecs.lib")
#pragma comment(lib, "dxguid.lib")

using Microsoft::WRL::ComPtr;
using namespace DirectX;

#include "Cha3D/defcha3d.h"
#pragma comment( lib, "Cha3DLib1.0.9.lib")

#include "ChaSound/ChaSound.h"
#pragma comment( lib, "ChaSoundLib1.7.2.lib")

#include "Coco.h"
#include "Stick.h"
#include "Piske.h"

#define SIZE_CHAR_MAX		1024
#define SAFE_RELEASE(p) { if( p ) { (p)->Release(); (p) = NULL;}}

#define COLOR_TRANSPARENT_R		255
#define COLOR_TRANSPARENT_G		255
#define COLOR_TRANSPARENT_B		255
#define SELECT_LIST_ITEM_DISP_NUM	8
#define ANIMATION_LIST_DISP_NUM		16

#define OPEN_TYPE_UNKNOWN		0
#define OPEN_TYPE_LOAD_MODEL	1
#define OPEN_TYPE_WRITE_MODEL	2
#define OPEN_TYPE_LOAD_DAE		3
#define OPEN_TYPE_LOAD_ANIMATION	4
#define OPEN_TYPE_WRITE_ANIMATION	5
#define OPEN_TYPE_WRITE_COLLIDER	6

////////////////////////////////////////////////////////////////////

#define APP_TITLE					_T("CocoFight")
#define APP_NAME					"CocoFight ver1.02"
#define DEFAULT_MODEL_NAME			L"coco1.43a.dae"
#define EXT_MODEL					L".mdl"
#define EXT_ANIM					L".ani"
#define EXT_DAE						L".dae"
#define EXT_CDR						L".cdr"
#define UNDEFINED_FILE_NAME			L"뼹뤝뼟먠믦"

#define MV_FILE_TYPE_UNKNOWN			0
#define MV_FILE_TYPE_MODEL				1
#define MV_FILE_TYPE_ANIMATION			2
#define MV_FILE_TYPE_DAE				3	
#define MV_FILE_TYPE_COLLIDER			4
#define MV_FILE_TYPE_DIRECTORY			5

#endif