mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 12:49:10 +00:00
Eliminate hsScalar and hsFixed
Modern CPUs support floats just fine... hsFixed was crazy.
This commit is contained in:
@ -53,7 +53,7 @@ public:
|
||||
plMorphArray();
|
||||
virtual ~plMorphArray();
|
||||
|
||||
void Apply(hsTArray<plAccessSpan>& dst, hsTArray<hsScalar>* weights = nil) const;
|
||||
void Apply(hsTArray<plAccessSpan>& dst, hsTArray<float>* weights = nil) const;
|
||||
|
||||
void Read(hsStream* s, hsResMgr* mgr);
|
||||
void Write(hsStream* s, hsResMgr* mgr);
|
||||
@ -62,8 +62,8 @@ public:
|
||||
void AddDelta(const plMorphDelta& delta);
|
||||
|
||||
int GetNumDeltas() const { return fDeltas.GetCount(); }
|
||||
hsScalar GetWeight(int iDel) { return fDeltas[iDel].GetWeight(); }
|
||||
void SetWeight(int iDel, hsScalar w) { if( iDel < fDeltas.GetCount() )fDeltas[iDel].SetWeight(w); }
|
||||
float GetWeight(int iDel) { return fDeltas[iDel].GetWeight(); }
|
||||
void SetWeight(int iDel, float w) { if( iDel < fDeltas.GetCount() )fDeltas[iDel].SetWeight(w); }
|
||||
};
|
||||
|
||||
#endif // plMorphArray_inc
|
||||
|
Reference in New Issue
Block a user