BVB Source Codes

CRYENGINE Show FlyHelpers_Debug.h Source code

Return Download CRYENGINE: download FlyHelpers_Debug.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __FLY_HELPERS__DEBUG__H__
  4. #define __FLY_HELPERS__DEBUG__H__
  5.  
  6. namespace FlyHelpers
  7. {
  8. void DrawDebugLocation(const Vec3& position, const ColorB& color)
  9. {
  10.         gEnv->pRenderer->GetIRenderAuxGeom()->DrawCone(position + Vec3(0, 0, 2), Vec3(0, 0, -1), 1, 2, color);
  11. }
  12.  
  13. void DrawDebugPath(const Path& path, const ColorB& color)
  14. {
  15.         char buffer[16];
  16.         const size_t segmentCount = path.GetSegmentCount();
  17.         for (size_t i = 0; i < segmentCount; ++i)
  18.         {
  19.                 const Lineseg segment = path.GetSegment(i);
  20.                 gEnv->pRenderer->GetIRenderAuxGeom()->DrawLine(segment.start, color, segment.end, color);
  21.  
  22.                 cry_sprintf(buffer, "%" PRISIZE_T, i);
  23.                 IRenderAuxText::DrawLabel(segment.start, 1.0f, buffer);
  24.         }
  25. }
  26. }
  27.  
  28. #endif
  29.  
downloadFlyHelpers_Debug.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