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

Function Res_PSD_GetLayerTexture

BeefySysLib/ResLib.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42BF_EXPORT TextureSegment* BF_CALLTYPE Res_PSD_GetLayerTexture(PSDReader* pSDReader, int layerIdx, int* ofsX, int* ofsY)
43{
44 Texture* texture = pSDReader->LoadLayerTexture(layerIdx, ofsX, ofsY);
45 if (texture == NULL)
46 return NULL;
47
48 TextureSegment* textureSegment = new TextureSegment();
49 textureSegment->InitFromTexture(texture);
50 return textureSegment;
51}
52
53BF_EXPORT TextureSegment* BF_CALLTYPE Res_PSD_GetMergedLayerTexture(PSDReader* pSDReader, int* layerIndices, int count, int* ofsX, int* ofsY)
54{

Callers

nothing calls this directly

Calls 2

LoadLayerTextureMethod · 0.80
InitFromTextureMethod · 0.80

Tested by

no test coverage detected