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

Function Res_PSD_GetMergedLayerTexture

BeefySysLib/ResLib.cpp:53–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53BF_EXPORT TextureSegment* BF_CALLTYPE Res_PSD_GetMergedLayerTexture(PSDReader* pSDReader, int* layerIndices, int count, int* ofsX, int* ofsY)
54{
55 std::vector<int> aLayerIndices;
56 aLayerIndices.insert(aLayerIndices.begin(), layerIndices, layerIndices + count);
57
58 Texture* texture = pSDReader->LoadMergedLayerTexture(aLayerIndices, ofsX, ofsY);
59 if (texture == NULL)
60 return NULL;
61
62 TextureSegment* textureSegment = new TextureSegment();
63 textureSegment->InitFromTexture(texture);
64 return textureSegment;
65}
66
67BF_EXPORT int BF_CALLTYPE Res_PSD_GetLayerCount(PSDReader* pSDReader)
68{

Callers

nothing calls this directly

Calls 3

InitFromTextureMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected