1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Using image data from PSD instead of manually flattening

This commit is contained in:
Brian Fiete 2020-08-09 10:12:52 -07:00
parent d47b231643
commit 8aa3e8ff22
6 changed files with 146 additions and 5 deletions

View file

@ -191,12 +191,13 @@ public:
int mGlobalAltitude;
int mChannels;
int mImageDataSectStart;
PSDLayerInfoVector mPSDLayerInfoVector;
PSDPatternMap mPSDPatternMap;
public:
String ReadIdString();
String ReadIdString();
void ReadPSDValue(PSDValue* value);
void ReadPSDDescriptor(PSDDescriptor* descriptor);
void ReadEffectColor(PSDDescriptor* colorDesc, uint32* color);
@ -215,6 +216,7 @@ public:
bool Init(const StringImpl& fileName);
ImageData* ReadImageData();
Texture* LoadLayerTexture(int layerIdx, int* ofsX, int* ofsY); // -1 = composited image
ImageData* MergeLayers(PSDLayerInfo* group, const std::vector<int>& layerIndices, ImageData* bottomImage);
Texture* LoadMergedLayerTexture(const std::vector<int>& layerIndices, int* ofsX, int* ofsY);