qbsp: move tree_t to tree.hh
This commit is contained in:
parent
a6312753a4
commit
de68bee886
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
#include <qbsp/map.hh>
|
||||
#include <qbsp/portals.hh>
|
||||
#include <qbsp/qbsp.hh>
|
||||
#include <qbsp/tree.hh>
|
||||
|
||||
#include <list>
|
||||
#include <atomic>
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
#include <qbsp/map.hh>
|
||||
#include <qbsp/portals.hh>
|
||||
#include <qbsp/qbsp.hh>
|
||||
#include <qbsp/tree.hh>
|
||||
|
||||
#include <climits>
|
||||
#include <vector>
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
#include <qbsp/brushbsp.hh>
|
||||
#include <qbsp/qbsp.hh>
|
||||
#include <qbsp/outside.hh>
|
||||
#include <qbsp/tree.hh>
|
||||
|
||||
#include <atomic>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue