mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Remove hard coded paths pass 1
- displaySplashWindow() now takes an optional path to a bitmap file. - Missing, unavailable and warning texture paths now come from GFXTextureManager static methods.
This commit is contained in:
parent
27a81f9c0d
commit
2824bcf649
11 changed files with 67 additions and 17 deletions
|
|
@ -65,6 +65,15 @@ public:
|
|||
/// Set up some global script interface stuff.
|
||||
static void init();
|
||||
|
||||
/// Provide the path to the texture to use when the requested one is missing
|
||||
static const String& getMissingTexturePath() { return smMissingTexturePath; }
|
||||
|
||||
/// Provide the path to the texture to use when the requested one is unavailable.
|
||||
static const String& getUnavailableTexturePath() { return smUnavailableTexturePath; }
|
||||
|
||||
/// Provide the path to the texture used to warn the developer
|
||||
static const String& getWarningTexturePath() { return smWarningTexturePath; }
|
||||
|
||||
/// Update width and height based on available resources.
|
||||
///
|
||||
/// We provide a simple interface for managing texture memory usage. Specifically,
|
||||
|
|
@ -177,6 +186,16 @@ protected:
|
|||
///
|
||||
static S32 smTextureReductionLevel;
|
||||
|
||||
/// File path to the missing texture
|
||||
static String smMissingTexturePath;
|
||||
|
||||
/// File path to the unavailable texture. Often used by GUI controls
|
||||
/// when the requested image is not available.
|
||||
static String smUnavailableTexturePath;
|
||||
|
||||
/// File path to the warning texture
|
||||
static String smWarningTexturePath;
|
||||
|
||||
GFXTextureObject *mListHead;
|
||||
GFXTextureObject *mListTail;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue