raze/source/core/rendering/hw_sections.h

34 lines
851 B
C
Raw Normal View History

#pragma once
#include "build.h"
struct SectionLine
{
int section;
int partnersection;
int startpoint;
int endpoint;
int wall;
int partner;
int point2index;
};
struct Section
{
int sector;
// this is the whole point of sections - instead of just having a start index and count, we have an explicit list of lines that's a lot easier to change when needed.
2021-12-05 21:26:34 +01:00
TArray<int> lines;
};
// giving 25% more may be a bit high as normally this should be small numbers only.
extern SectionLine sectionLines[MAXWALLS + (MAXWALLS >> 2)];
extern Section sections[MAXSECTORS + (MAXSECTORS >> 2)];
extern TArray<int> sectionspersector[MAXSECTORS]; // reverse map, mainly for the automap
extern int numsections;
extern int numsectionlines;
void hw_BuildSections();
2021-05-03 17:48:35 +02:00
void hw_SetSplitSector(int sector, int startpos, int endpos);
void hw_ClearSplitSector();