Team Fortress 2 Source Code as on 22/4/2020
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.

39 lines
939 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TOOLDECAL_H
  8. #define TOOLDECAL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "ToolInterface.h"
  13. class CToolDecal : public CBaseTool
  14. {
  15. public:
  16. //
  17. // CBaseTool implementation.
  18. //
  19. virtual ToolID_t GetToolID(void) { return TOOL_DECAL; }
  20. virtual bool OnKeyDown2D(CMapView2D *pView, UINT nChar, UINT nRepCnt, UINT nFlags);
  21. virtual bool OnMouseMove2D(CMapView2D *pView, UINT nFlags, const Vector2D &vPoint);
  22. virtual bool OnKeyDown3D(CMapView3D *pView, UINT nChar, UINT nRepCnt, UINT nFlags);
  23. virtual bool OnLMouseDown3D(CMapView3D *pView, UINT nFlags, const Vector2D &vPoint);
  24. virtual bool OnMouseMove3D(CMapView3D *pView, UINT nFlags, const Vector2D &vPoint);
  25. private:
  26. void SetDecalCursor(void);
  27. };
  28. #endif // TOOLDECAL_H