aboutsummaryrefslogtreecommitdiff
path: root/mp/src/utils/vrad/mpivrad.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /mp/src/utils/vrad/mpivrad.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/utils/vrad/mpivrad.h')
-rw-r--r--mp/src/utils/vrad/mpivrad.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/mp/src/utils/vrad/mpivrad.h b/mp/src/utils/vrad/mpivrad.h
new file mode 100644
index 00000000..990b3df8
--- /dev/null
+++ b/mp/src/utils/vrad/mpivrad.h
@@ -0,0 +1,36 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef MPIVRAD_H
+#define MPIVRAD_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#define VMPI_VRAD_PACKET_ID 1
+ // Sub packet IDs.
+ #define VMPI_SUBPACKETID_VIS_LEAFS 0
+ #define VMPI_SUBPACKETID_BUILDFACELIGHTS 1
+ #define VMPI_SUBPACKETID_PLIGHTDATA_RESULTS 2
+
+// DistributeWork owns this packet ID.
+#define VMPI_DISTRIBUTEWORK_PACKETID 2
+
+
+// Called first thing in the exe.
+void VRAD_SetupMPI( int &argc, char **&argv );
+
+void RunMPIBuildFacelights(void);
+void RunMPIBuildVisLeafs(void);
+void VMPI_DistributeLightData();
+
+// This handles disconnections. They're usually not fatal for the master.
+void HandleMPIDisconnect( int procID );
+
+
+#endif // MPIVRAD_H