OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions | Variables
Vis.cpp File Reference
#include "Engine/Graphics/Vis.h"
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <utility>
#include "Engine/Engine.h"
#include "Engine/OurMath.h"
#include "Engine/Objects/Decoration.h"
#include "Engine/Graphics/BspRenderer.h"
#include "Engine/Graphics/Outdoor.h"
#include "Engine/Graphics/Indoor.h"
#include "Engine/Graphics/Sprites.h"
#include "Engine/Graphics/Viewport.h"
#include "Engine/Graphics/Image.h"
#include "Engine/Graphics/Renderer/Renderer.h"
#include "Engine/Objects/Actor.h"
#include "Engine/Objects/SpriteObject.h"
#include "Engine/Objects/MonsterEnumFunctions.h"
#include "Library/Logger/Logger.h"
#include "Utility/Math/TrigLut.h"

Functions

bool IsBModelVisible (BSPModel *model, int reachable_depth, bool *reachable)
 
bool IsSphereInFrustum (Vec3f center, float radius, Planef *frustum)
 
bool IsCylinderInFrustum (Vec3f center, float radius)
 
int UnprojectX (int x)
 
int UnprojectY (int y)
 

Variables

static Vis_SelectionList Vis_static_sub_4C1944_stru_F8BDE8
 
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
 

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.

◆ UnprojectX()

int UnprojectX ( int  x)

◆ UnprojectY()

int UnprojectY ( int  y)

Variable Documentation

◆ vis_allsprites_filter

Vis_SelectionFilter vis_allsprites_filter

◆ vis_decoration_noevent_filter

Vis_SelectionFilter vis_decoration_noevent_filter

◆ vis_door_filter

Vis_SelectionFilter vis_door_filter
Initial value:

◆ vis_face_filter

Vis_SelectionFilter vis_face_filter
Initial value:

◆ vis_items_filter

Vis_SelectionFilter vis_items_filter
Initial value:

◆ vis_sprite_targets_filter

Vis_SelectionFilter vis_sprite_targets_filter

◆ Vis_static_sub_4C1944_stru_F8BDE8

Vis_SelectionList Vis_static_sub_4C1944_stru_F8BDE8
static