BVB Source Codes

CRYENGINE Show StatsSizer.h Source code

Return Download CRYENGINE: download StatsSizer.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4.    -------------------------------------------------------------------------
  5.    File name:           StatsSizer.h
  6.    Version:                     v1.00
  7.    Created:                     23/10/2009 by Sergey Mikhtonyuk
  8.    Description:  Sizer implementation that used by game statistics
  9.    -------------------------------------------------------------------------
  10.    History:
  11. *************************************************************************/
  12. #ifndef   _STATSSIZER_H__
  13. #define   _STATSSIZER_H__
  14.  
  15. #if _MSC_VER > 1000
  16.         #pragma once
  17. #endif
  18.  
  19. class CStatsSizer : public ICrySizer
  20. {
  21. public:
  22.         CStatsSizer();
  23.         virtual void                Release();
  24.         virtual size_t              GetTotalSize();
  25.         virtual size_t              GetObjectCount();
  26.         virtual bool                AddObject(const void* pIdentifier, size_t nSizeBytes, int nCount);
  27.         virtual IResourceCollector* GetResourceCollector();
  28.         virtual void                SetResourceCollector(IResourceCollector* pColl);
  29.         virtual void                Push(const char* szComponentName);
  30.         virtual void                PushSubcomponent(const char* szSubcomponentName);
  31.         virtual void                Pop();
  32.         virtual void                Reset();
  33.         virtual void                End();
  34.  
  35. private:
  36.         size_t m_count, m_size;
  37. };
  38.  
  39. #endif // __STATSSIZER_H__
  40.  
downloadStatsSizer.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top