My Project
 
Loading...
Searching...
No Matches
image.h
Go to the documentation of this file.
1// Copyright (c) 2025 Milton McDonald
2// This source code is licensed under the MIT License. See LICENSE file in the
3// project root for details.
4
5#ifndef ENGINE_LIB_IMAGE_H_
6#define ENGINE_LIB_IMAGE_H_
7
8#include <filesystem>
9#include <optional>
10
11#include "dll-export.h"
12#include "types.h"
13
15
21DLLEXPORT [[nodiscard]] auto AreIdentical(const ::std::filesystem::path& png0,
22 const ::std::filesystem::path& png1)
24
30DLLEXPORT [[nodiscard]] auto CaptureScreenshot(
31 const ::std::optional<::std::filesystem::path>& dest = ::std::nullopt)
33
34} // namespace graphics_engine::image
35
36#endif // ENGINE_LIB_IMAGE_H_
#define DLLEXPORT
Definition dll-export.h:19
Definition image.h:14
DLLEXPORT auto CaptureScreenshot(const ::std::optional<::std::filesystem::path > &dest=::std::nullopt) -> ::graphics_engine::types::Expected< void >
Capture a screenshot of the current rendering context.
DLLEXPORT auto AreIdentical(const ::std::filesystem::path &png0, const ::std::filesystem::path &png1) -> ::graphics_engine::types::Expected< bool >
Determine if two png files are identical.
std::expected< T, std::error_code > Expected
Definition types.h:34