AMFP Enhanced
C++ reference: the code this unofficial fork added
Loading...
Searching...
No Matches
hpl Namespace Reference

Classes

class  cMeshLoaderUfbx
struct  FbxTrs

Typedefs

typedef std::vector< std::pair< size_t, size_t > > tWrapRows

Functions

int ShadowMapSize (int alSetting, int alTier, bool abHD)
 alSetting: 0 low, 1 medium, 2 high.
template<class TWidth, class TCanBreak>
void WordWrapRows (const wchar_t *apText, size_t alLen, float afMaxWidth, TWidth afWidth, TCanBreak afCanBreak, tWrapRows &aRows)
 afWidth(start, end) gives the drawn width of s[start, end).
long long FbxTimeToMs (double afSeconds)
 Seconds -> whole milliseconds, truncated like KTime::GetMilliSeconds.
float FbxKeyTime (double afSeconds)
 The time the SDK loader stored for a key: its whole milliseconds, in seconds.
template<class tIt>
void FbxAddKeyTimes (std::set< float > &aTimes, tIt aBegin, tIt aEnd)
 Adds key times (seconds) to the bone's sorted set of sample times.
float FbxAnimLength (double afEndSeconds)
 Length the SDK loader gave an animation: the take's end in whole milliseconds, in seconds.
bool FbxTakeHasLength (double afBeginSeconds, double afEndSeconds)
 The SDK loader used the first take whose span is at least one millisecond.
FbxTrs FbxDecomposeSdk (const double m[3][4])
void FbxRotationToQuat (const double r[3][3], double q[4])
 Rotation matrix -> quaternion (w, x, y, z).
void LangAppendUtf8 (const std::string &asText, size_t aStart, size_t aEnd, std::wstring &aOut)
 Appends asText[aStart, aEnd) (non-ASCII bytes) decoded by hpl-cjk-text.
std::wstring LangDecodeText (const std::string &sString, bool abNativeUtf8)

Typedef Documentation

◆ tWrapRows

typedef std::vector<std::pair<size_t, size_t> > hpl::tWrapRows

Definition at line 21 of file WordWrap.h.

Function Documentation

◆ ShadowMapSize()

int hpl::ShadowMapSize ( int alSetting,
int alTier,
bool abHD )
inline

alSetting: 0 low, 1 medium, 2 high.

alTier: 0 low, 1 medium, 2 high importance.

Definition at line 11 of file ShadowMapSizes.h.

◆ WordWrapRows()

template<class TWidth, class TCanBreak>
void hpl::WordWrapRows ( const wchar_t * apText,
size_t alLen,
float afMaxWidth,
TWidth afWidth,
TCanBreak afCanBreak,
tWrapRows & aRows )

afWidth(start, end) gives the drawn width of s[start, end).

Definition at line 27 of file WordWrap.h.

◆ FbxTimeToMs()

long long hpl::FbxTimeToMs ( double afSeconds)
inline

Seconds -> whole milliseconds, truncated like KTime::GetMilliSeconds.

A tiny tolerance keeps times stored as 0.99999999 s on 999 ms's right side (1000).

Definition at line 19 of file FbxAnimTimes.h.

◆ FbxKeyTime()

float hpl::FbxKeyTime ( double afSeconds)
inline

The time the SDK loader stored for a key: its whole milliseconds, in seconds.

Definition at line 25 of file FbxAnimTimes.h.

◆ FbxAddKeyTimes()

template<class tIt>
void hpl::FbxAddKeyTimes ( std::set< float > & aTimes,
tIt aBegin,
tIt aEnd )
inline

Adds key times (seconds) to the bone's sorted set of sample times.

Definition at line 32 of file FbxAnimTimes.h.

◆ FbxAnimLength()

float hpl::FbxAnimLength ( double afEndSeconds)
inline

Length the SDK loader gave an animation: the take's end in whole milliseconds, in seconds.

Definition at line 38 of file FbxAnimTimes.h.

◆ FbxTakeHasLength()

bool hpl::FbxTakeHasLength ( double afBeginSeconds,
double afEndSeconds )
inline

The SDK loader used the first take whose span is at least one millisecond.

Definition at line 44 of file FbxAnimTimes.h.

◆ FbxDecomposeSdk()

FbxTrs hpl::FbxDecomposeSdk ( const double m[3][4])
inline

Definition at line 23 of file FbxDecompose.h.

◆ FbxRotationToQuat()

void hpl::FbxRotationToQuat ( const double r[3][3],
double q[4] )
inline

Rotation matrix -> quaternion (w, x, y, z).

Definition at line 42 of file FbxDecompose.h.

◆ LangAppendUtf8()

void hpl::LangAppendUtf8 ( const std::string & asText,
size_t aStart,
size_t aEnd,
std::wstring & aOut )
inline

Appends asText[aStart, aEnd) (non-ASCII bytes) decoded by hpl-cjk-text.

Definition at line 21 of file LangTextDecode.h.

◆ LangDecodeText()

std::wstring hpl::LangDecodeText ( const std::string & sString,
bool abNativeUtf8 )
inline

Definition at line 31 of file LangTextDecode.h.