forked from Tormund/OpenWow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
66 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 12 additions & 7 deletions
19
owGame/WMO/WMO_PortalsController.h → owGame/WMO/WMO_PortalsComponent.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
#pragma once | ||
|
||
#ifdef USE_WMO_MODELS | ||
#ifdef USE_WMO_PORTALS_CULLING | ||
|
||
#include "WMO_Headers.h" | ||
|
||
// FORWARD BEGIN | ||
class CWMO_Base_Instance; | ||
// FORWARD END | ||
|
||
#ifdef USE_WMO_PORTALS_CULLING | ||
|
||
class CWMO_PortalsController | ||
class ZN_API CWMO_PortalsComponent | ||
: public CSceneNodeComponentBase | ||
{ | ||
public: | ||
CWMO_PortalsController(); | ||
virtual ~CWMO_PortalsController(); | ||
ZN_OBJECTCLASS(cSceneNodeComponentWMOPortalsComponent); | ||
|
||
CWMO_PortalsComponent(const CWMO_Base_Instance& OwnerNode); | ||
virtual ~CWMO_PortalsComponent(); | ||
|
||
void Update(const CWMO_Base_Instance* WMOBaseInstance, const ICameraComponent3D* _camera); | ||
// ISceneNodeComponent | ||
void Update(const UpdateEventArgs& e) override; | ||
|
||
protected: | ||
const CWMO_Base_Instance& GetWMOOwnerNode() const; | ||
|
||
private: | ||
bool Recur(const std::shared_ptr<IPortalRoom>& Room, const Frustum& CameraFrustum, const glm::vec3& CameraPosition, const Frustum& _frustum, bool _isFirstIteration); | ||
}; | ||
|
||
#endif | ||
|
||
#endif |