-
Notifications
You must be signed in to change notification settings - Fork 0
/
meshfield.h
34 lines (27 loc) · 1005 Bytes
/
meshfield.h
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
//=============================================================================
//
// メッシュ地面の処理 [meshfield.h]
// Author :
//
//=============================================================================
#pragma once
#include "mapReader.h"
#define FIELD_BORDER_X (100000.0f)
#define FIELD_BORDER_Z (100000.0f)
struct TEMP_VERTEX
{
float x, y, z;
float tu, tv;
};
//*****************************************************************************
// プロトタイプ宣言
//*****************************************************************************
HRESULT InitMeshField(XMFLOAT3 pos, XMFLOAT3 rot, float sclXZ, float sclY, float fBlockSizeX, float fBlockSizeZ);
void UninitMeshField(void);
void UpdateMeshField(void);
void DrawMeshField(void);
BOOL RayHitField(XMFLOAT3 pos, XMFLOAT3 *HitPosition, XMFLOAT3 *Normal);
void CalculateFieldNormal(HEIGHTMAPINFO &heightMap);
void CalculateTerrainVector(void);
float GetMapWidth(void);
float GetMapHeight(void);