NEW FEATURE: F4-F8: Toggle Fullscreen, Change Resolution, Change Display Color, Change Texture Color, Toggle Statistics NEW FEATURE: Remebers last selected Steps NEW FEATURE: Stage number saved to .ini file. BUG FIX: Default key buttons don't work if .ini file not present on startup CHANGE: Hold Arrows are now drawn last to first, like in DDR MAX. NEW FEATURE: Hold Arrows allow you to not hold the button for a second without NG'ing them. CHANGE: Regular Arrows on the same line as a Hold Arrow now appear green. NEW FEATURE: Hold Arrows now turn gray player doesn't hold the button. NEW FEATURE: More texture loading hints (DITHER, NO_MIP_MAPS) for increased quality and faster loading time.
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
/*
|
|
-----------------------------------------------------------------------------
|
|
File: RageTextureManager.h
|
|
|
|
Desc: Interface for loading and releasing textures.
|
|
|
|
Copyright (c) 2001 Chris Danford. All rights reserved.
|
|
-----------------------------------------------------------------------------
|
|
*/
|
|
|
|
class RageTextureManager;
|
|
typedef RageTextureManager* LPRageTextureManager;
|
|
|
|
|
|
|
|
|
|
#ifndef _RAGETEXTUREMANAGER_H_
|
|
#define _RAGETEXTUREMANAGER_H_
|
|
|
|
|
|
#include "RageTexture.h"
|
|
//#include <d3dx8.h>
|
|
//#include <d3d8types.h>
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// RageTextureManager Class Declarations
|
|
//-----------------------------------------------------------------------------
|
|
class RageTextureManager
|
|
{
|
|
public:
|
|
RageTextureManager( LPRageScreen pScreen );
|
|
~RageTextureManager();
|
|
|
|
LPRageTexture LoadTexture( CString sTexturePath, DWORD dwHints = 0, bool bForceReload = false );
|
|
bool IsTextureLoaded( CString sTexturePath );
|
|
void UnloadTexture( CString sTexturePath );
|
|
|
|
protected:
|
|
LPRageScreen m_pScreen;
|
|
|
|
// map from file name to a texture holder
|
|
CTypedPtrMap<CMapStringToPtr, CString, LPRageTexture> m_mapPathToTexture;
|
|
};
|
|
|
|
extern LPRageTextureManager TM; // global and accessable from anywhere in our program
|
|
|
|
#endif
|