From ecdf859b6ce481abfd530425dcf6f0f764bd0001 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 28 Dec 2021 03:01:00 +0000 Subject: CTAN sync 202112280300 --- graphics/asymptote/EXRFiles.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 graphics/asymptote/EXRFiles.h (limited to 'graphics/asymptote/EXRFiles.h') diff --git a/graphics/asymptote/EXRFiles.h b/graphics/asymptote/EXRFiles.h new file mode 100644 index 0000000000..36bd8b9b57 --- /dev/null +++ b/graphics/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 size() const { + return std::make_pair(width, height); + } + +private: + float* data=nullptr; + int width=0, height=0; +}; + +} // namespace gl; -- cgit v1.2.3