----------------------------------------------------------------------------- GFXTextureObject -----------------------------------------------------------------------------
| 76 | // GFXTextureObject |
| 77 | //----------------------------------------------------------------------------- |
| 78 | GFXTextureObject::GFXTextureObject(GFXDevice *aDevice, GFXTextureProfile *aProfile) |
| 79 | { |
| 80 | mHashNext = mNext = mPrev = NULL; |
| 81 | |
| 82 | mDevice = aDevice; |
| 83 | mProfile = aProfile; |
| 84 | |
| 85 | mBitmap = NULL; |
| 86 | mMipLevels = 1; |
| 87 | mAntialiasLevel = 0; |
| 88 | |
| 89 | mTextureSize.set( 0, 0, 0 ); |
| 90 | |
| 91 | mDead = false; |
| 92 | |
| 93 | mDeleteTime = 0; |
| 94 | |
| 95 | mBitmap = NULL; |
| 96 | mDDS = NULL; |
| 97 | |
| 98 | mFormat = GFXFormatR8G8B8; |
| 99 | |
| 100 | mHasTransparency = false; |
| 101 | |
| 102 | #if defined(TORQUE_DEBUG) |
| 103 | // Active object tracking. |
| 104 | smActiveTOCount++; |
| 105 | mDebugDescription = "Anonymous Texture Object"; |
| 106 | #if defined(TORQUE_ENABLE_PROFILE_PATH) |
| 107 | mDebugCreationPath = gProfiler->getProfilePath(); |
| 108 | #endif |
| 109 | mDebugNext = smHead; |
| 110 | mDebugPrev = NULL; |
| 111 | |
| 112 | if(smHead) |
| 113 | { |
| 114 | AssertFatal(smHead->mDebugPrev == NULL, "GFXTextureObject::GFXTextureObject - found unexpected previous in current head!"); |
| 115 | smHead->mDebugPrev = this; |
| 116 | } |
| 117 | |
| 118 | smHead = this; |
| 119 | #endif |
| 120 | } |
| 121 | |
| 122 | //----------------------------------------------------------------------------- |
| 123 | // Destructor |
nothing calls this directly
no test coverage detected