346 Rnd::Mesh *pMesh,
int nOrthonormalize,
float flScaleX,
float flScaleY,
float flScaleZ);
439 std::map<HxStr, FreqPartTemplate *> mPartsByName;
440 std::vector<FreqPartTemplate *> mParts;
447 std::vector<MetPersonaData *> mPrefabIdentities;
448 std::vector<MetPersonaData *> mTeamFreqIdentities;
One kind of part the FreQ maker offers, shared by every FreqPart placed from it.
Definition freqparttemplate.h:25
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Asynchronous reader of one pre-fab persona file.
Definition metfreqloader.h:25
void WaitForLoad()
Block until PollLoad() reports the assets resident, running RndAsyncLoader::PollAsyncLoads() between ...
std::list< Rnd::Object * > GetLoadedObjects()
Report a copy of the objects the asset load produced, once PollLoad() has run and its result is disca...
static void Create()
Allocate the one instance through CreateInstance().
std::vector< MetPersonaData * > * GetIdentityList()
Resolve the list of prefabricated identities the FreQ maker offers.
static MetFreqMakerAssetManager * Instance()
Return the one instance, or null before CreateInstance() has created it.
void StartIdentityLoads()
Queue the reads of both persona files.
bool ScaleMesh(Rnd::Mesh *pMesh, int nOrthonormalize, float flScaleX, float flScaleY, float flScaleZ)
Scale the three basis rows of a mesh's local transform.
static MetFreqMakerAssetManager * shared()
Return the one instance through Instance().
Color * SampleTexture(Rnd::Tex *pTex, float flU, float flV)
Read the colour of one texel of a texture.
bool AreLoadersReady()
Report through both loaders whether the assets are resident.
static constexpr int kCategoryCount
The number of part categories, which count from 1.
Definition metfreqmakerassetmanager.h:372
static void Destroy()
Delete the one instance through DestroyInstance().
FreqPartTemplate * GetPart(int nId)
Report the part template with one identifier.
static void DestroyInstance()
Delete the one instance through its virtual destructor.
void StartAssetLoad()
Create and queue the load of the FreQ maker asset file once.
std::vector< MetPersonaData * > * GetAllIdentities()
Resolve the full list of identities, the one at +0x74.
void ReleaseParts()
Delete every part template and forget them, so the next PollLoad() reloads.
bool PollLoad()
Advance the asset load by one step and report whether it has finished.
bool PaintTexel(Rnd::Tex *pTex, const Color &color, float flU, float flV)
Write one colour into one texel of a texture.
virtual ~MetFreqMakerAssetManager()
Delete the two persona loaders.
std::list< FreqPartTemplate * > * TemplatesInCategory(int nCategory)
Report the templates of one category.
Color * ColorAt(const Vector2 &position)
Report the colour at one position of the spectrum palette.
Rnd::Mesh * CloneMesh(const HxStr &name)
Create a mesh under one name as a copy of the template mesh, in the default colour.
std::map< HxStr, FreqPartTemplate * > * GetPartsByName()
Report the part templates by name, once PollLoad() has run and its result is discarded.
void ApplyPartScale(Rnd::Mesh *pMesh, FreqPartTemplate *pTemplate, float *pScaleX, float *pScaleZ, float flFactorX, float flFactorZ)
Scale a mesh to one part template.
HxStr NextMeshName()
Generate a fresh object name, autogen_obj_ followed by the value of a counter the call then advances.
bool AreIdentitiesLoaded()
Pump the asynchronous layer and report whether both persona files are parsed.
static void CreateInstance()
Allocate the one instance and record it for Instance().
FreqPartTemplate * FindPart(const HxStr &name)
Report the part template registered under one name.
MetFreqMakerAssetManager()
Start with no assets, no loaded templates, and two persona loaders.
Request to load one renderer file in the background.
Definition asyncloader.h:29
Surface description a Rnd::Mesh draws with.
Definition mat.h:36
Indexed triangle mesh with one material.
Definition mesh.h:46
Base of every object the renderer can load, resolve by name, and serialise.
Definition object.h:43
Texture, as a bitmap path plus the load state of its mip levels.
Definition tex.h:43
HxStr g_spectrumTextureName
Registry key of the palette texture MetFreqMakerAssetManager::ColorAt() samples, spectrum....
Color g_freqMakerDefaultColor
Colour a freshly cloned FreQ maker mesh and a reset FreqPart start with, an opaque grey of 0....
The rendering engine.
Definition animhelper.h:3
Linear colour with four float components.
Definition color.h:10
Two-component vector, used for texture coordinates.
Definition vector2.h:10