qbsp: move tree_t to tree.hh

This commit is contained in:
Eric Wasylishen 2022-07-03 21:36:17 -06:00
parent a6312753a4
commit de68bee886
6 changed files with 19 additions and 7 deletions

View File

@ -29,6 +29,7 @@
#include <memory>
struct side_t;
struct tree_t;
struct portal_t
{
@ -43,13 +44,6 @@ struct portal_t
face_t *face[2]; // output face in bsp file
};
struct tree_t
{
std::unique_ptr<node_t> headnode;
node_t outside_node = {}; // portals outside the world face this
aabb3d bounds;
};
struct portalstats_t {
std::atomic<int> c_tinyportals;
};

View File

@ -21,7 +21,21 @@
#pragma once
#include <qbsp/qbsp.hh>
#include <qbsp/brush.hh>
#include <common/qvec.hh>
#include <memory>
struct node_t;
struct tree_t
{
std::unique_ptr<node_t> headnode;
node_t outside_node = {}; // portals outside the world face this
aabb3d bounds;
};
void DetailToSolid(node_t *node);
void PruneNodes(node_t *node);

View File

@ -29,6 +29,7 @@
#include <qbsp/map.hh>
#include <qbsp/portals.hh>
#include <qbsp/qbsp.hh>
#include <qbsp/tree.hh>
#include <list>
#include <atomic>

View File

@ -24,6 +24,7 @@
#include <qbsp/map.hh>
#include <qbsp/portals.hh>
#include <qbsp/qbsp.hh>
#include <qbsp/tree.hh>
#include <climits>
#include <vector>

View File

@ -27,6 +27,7 @@
#include <qbsp/brushbsp.hh>
#include <qbsp/qbsp.hh>
#include <qbsp/outside.hh>
#include <qbsp/tree.hh>
#include <atomic>

View File

@ -24,6 +24,7 @@
#include <qbsp/map.hh>
#include <qbsp/portals.hh>
#include <qbsp/qbsp.hh>
#include <qbsp/tree.hh>
#include <fstream>
#include <fmt/ostream.h>