diff options
Diffstat (limited to 'Build/source/utils/asymptote/EXRFiles.h')
-rw-r--r-- | Build/source/utils/asymptote/EXRFiles.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/EXRFiles.h b/Build/source/utils/asymptote/EXRFiles.h new file mode 100644 index 00000000000..36bd8b9b573 --- /dev/null +++ b/Build/source/utils/asymptote/EXRFiles.h @@ -0,0 +1,32 @@ +// +// Created by jamie on 8/23/21. +// + +#pragma once +#include "common.h" +#include "cudareflect/tinyexr/tinyexr.h" + +namespace camp +{ +class IEXRFile +{ +public: + IEXRFile(string const& file); + ~IEXRFile(); + + [[nodiscard]] + float const* getData() const { + return data; + } + + [[nodiscard]] + std::pair<int,int> size() const { + return std::make_pair(width, height); + } + +private: + float* data=nullptr; + int width=0, height=0; +}; + +} // namespace gl; |