Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef SMOOTHINGGROUPMGR_H
  7. #define SMOOTHINGGROUPMGR_H
  8. #pragma once
  9. class CMapFace;
  10. class CChunkFile;
  11. class CSaveInfo;
  12. enum ChunkFileResult_t;
  13. #define MAX_SMOOTHING_GROUP_COUNT 32
  14. #define INVALID_SMOOTHING_GROUP 0xff
  15. typedef unsigned char SmoothingGroupHandle_t;
  16. //=============================================================================
  17. //
  18. // Smoothing Group Manager
  19. //
  20. class ISmoothingGroupMgr
  21. {
  22. public:
  23. virtual void AddFaceToGroup( SmoothingGroupHandle_t hGroup, CMapFace *pFace ) = 0;
  24. virtual void RemoveFaceFromGroup( SmoothingGroupHandle_t hGroup, CMapFace *pFace ) = 0;
  25. virtual void SetGroupSmoothingAngle( SmoothingGroupHandle_t hGroup, float flAngle ) = 0;
  26. virtual float GetGroupSmoothingAngle( SmoothingGroupHandle_t hGroup ) = 0;
  27. virtual int GetFaceCountInGroup( SmoothingGroupHandle_t hGroup ) = 0;
  28. virtual CMapFace *GetFaceFromGroup( SmoothingGroupHandle_t hGroup, int iFace ) = 0;
  29. virtual ChunkFileResult_t SaveVMF( CChunkFile *pFile, CSaveInfo *pSaveInfo ) = 0;
  30. virtual ChunkFileResult_t LoadVMF( CChunkFile *pFile ) = 0;
  31. };
  32. ISmoothingGroupMgr *SmoothingGroupMgr( void );
  33. #endif // SMOOTHINGGROUPMGR_H