mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 12:36:05 +08:00
37 lines
910 B
C
37 lines
910 B
C
![]() |
//========= Copyright <20> 1996-2005, 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
|