1
0
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:
2012-01-21 02:03:37 -05:00
parent 5027b5a4ac
commit e020651e4b
584 changed files with 5401 additions and 6399 deletions

View File

@ -75,15 +75,15 @@ protected:
plKey fAck;
hsScalar fPriority;
float fPriority;
uint32_t fDrawableMask;
uint32_t fSubDrawableMask;
hsColorRGBA fClearColor;
hsScalar fClearDepth;
float fClearDepth;
hsScalar fFogStart;
float fFogStart;
hsMatrix44 fLocalToWorld;
hsMatrix44 fWorldToLocal;
@ -139,28 +139,28 @@ public:
const plViewTransform& GetViewTransform() const { return fViewTransform; }
hsScalar GetHither() const { return fViewTransform.GetHither(); }
hsScalar GetYon() const { return fViewTransform.GetYon(); }
float GetHither() const { return fViewTransform.GetHither(); }
float GetYon() const { return fViewTransform.GetYon(); }
hsScalar GetFovX() const { return fViewTransform.GetFovXDeg(); }
hsScalar GetFovY() const { return fViewTransform.GetFovYDeg(); }
float GetFovX() const { return fViewTransform.GetFovXDeg(); }
float GetFovY() const { return fViewTransform.GetFovYDeg(); }
hsScalar GetSizeX() const { return fViewTransform.GetOrthoWidth(); }
hsScalar GetSizeY() const { return fViewTransform.GetOrthoHeight(); }
float GetSizeX() const { return fViewTransform.GetOrthoWidth(); }
float GetSizeY() const { return fViewTransform.GetOrthoHeight(); }
uint16_t GetScreenWidth() const { return fViewTransform.GetScreenWidth(); }
uint16_t GetScreenHeight() const { return fViewTransform.GetScreenHeight(); }
const hsColorRGBA& GetClearColor() const { return fClearColor; }
hsScalar GetClearDepth() const { return fClearDepth; }
float GetClearDepth() const { return fClearDepth; }
// FogStart
// negative => use current settings (default)
// 0 => no fog == fog starts at yon
// 1 => fog starts at camera.
// Fog start greater than 1 is legal. Fog always linear.
hsScalar GetFogStart() const { return fFogStart; }
float GetFogStart() const { return fFogStart; }
hsScalar GetPriority() const { return fPriority; }
float GetPriority() const { return fPriority; }
void SetLocalTransform(const hsMatrix44& l2w, const hsMatrix44& w2l);
@ -171,25 +171,25 @@ public:
void SetPerspective(hsBool on=true) { fViewTransform.SetPerspective(on); }
void SetOrthogonal(hsBool on=true) { fViewTransform.SetOrthogonal(on); }
void SetHither(hsScalar f) { fViewTransform.SetHither(f); }
void SetYon(hsScalar f) { fViewTransform.SetYon(f); }
void SetHither(float f) { fViewTransform.SetHither(f); }
void SetYon(float f) { fViewTransform.SetYon(f); }
void SetFovX(hsScalar f) { fViewTransform.SetFovXDeg(f); }
void SetFovY(hsScalar f) { fViewTransform.SetFovYDeg(f); }
void SetFovX(float f) { fViewTransform.SetFovXDeg(f); }
void SetFovY(float f) { fViewTransform.SetFovYDeg(f); }
void SetSizeX(hsScalar f) { fViewTransform.SetWidth(f); }
void SetSizeY(hsScalar f) { fViewTransform.SetHeight(f); }
void SetSizeX(float f) { fViewTransform.SetWidth(f); }
void SetSizeY(float f) { fViewTransform.SetHeight(f); }
void SetClearColor(const hsColorRGBA& c) { fClearColor = c; }
void SetClearDepth(hsScalar d) { fClearDepth = d; }
void SetClearDepth(float d) { fClearDepth = d; }
// FogStart
// negative => use current settings (default)
// 0 => no fog == fog starts at yon
// 1 => fog starts at camera.
// Fog start greater than 1 is legal. Fog always linear.
void SetFogStart(hsScalar d) { fFogStart = d; }
void SetFogStart(float d) { fFogStart = d; }
void SetPriority(hsScalar p) { fPriority = p; }
void SetPriority(float p) { fPriority = p; }
virtual void Read(hsStream* s, hsResMgr* mgr);
virtual void Write(hsStream* s, hsResMgr* mgr);