mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-17 16:01:00 +00:00
3c49804c6c
* only call hw_CheckViewArea if the result is not known yet. * check the map up front if it even contains heightsecs. This allows to shortcut the above check entirely for maps without sector transfers and will allow further optimizations.
16 lines
420 B
C
16 lines
420 B
C
#pragma once
|
|
|
|
enum area_t : int
|
|
{
|
|
area_normal,
|
|
area_below,
|
|
area_above,
|
|
area_default
|
|
};
|
|
|
|
|
|
// Global functions. Make them members of GLRenderer later?
|
|
bool hw_CheckClip(side_t * sidedef, sector_t * frontsector, sector_t * backsector);
|
|
sector_t * hw_FakeFlat(sector_t * sec, sector_t * dest, area_t in_area, bool back);
|
|
area_t hw_CheckViewArea(vertex_t *v1, vertex_t *v2, sector_t *frontsector, sector_t *backsector);
|
|
|