OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Enumerations | Functions | Variables
Vis.h File Reference
#include "Engine/Graphics/RenderEntities.h"
#include "Engine/Objects/ActorEnums.h"
#include "Engine/Pid.h"
#include "Library/Geometry/Plane.h"
#include "Utility/Flags.h"

Classes

struct  Vis_SelectionFilter
 
struct  Vis_PIDAndDepth
 
struct  Vis_ObjectInfo
 
struct  Vis_SelectionList
 
class  Vis
 

Enumerations

enum class  VisObjectType : uint32_t { VisObjectType_Any = 0 , VisObjectType_Sprite = 1 , VisObjectType_Face = 2 }
 
enum class  VisSelectFlag : uint32_t {
  None = 0 , VisSelectFlags_1 = 1 , ExcludeType = 2 , ExclusionIfNoEvent = 4 ,
  TargetUndead = 8
}
 

Functions

bool IsBModelVisible (BSPModel *model, int reachable_depth, bool *reachable)
 
bool IsSphereInFrustum (Vec3f center, float radius, Planef *frustum=nullptr)
 
bool IsCylinderInFrustum (Vec3f center, float radius)
 

Variables

Vis_SelectionFilter vis_sprite_targets_filter
 
Vis_SelectionFilter vis_allsprites_filter
 
Vis_SelectionFilter vis_face_filter
 
Vis_SelectionFilter vis_door_filter
 
Vis_SelectionFilter vis_decoration_noevent_filter
 
Vis_SelectionFilter vis_items_filter
 

Enumeration Type Documentation

◆ VisObjectType

enum class VisObjectType : uint32_t
strong
Enumerator
VisObjectType_Any 
VisObjectType_Sprite 
VisObjectType_Face 

◆ VisSelectFlag

enum class VisSelectFlag : uint32_t
strong
Enumerator
None 
VisSelectFlags_1 
ExcludeType 
ExclusionIfNoEvent 
TargetUndead 

Function Documentation

◆ IsBModelVisible()

bool IsBModelVisible ( BSPModel model,
int  reachable_depth,
bool *  reachable 
)
Parameters
modelPointer to model to check against.
reachable_depthA depth distance for checking interaction against.
[out]reachableWhether the model is within the reachable depth specified.
Returns
Whether the bounding radius of the model is visible within the camera frustum planes.

◆ IsCylinderInFrustum()

bool IsCylinderInFrustum ( Vec3f  center,
float  radius 
)
Parameters
centerVec3f of centre point of cylinder.
radiusFloat of cylinder radius.
Returns
Whether the cylinder is visible within the L/R camera frustum planes.

◆ IsSphereInFrustum()

bool IsSphereInFrustum ( Vec3f  center,
float  radius,
Planef frustum = nullptr 
)
Parameters
centerVec3f of centre point of sphere.
radiusFloat of sphere radius.
frustumPtr to set of planes to check against - camera used in not supplied.
Returns
Whether the bounding radius of the sphere is visible within the frustum planes.

Variable Documentation

◆ vis_allsprites_filter

Vis_SelectionFilter vis_allsprites_filter
extern

◆ vis_decoration_noevent_filter

Vis_SelectionFilter vis_decoration_noevent_filter
extern

◆ vis_door_filter

Vis_SelectionFilter vis_door_filter
extern

◆ vis_face_filter

Vis_SelectionFilter vis_face_filter
extern

◆ vis_items_filter

Vis_SelectionFilter vis_items_filter
extern

◆ vis_sprite_targets_filter

Vis_SelectionFilter vis_sprite_targets_filter
extern