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.

36 lines
861 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef MPIVRAD_H
  8. #define MPIVRAD_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #define VMPI_VRAD_PACKET_ID 1
  13. // Sub packet IDs.
  14. #define VMPI_SUBPACKETID_VIS_LEAFS 0
  15. #define VMPI_SUBPACKETID_BUILDFACELIGHTS 1
  16. #define VMPI_SUBPACKETID_PLIGHTDATA_RESULTS 2
  17. // DistributeWork owns this packet ID.
  18. #define VMPI_DISTRIBUTEWORK_PACKETID 2
  19. // Called first thing in the exe.
  20. void VRAD_SetupMPI( int &argc, char **&argv );
  21. void RunMPIBuildFacelights(void);
  22. void RunMPIBuildVisLeafs(void);
  23. void VMPI_DistributeLightData();
  24. // This handles disconnections. They're usually not fatal for the master.
  25. void HandleMPIDisconnect( int procID );
  26. #endif // MPIVRAD_H