MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Create

Method Create

Source/HLEGraphics/CachedTexture.cpp:197–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197CachedTexture * CachedTexture::Create( const TextureInfo & ti )
198{
199 if( ti.GetWidth() == 0 || ti.GetHeight() == 0 )
200 {
201 #ifdef DAEDALUS_DEBUG_CONSOLE
202 DAEDALUS_ERROR( "Trying to create 0 width/height texture" );
203 #endif
204 return nullptr;
205 }
206
207 CachedTexture * texture = new CachedTexture( ti );
208 if (!texture->Initialise())
209 {
210 return nullptr;
211 }
212
213 return texture;
214}
215
216CachedTexture::CachedTexture( const TextureInfo & ti )
217: mTextureInfo( ti )

Callers

nothing calls this directly

Calls 3

GetWidthMethod · 0.45
GetHeightMethod · 0.45
InitialiseMethod · 0.45

Tested by

no test coverage detected