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