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.

40 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef SCRATCHPAD_GAMEDLL_HELPERS_H
  7. #define SCRATCHPAD_GAMEDLL_HELPERS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class IScratchPad3D;
  12. #define SPDRAWWORLD_DRAW_WORLD 0x001
  13. #define SPDRAWWORLD_DRAW_PLAYERS 0x002 // Draw player entities?
  14. #define SPDRAWWORLD_DRAW_ENTITIES 0x004 // Draw entities other than players?
  15. #define SPDRAWWORLD_DRAW_ENTITY_CLASSNAMES 0x008
  16. #define SPDRAWWORLD_DRAW_EDICT_INDICES 0x010
  17. #define SPDRAWWORLD_DRAW_ALL 0xFFFFFFFF
  18. // Draws the world and various things in it into the scratchpad.
  19. // flags is a combination of the SPDRAWWORLD_ flags.
  20. void ScratchPad_DrawWorldToScratchPad(
  21. IScratchPad3D *pPad,
  22. unsigned long flags );
  23. // Draw a specific entity into the scratch pad.
  24. void ScratchPad_DrawEntityToScratchPad(
  25. IScratchPad3D *pPad,
  26. unsigned long flags,
  27. CBaseEntity *pEnt,
  28. const Vector &vColor );
  29. #endif // SCRATCHPAD_GAMEDLL_HELPERS_H