aboutsummaryrefslogtreecommitdiff
path: root/sp/src/utils/vrad/origface.cpp
blob: fbbe0e871757b20cfef65e6e5978b607f650b08b (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $Workfile:     $
// $Date:         $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//

#include "vrad.h"

bool bOrigFacesTouched[MAX_MAP_FACES];


//-----------------------------------------------------------------------------
// Pupose: clear (reset) the bOrigFacesTouched list -- parellels the original
//         face list allowing an original face to only be processed once in 
//         pairing edges!
//-----------------------------------------------------------------------------
void ResetOrigFacesTouched( void )
{
    for( int i = 0; i < MAX_MAP_FACES; i++ )
    {
        bOrigFacesTouched[i] = false;
    }
}


//-----------------------------------------------------------------------------
// Purpose: mark an original faces as touched (dirty)
//   Input: index - index of the original face touched
//-----------------------------------------------------------------------------
void SetOrigFaceTouched( int index )
{
    bOrigFacesTouched[index] = true;
}


//-----------------------------------------------------------------------------
// Purpose: return whether or not an original face has been touched
//   Input: index - index of the original face touched
//  Output: true/false
//-----------------------------------------------------------------------------
bool IsOrigFaceTouched( int index )
{
    return bOrigFacesTouched[index];
}