aboutsummaryrefslogtreecommitdiff
path: root/mp/src/utils/vrad/mpivrad.h
blob: 01c841b373d316dafaba9cbf6e0b7b62a50d1a86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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