| 51 | } |
| 52 | |
| 53 | BF_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 | |
| 67 | BF_EXPORT int BF_CALLTYPE Res_PSD_GetLayerCount(PSDReader* pSDReader) |
| 68 | { |
nothing calls this directly
no test coverage detected