EarlyAbortDraw() const

This commit is contained in:
Glenn Maynard
2005-08-25 00:57:53 +00:00
parent a774629f4e
commit 1c81bcc5fc
14 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ public:
};
void Draw(); // calls, NeedsDraw, BeginDraw, DrawPrimitives, EndDraw
virtual bool EarlyAbortDraw() { return false; } // return true to early abort drawing of this Actor
virtual bool EarlyAbortDraw() const { return false; } // return true to early abort drawing of this Actor
virtual void BeginDraw(); // pushes transform onto world matrix stack
virtual void SetGlobalRenderStates(); // Actor should call this at beginning of their DrawPrimitives()
virtual void SetTextureRenderStates(); // Actor should call this after setting a texture
+1 -1
View File
@@ -660,7 +660,7 @@ void BGAnimationLayer::UpdateInternal( float fDeltaTime )
}
}
bool BGAnimationLayer::EarlyAbortDraw()
bool BGAnimationLayer::EarlyAbortDraw() const
{
if( m_sDrawCond.empty() )
return false;
+1 -1
View File
@@ -21,7 +21,7 @@ public:
void LoadFromNode( const CString& sDir, const XNode* pNode );
void UpdateInternal( float fDeltaTime );
bool EarlyAbortDraw();
bool EarlyAbortDraw() const;
float GetMaxTweenTimeLeft() const;
+1 -1
View File
@@ -496,7 +496,7 @@ void BitmapText::CropToWidth( int iMaxWidthInSourcePixels )
BuildChars();
}
bool BitmapText::EarlyAbortDraw()
bool BitmapText::EarlyAbortDraw() const
{
return m_wTextLines.empty();
}
+1 -1
View File
@@ -26,7 +26,7 @@ public:
void SetWrapWidthPixels( int iWrapWidthPixels );
void CropToWidth( int iWidthInSourcePixels );
virtual bool EarlyAbortDraw();
virtual bool EarlyAbortDraw() const;
virtual void DrawPrimitives();
void TurnRainbowOn() { m_bRainbow = true; };
+1 -1
View File
@@ -14,7 +14,7 @@ public:
virtual void Load( const CString &sButton, const CString &sElement );
virtual void Update( float fDeltaTime );
virtual bool EarlyAbortDraw() { return !m_bHoldIsActive; }
virtual bool EarlyAbortDraw() const { return !m_bHoldIsActive; }
void SetHoldIsActive( bool bHoldIsActive ) { m_bHoldIsActive = bHoldIsActive; }
+1 -1
View File
@@ -297,7 +297,7 @@ bool Model::LoadMilkshapeAsciiBones( CString sAniName, CString sPath )
return true;
}
bool Model::EarlyAbortDraw()
bool Model::EarlyAbortDraw() const
{
return m_pGeometry == NULL || m_pGeometry->m_Meshes.empty();
}
+1 -1
View File
@@ -32,7 +32,7 @@ public:
void PlayAnimation( CString sAniName, float fPlayRate = 1 );
virtual void Update( float fDelta );
virtual bool EarlyAbortDraw();
virtual bool EarlyAbortDraw() const;
virtual void DrawPrimitives();
void DrawCelShaded();
+1 -1
View File
@@ -545,7 +545,7 @@ RageColor scale( float x, float l1, float h1, const RageColor &a, const RageColo
SCALE( x, l1, h1, a.a, b.a ) );
}
bool Sprite::EarlyAbortDraw()
bool Sprite::EarlyAbortDraw() const
{
return m_pTexture == NULL && !m_bDrawIfTextureNull;
// return false;
+1 -1
View File
@@ -18,7 +18,7 @@ public:
void LoadFromNode( const CString& sDir, const XNode* pNode );
virtual Actor *Copy() const;
virtual bool EarlyAbortDraw();
virtual bool EarlyAbortDraw() const;
virtual void DrawPrimitives();
virtual void Update( float fDeltaTime );
+1 -1
View File
@@ -104,7 +104,7 @@ void Transition::Reset()
}
}
bool Transition::EarlyAbortDraw()
bool Transition::EarlyAbortDraw() const
{
return m_State == waiting;
}
+1 -1
View File
@@ -19,7 +19,7 @@ public:
virtual void UpdateInternal( float fDeltaTime );
virtual void StartTransitioning( ScreenMessage send_when_done = SM_None );
virtual bool EarlyAbortDraw();
virtual bool EarlyAbortDraw() const;
virtual float GetTweenTimeLeft() const;
void Reset(); // explicitly allow transitioning again
+1 -1
View File
@@ -59,7 +59,7 @@ void WheelNotifyIcon::SetFlags( Flags flags )
Update(0);
}
bool WheelNotifyIcon::EarlyAbortDraw()
bool WheelNotifyIcon::EarlyAbortDraw() const
{
if( m_vIconsToShow.empty() )
return true;
+1 -1
View File
@@ -22,7 +22,7 @@ public:
void SetFlags( Flags flags );
virtual void Update( float fDeltaTime );
virtual bool EarlyAbortDraw();
virtual bool EarlyAbortDraw() const;
protected:
enum Icons { training=0, best1, best2, best3, edits, long_ver, marathon, empty };