BVB Source Codes

CRYENGINE Show AIDebugDrawHelpers.h Source code

Return Download CRYENGINE: download AIDebugDrawHelpers.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:   AIDebugDrawHelpers.h
  6.    $Id$
  7.    Description: Helper functions to draw some interesting debug shapes.
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 2006-9-19   : Created by Mikko Mononen
  12.  
  13.  *********************************************************************/
  14.  
  15. #ifndef __AIDEBUGDRAWHELPERS_H__
  16. #define __AIDEBUGDRAWHELPERS_H__
  17.  
  18. #if _MSC_VER > 1000
  19.         #pragma once
  20. #endif
  21.  
  22. #include <CryRenderer/IRenderer.h>
  23. #include <CryMath/Cry_Vector3.h>
  24.  
  25. // Draws a circle constrained on XY-plane.
  26. void DebugDrawCircleOutline(IRenderer* pRend, const Vec3& pos, float rad, ColorB col);
  27.  
  28. // Draws a capsule constrained on XY-plane.
  29. void DebugDrawCapsuleOutline(IRenderer* pRend, const Vec3& pos0, const Vec3& pos1, float rad, ColorB col);
  30.  
  31. // Draws a wire frame sphere (circle per plane).
  32. void DebugDrawWireSphere(IRenderer* pRend, const Vec3& pos, float rad, ColorB col);
  33.  
  34. // Draws a wire frame cone.
  35. void DebugDrawWireFOVCone(IRenderer* pRend, const Vec3& pos, const Vec3& dir, float rad, float fov, ColorB col);
  36.  
  37. // Draws an arrow constrained on XY-plane along the length-vector.
  38. void DebugDrawArrow(IRenderer* pRend, const Vec3& pos, const Vec3& length, float width, ColorB col);
  39.  
  40. // Draws a circle constrained on XY-plane with hem.
  41. void DebugDrawRangeCircle(IRenderer* pRend, const Vec3& pos, float rad, float width,
  42.                           ColorB colFill, ColorB colOutline, bool drawOutline);
  43.  
  44. // Draws an arc constrained on XY-plane with hem.
  45. void DebugDrawRangeArc(IRenderer* pRend, const Vec3& pos, const Vec3& dir, float angle, float rad, float width,
  46.                        ColorB colFill, ColorB colOutline, bool drawOutline);
  47.  
  48. // Draws a box constrained on XY-plane with hem.
  49. void DebugDrawRangeBox(IRenderer* pRend, const Vec3& pos, const Vec3& dir, float sizex, float sizey, float width,
  50.                        ColorB colFill, ColorB colOutline, bool drawOutline);
  51.  
  52. // Draws a polygon with a hem constrained on XY-plane.
  53. template<typename containerType>
  54. void DebugDrawRangePolygon(IRenderer* pRend, const containerType& polygon, float width,
  55.                            ColorB colFill, ColorB colOutline, bool drawOutline);
  56.  
  57. // Draw
  58. void DebugDrawLabel(IRenderer* pRenderer, int col, int row, const char* szText, float* pColor);
  59.  
  60. // Draw agent circles.
  61. void DebugDrawCircles(IRenderer* pRenderer, const Vec3& pos,
  62.                       float minRadius, float maxRadius, int numRings,
  63.                       const ColorB& insideCol, const ColorB& outsideCol);
  64.  
  65. // Debug oriented 2d ellipse
  66. void DebugDrawEllipseOutline(IRenderer* pRend, const Vec3& pos, float radx, float rady, float orientation, ColorB col);
  67.  
  68. /// Returns the z value that should be used for drawing the point, depending on if it should be relative to terrain.
  69. /// If relative to the terrain then if the m_dbgDrawOffsetZ is <= 0, -m_dbgDrawOffsetZ is returned
  70. float GetDebugDrawZ(const Vec3& pt, bool useTerrain);
  71.  
  72. float GetDebugDrawOffset();
  73.  
  74. // Returns camera position.
  75. Vec3 GetDebugCameraPos();
  76.  
  77. #endif
  78.  
downloadAIDebugDrawHelpers.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