Files
itgmania212121/stepmania/src/ActorFrame.cpp
T

45 lines
1012 B
C++
Raw Normal View History

2001-12-11 11:44:26 +00:00
#include "stdafx.h" // testing updates
/*
-----------------------------------------------------------------------------
File: ActorFrame.h
Desc: Base class for all objects that appear on the screen.
Copyright (c) 2001 Chris Danford. All rights reserved.
-----------------------------------------------------------------------------
*/
#include "ActorFrame.h"
2002-01-16 10:01:32 +00:00
void ActorFrame::RenderPrimitives()
2001-12-11 11:44:26 +00:00
{
2002-01-16 10:01:32 +00:00
// draw all sub-ActorFrames while we're in the ActorFrame's local coordinate space
2001-12-11 11:44:26 +00:00
for( int i=0; i<m_SubActors.GetSize(); i++ ) {
m_SubActors[i]->Draw();
}
}
void ActorFrame::Update( float fDeltaTime )
{
// HELPER.Log( "ActorFrame::Update( %f )", fDeltaTime );
2001-12-11 11:44:26 +00:00
2002-01-16 10:01:32 +00:00
Actor::Update( fDeltaTime );
2001-12-11 11:44:26 +00:00
2002-01-16 10:01:32 +00:00
// update all sub-Actors
2001-12-11 11:44:26 +00:00
for( int i=0; i<m_SubActors.GetSize(); i++ )
m_SubActors[i]->Update(fDeltaTime);
}
2002-01-16 10:01:32 +00:00
void ActorFrame::SetDiffuseColor( D3DXCOLOR c )
2001-12-11 11:44:26 +00:00
{
2002-01-16 10:01:32 +00:00
Actor::SetDiffuseColor( c );
2001-12-11 11:44:26 +00:00
2002-01-16 10:01:32 +00:00
// set all sub-Actors
for( int i=0; i<m_SubActors.GetSize(); i++ )
m_SubActors[i]->SetDiffuseColor(c );
2001-12-11 11:44:26 +00:00
}