Files
itgmania212121/stepmania/src/CroppedSprite.h
T

32 lines
685 B
C++

#pragma once
/*
-----------------------------------------------------------------------------
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( CString sFilePath, RageTexturePrefs prefs );
void SetCroppedSize( float fWidth, float fHeight );
protected:
void CropToSize( float fWidth, float fHeight );
float m_fCropWidth, m_fCropHeight;
};