-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.h
More file actions
58 lines (47 loc) · 1.19 KB
/
ui.h
File metadata and controls
58 lines (47 loc) · 1.19 KB
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
55
56
57
//=============================================================================
//
// UI処理 [score.h]
// Author :
//
//=============================================================================
#pragma once
#include "main.h"
//*****************************************************************************
// マクロ定義
//*****************************************************************************
#define UI_DIGIT (2) // 桁数
//*****************************************************************************
// UI構造体
//*****************************************************************************
enum UI_TYPE
{
UI_WOOD,
UI_METAL,
UI_CONCRETE,
UI_LIFE,
UI_NUMBER,
UI_MAX,
};
struct UI
{
XMFLOAT3 pos;
XMFLOAT3 rot;
XMFLOAT3 scl;
int texNo;
float w, h;
int count;
BOOL use;
};
//*****************************************************************************
// プロトタイプ宣言
//*****************************************************************************
HRESULT InitUI(void);
void UninitUI(void);
void UpdateUI(void);
void DrawUI(void);
void AddWood(int add);
void GetWood();
void AddMetal(int add);
void GetMetal(int add);
void AddConcrete(int add);
void GetConcrete(int add);