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

Method LoadTextureDirectly

Source/HLEGraphics/BaseRenderer.cpp:1971–1983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1969//
1970
1971CRefPtr<CNativeTexture> BaseRenderer::LoadTextureDirectly( const TextureInfo & ti )
1972{
1973 CRefPtr<CNativeTexture> texture = CTextureCache::Get()->GetOrCreateTexture( ti );
1974#ifdef DAEDALUS_ENABLE_ASSERTS
1975 DAEDALUS_ASSERT( texture, "texture is nullptr" );
1976#endif
1977 texture->InstallTexture();
1978
1979 mBoundTexture[0] = texture;
1980 mBoundTextureInfo[0] = ti;
1981
1982 return texture;
1983}
1984
1985
1986//

Callers 10

LoadFrameBufferFunction · 0.80
Load_ObjSpriteFunction · 0.80
DLParser_S2DEX_BgCopyFunction · 0.80
DLParser_S2DEX_Bg1cycFunction · 0.80
DLParser_Sprite2DDrawFunction · 0.80
LoadFrameBufferFunction · 0.80
Load_ObjSpriteFunction · 0.80
DLParser_S2DEX_BgCopyFunction · 0.80
DLParser_S2DEX_Bg1cycFunction · 0.80
DLParser_Sprite2DDrawFunction · 0.80

Calls 2

GetOrCreateTextureMethod · 0.80
InstallTextureMethod · 0.45

Tested by

no test coverage detected