Enderal SE
https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
825 B
27 lines
825 B
#include "GameCamera.h"
|
|
|
|
void LocalMapCamera::SetDefaultStateMinFrustumDimensions(float width, float height)
|
|
{
|
|
defaultState->minFrustumWidth = width / 2.0;
|
|
defaultState->minFrustumHeight = height / 2.0;
|
|
}
|
|
|
|
void LocalMapCamera::SetAreaBounds(NiPoint3 * maxBound, NiPoint3 * minBound)
|
|
{
|
|
areaBoundsMin = *minBound;
|
|
areaBoundsMax = *maxBound;
|
|
areaBoundsMax.z += (*g_mapLocalHeight);
|
|
}
|
|
|
|
void LocalMapCamera::SetDefaultStateMaxBound(NiPoint3 * maxBound)
|
|
{
|
|
defaultState->someBoundMax = *maxBound;
|
|
defaultState->someBoundMax.z += (*g_mapLocalHeight);
|
|
}
|
|
|
|
void LocalMapCamera::SetDefaultStateBounds(float x, float y, float z)
|
|
{
|
|
defaultState->someBoundMin.x = x - defaultState->someBoundMax.x;
|
|
defaultState->someBoundMin.y = y - defaultState->someBoundMax.y;
|
|
defaultState->someBoundMin.z = z - defaultState->someBoundMax.z;
|
|
}
|
|
|