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? }
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); }