Moved header structs and some methods to cpp files, reading pnm images upside-down
This commit is contained in:
@@ -12,20 +12,9 @@ namespace OpenVulkano::Image
|
||||
{
|
||||
class ImageLoaderPfm : public IImageLoader
|
||||
{
|
||||
struct PfmImageHeader
|
||||
{
|
||||
int width;
|
||||
int height;
|
||||
bool isColor;
|
||||
bool isLittleEndian;
|
||||
};
|
||||
|
||||
public:
|
||||
std::unique_ptr<Image> loadFromFile(const std::string& filePath) override;
|
||||
std::unique_ptr<Image> loadFromMemory(const std::vector<uint8_t>& buffer) override;
|
||||
Math::Vector2i GetImageDimensions(const std::string& filename) override;
|
||||
|
||||
private:
|
||||
PfmImageHeader parseHeader(std::istringstream& stream);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user