forked from perilouswithadollarsign/cstrike15_src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSmoothingGroupMgr.h
45 lines (33 loc) · 1.33 KB
/
SmoothingGroupMgr.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
35
36
37
38
39
40
41
42
43
44
45
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef SMOOTHINGGROUPMGR_H
#define SMOOTHINGGROUPMGR_H
#pragma once
class CMapFace;
class CChunkFile;
class CSaveInfo;
enum ChunkFileResult_t;
#define MAX_SMOOTHING_GROUP_COUNT 32
#define INVALID_SMOOTHING_GROUP 0xff
typedef unsigned char SmoothingGroupHandle_t;
//=============================================================================
//
// Smoothing Group Manager
//
class ISmoothingGroupMgr
{
public:
virtual void AddFaceToGroup( SmoothingGroupHandle_t hGroup, CMapFace *pFace ) = 0;
virtual void RemoveFaceFromGroup( SmoothingGroupHandle_t hGroup, CMapFace *pFace ) = 0;
virtual void SetGroupSmoothingAngle( SmoothingGroupHandle_t hGroup, float flAngle ) = 0;
virtual float GetGroupSmoothingAngle( SmoothingGroupHandle_t hGroup ) = 0;
virtual int GetFaceCountInGroup( SmoothingGroupHandle_t hGroup ) = 0;
virtual CMapFace *GetFaceFromGroup( SmoothingGroupHandle_t hGroup, int iFace ) = 0;
virtual ChunkFileResult_t SaveVMF( CChunkFile *pFile, CSaveInfo *pSaveInfo ) = 0;
virtual ChunkFileResult_t LoadVMF( CChunkFile *pFile ) = 0;
};
ISmoothingGroupMgr *SmoothingGroupMgr( void );
#endif // SMOOTHINGGROUPMGR_H