Files
itgmania212121/stepmania/src/CroppedSprite.h
T
Glenn Maynard 587440ab8e class with virtual members must always have a virtual dtor
(actually, any class that will be derived from should)
2002-08-23 08:30:10 +00:00

33 lines
789 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"
#include "Song.h"
class CroppedSprite : public Sprite
{
public:
CroppedSprite();
virtual ~CroppedSprite() { }
bool Load( CString sFilePath, bool bForceReload = false, int iMipMaps = 4, int iAlphaBits = 4, bool bDither = false, bool bStretch = false );
void SetCroppedSize( float fWidth, float fHeight );
protected:
void CropToSize( float fWidth, float fHeight );
float m_fCropWidth, m_fCropHeight;
};