MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / GFXTextureObject

Method GFXTextureObject

Engine/source/gfx/gfxTextureObject.cpp:78–120  ·  view source on GitHub ↗

----------------------------------------------------------------------------- GFXTextureObject -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

76// GFXTextureObject
77//-----------------------------------------------------------------------------
78GFXTextureObject::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

Callers

nothing calls this directly

Calls 2

getProfilePathMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected