2002-11-16 08:07:38 +00:00
|
|
|
#ifndef CROPPEDSPRITE_H
|
|
|
|
|
#define CROPPEDSPRITE_H
|
2002-04-16 17:31:00 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
2002-08-13 23:26:46 +00:00
|
|
|
Class: CroppedSprite
|
2002-04-16 17:31:00 +00:00
|
|
|
|
2002-08-13 23:26:46 +00:00
|
|
|
Desc: The a bitmap that is cropped and zoomed to fill a box.
|
2002-04-16 17:31:00 +00:00
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
2002-08-13 23:26:46 +00:00
|
|
|
Chris Danford
|
2002-04-16 17:31:00 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "Sprite.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CroppedSprite : public Sprite
|
|
|
|
|
{
|
|
|
|
|
public:
|
2002-08-13 23:26:46 +00:00
|
|
|
CroppedSprite();
|
2002-08-23 08:30:10 +00:00
|
|
|
virtual ~CroppedSprite() { }
|
2002-04-16 17:31:00 +00:00
|
|
|
|
2002-12-30 02:43:52 +00:00
|
|
|
bool Load( RageTextureID ID );
|
2002-08-13 23:26:46 +00:00
|
|
|
void SetCroppedSize( float fWidth, float fHeight );
|
2002-04-16 17:31:00 +00:00
|
|
|
|
|
|
|
|
protected:
|
2002-05-01 19:14:55 +00:00
|
|
|
void CropToSize( float fWidth, float fHeight );
|
|
|
|
|
|
2002-04-16 17:31:00 +00:00
|
|
|
float m_fCropWidth, m_fCropHeight;
|
|
|
|
|
};
|
|
|
|
|
|
2002-11-16 08:07:38 +00:00
|
|
|
|
|
|
|
|
#endif
|