Files
itgmania212121/stepmania/src/CroppedSprite.h
T
2002-12-30 02:43:52 +00:00

35 lines
703 B
C++

#ifndef CROPPEDSPRITE_H
#define CROPPEDSPRITE_H
/*
-----------------------------------------------------------------------------
Class: CroppedSprite
Desc: The a bitmap that is cropped and zoomed to fill a box.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "Sprite.h"
class CroppedSprite : public Sprite
{
public:
CroppedSprite();
virtual ~CroppedSprite() { }
bool Load( RageTextureID ID );
void SetCroppedSize( float fWidth, float fHeight );
protected:
void CropToSize( float fWidth, float fHeight );
float m_fCropWidth, m_fCropHeight;
};
#endif