2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04: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

@ -164,7 +164,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#define MSG_LOADING_BAR
// static hsVector3 gAbsDown(0,0,-hsScalar1);
// static hsVector3 gAbsDown(0,0,-1.f);
static plDispatchBase* gDisp = nil;
static plTimerCallbackManager* gTimerMgr = nil;
@ -571,7 +571,7 @@ hsBool plClient::InitPipeline()
float yon = 500.0f;
pipe->SetFOV( 60.f, hsIntToScalar( 60.f * pipe->Height() / pipe->Width() ) );
pipe->SetFOV( 60.f, int32_t( 60.f * pipe->Height() / pipe->Width() ) );
pipe->SetDepth( 0.3f, yon );
hsMatrix44 id;
@ -1296,7 +1296,7 @@ void plClient::IProgressMgrCallbackProc(plOperationProgress * progress)
}
//============================================================================
void plClient::IIncProgress (hsScalar byHowMuch, const char * text)
void plClient::IIncProgress (float byHowMuch, const char * text)
{
if (fProgressBar) {
#ifndef PLASMA_EXTERNAL_RELEASE
@ -1307,7 +1307,7 @@ void plClient::IIncProgress (hsScalar byHowMuch, const char * text)
}
//============================================================================
void plClient::IStartProgress( const char *title, hsScalar len )
void plClient::IStartProgress( const char *title, float len )
{
if (fProgressBar)
{
@ -1519,7 +1519,7 @@ hsBool plClient::StartInit()
plgAudioSys::Activate(true);
plConst(hsScalar) delay(2.f);
plConst(float) delay(2.f);
//commenting out publisher splash for MORE
//IPlayIntroBink("avi/intro0.bik", delay, 0.f, 0.f, 1.f, 1.f, 0.75);
//if( GetDone() ) return false;
@ -1731,7 +1731,7 @@ hsBool plClient::IUpdate()
// Time may have been clamped in IncSysSeconds, depending on hsTimer's current mode.
double currTime = hsTimer::GetSysSeconds();
hsScalar delSecs = hsTimer::GetDelSysSeconds();
float delSecs = hsTimer::GetDelSysSeconds();
// do not change this ordering
@ -1971,7 +1971,7 @@ void plClient::IKillMovies()
fMovies.Reset();
}
hsBool plClient::IPlayIntroBink(const char* movieName, hsScalar endDelay, hsScalar posX, hsScalar posY, hsScalar scaleX, hsScalar scaleY, hsScalar volume /* = 1.0 */)
hsBool plClient::IPlayIntroBink(const char* movieName, float endDelay, float posX, float posY, float scaleX, float scaleY, float volume /* = 1.0 */)
{
SetQuitIntro(false);
plBinkPlayer player;

View File

@ -189,13 +189,13 @@ protected:
void IProcessRenderRequests(hsTArray<plRenderRequest*>& reqs);
void IAddRenderRequest(plRenderRequest* req);
hsBool IPlayIntroBink(const char* movieName, hsScalar endDelay, hsScalar posX, hsScalar posY, hsScalar scaleX, hsScalar scaleY, hsScalar volume = 1.0);
hsBool IPlayIntroBink(const char* movieName, float endDelay, float posX, float posY, float scaleX, float scaleY, float volume = 1.0);
hsBool IHandleMovieMsg(plMovieMsg* mov);
void IKillMovies();
void IServiceMovies();
void IStartProgress( const char *title, hsScalar len );
void IIncProgress( hsScalar byHowMuch, const char *text );
void IStartProgress( const char *title, float len );
void IIncProgress( float byHowMuch, const char *text );
void IStopProgress( void );
static void IDispatchMsgReceiveCallback();