コード例 #1
0
ファイル: animatedsprite.cpp プロジェクト: D4vx/SDL-Framework
void 
AnimatedSprite::Draw(BackBuffer& backbuffer)
{
	// Ex007.1: Draw the particular frame into the backbuffer.
	backbuffer.DrawAnimatedSprite(*this, m_frameCoords[m_currentFrame], m_frameWidth);
	//          What is the current frame's x coordinate?
	//          What is the frame width?

}
コード例 #2
0
void
AnimatedSprite::Draw(BackBuffer& backbuffer)
{
	// Ex007.1: Draw the particular frame into the backbuffer.

	//          What is the current frame's x coordinate?
	//          What is the frame width?


	this->m_width = m_frameWidth;

	backbuffer.DrawAnimatedSprite(*this);
}