MCPcopy Create free account
hub / github.com/beefytech/Beef / Gfx_LoadTexture

Function Gfx_LoadTexture

BeefySysLib/BeefySysLib.cpp:466–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466BF_EXPORT TextureSegment* BF_CALLTYPE Gfx_LoadTexture(const char* fileName, int flags)
467{
468 Texture* texture = gBFApp->mRenderDevice->LoadTexture(fileName, flags);
469 if (texture == NULL)
470 return NULL;
471
472 TextureSegment* aTextureSegment = new TextureSegment();
473 aTextureSegment->InitFromTexture(texture);
474 return aTextureSegment;
475}
476
477BF_EXPORT void BF_CALLTYPE Gfx_Texture_SetBits(TextureSegment* textureSegment, int destX, int destY, int destWidth, int destHeight, int srcPitch, uint32* bits)
478{

Callers

nothing calls this directly

Calls 2

InitFromTextureMethod · 0.80
LoadTextureMethod · 0.45

Tested by

no test coverage detected