start template refactor
This commit is contained in:
25
include/utils/Window/concepts.h
Normal file
25
include/utils/Window/concepts.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef WINDOW_CONCEPTS
|
||||
#define WINDOW_CONCEPTS
|
||||
|
||||
#include "pch.hpp"
|
||||
|
||||
#include "utils/Renderer/concepts.h"
|
||||
|
||||
namespace Archimedes {
|
||||
|
||||
template <class R>
|
||||
class WindowGLFW;
|
||||
|
||||
template <class R>
|
||||
class WindowSDL3;
|
||||
|
||||
template <class WindowImpl, class R>
|
||||
concept allowed_windows = requires (WindowImpl a, R b) {
|
||||
#ifndef CUSTOM_WINDOW
|
||||
requires std::same_as<WindowImpl, WindowGLFW<R>>
|
||||
|| std::same_as<WindowImpl, WindowSDL3<R>>;
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user