| 58 | } |
| 59 | |
| 60 | bool GFXTexHandle::set( const String &texName, GFXTextureProfile *profile, const String &desc ) |
| 61 | { |
| 62 | // Clear the existing texture first, so that |
| 63 | // its memory is free for the new allocation. |
| 64 | free(); |
| 65 | |
| 66 | // Create and set the new texture. |
| 67 | AssertFatal( texName.isNotEmpty(), "Texture name is empty" ); |
| 68 | StrongObjectRef::set( TEXMGR->createTexture( texName, profile ) ); |
| 69 | |
| 70 | #ifdef TORQUE_DEBUG |
| 71 | if ( getPointer() ) |
| 72 | getPointer()->mDebugDescription = desc; |
| 73 | #endif |
| 74 | |
| 75 | return isValid(); |
| 76 | } |
| 77 | |
| 78 | bool GFXTexHandle::set(const String &texNameR, const String &texNameG, const String &texNameB, const String &texNameA, U32 inputKey[4], GFXTextureProfile *profile, const String &desc) |
| 79 | { |
nothing calls this directly
no test coverage detected