Files
itgmania212121/stepmania/src/ActorFrame.cpp
T

45 lines
1.0 KiB
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.
2002-05-19 01:59:48 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
2001-12-11 11:44:26 +00:00
-----------------------------------------------------------------------------
*/
#include "ActorFrame.h"
2002-05-19 01:59:48 +00:00
void ActorFrame::DrawPrimitives()
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 )
{
2002-05-01 19:14:55 +00:00
// LOG->WriteLine( "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
}