BVB Source Codes

CRYENGINE Show DebugDrawContext.h Source code

Return Download CRYENGINE: download DebugDrawContext.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:   DebugDrawContext.h
  6.    $Id$
  7.    Description: Render context (set of flags)
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 2009-2-17   : Created by Evgeny Adamenkov
  12.  
  13.  *********************************************************************/
  14.  
  15. #ifndef _DEBUG_DRAW_CONTEXT_H_
  16. #define _DEBUG_DRAW_CONTEXT_H_
  17.  
  18. #if _MSC_VER > 1000
  19.         #pragma once
  20. #endif
  21.  
  22. #include <CryAISystem/IAIDebugRenderer.h>
  23. #include "Environment.h"
  24.  
  25. class CDebugDrawContext
  26. {
  27.         IAIDebugRenderer*  m_pDebugRenderer;
  28.         const unsigned int m_uiDepth;
  29.  
  30. public:
  31.         CDebugDrawContext()
  32.                 : m_pDebugRenderer(gAIEnv.CVars.NetworkDebug ? gAIEnv.GetNetworkDebugRenderer() : gAIEnv.GetDebugRenderer()),
  33.                 m_uiDepth(m_pDebugRenderer->PushState())  {}
  34.  
  35.         ~CDebugDrawContext()  { unsigned int uiDepth = m_pDebugRenderer->PopState(); assert(uiDepth + 1 == m_uiDepth); }
  36.  
  37.         IAIDebugRenderer* operator->() const { return m_pDebugRenderer; }
  38. };
  39.  
  40. #endif  // #ifndef _DEBUG_DRAW_CONTEXT_H_
  41.  
downloadDebugDrawContext.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