Files
firestorm/Gameleap/code/mw4/Libraries/3dsmax2/include/VEDGE.H
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

25 lines
626 B
C++

#ifndef VEDGE_H_DEFINED
#define VEDGE_H_DEFINED
class VEdge {
DWORD f[2];
public:
void SetFace(int i, DWORD n) { f[i] =(f[i]&0xc0000000)|n;}
void SetWhichSide(int i, int s) { f[i] =(f[i]&0x3FFFFFFF)|((s&3)<<30); }
DWORD GetFace(int i){ return f[i]&0x3fffffff; }
int GetWhichSide(int i) { return (f[i]>>30)&3; }
};
typedef struct {
unsigned short flags;
DWORD v[2]; /* indices of two vertices defining edge */
DWORD f[2]; /* indices of two neighboring faces */
} Edge;
// Moved from VEDGE.CPP -TH
#define UNDEF 0xFFFFFFFF
#define UNDEF_FACE 0x3FFFFFFF
#endif // VEDGE_H_DEFINED