Files
itgmania212121/stepmania/src/ActorFrame.cpp
T
Chris Danford 2f80235590 no message
2002-05-19 01:59:48 +00:00

45 lines
1.0 KiB
C++

#include "stdafx.h" // testing updates
/*
-----------------------------------------------------------------------------
File: ActorFrame.h
Desc: Base class for all objects that appear on the screen.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
-----------------------------------------------------------------------------
*/
#include "ActorFrame.h"
void ActorFrame::DrawPrimitives()
{
// draw all sub-ActorFrames while we're in the ActorFrame's local coordinate space
for( int i=0; i<m_SubActors.GetSize(); i++ ) {
m_SubActors[i]->Draw();
}
}
void ActorFrame::Update( float fDeltaTime )
{
// LOG->WriteLine( "ActorFrame::Update( %f )", fDeltaTime );
Actor::Update( fDeltaTime );
// update all sub-Actors
for( int i=0; i<m_SubActors.GetSize(); i++ )
m_SubActors[i]->Update(fDeltaTime);
}
void ActorFrame::SetDiffuseColor( D3DXCOLOR c )
{
Actor::SetDiffuseColor( c );
// set all sub-Actors
for( int i=0; i<m_SubActors.GetSize(); i++ )
m_SubActors[i]->SetDiffuseColor(c );
}