Replace explicit template parameter MaskType for Flags types by std::underlying_type<BitType>::type and specify the underlying type for the FlagBits types

Resolves #507
This commit is contained in:
asuessenbach
2020-02-20 12:04:27 +01:00
committed by Markus Tavenrath
parent cbff9067dc
commit 947583a1e5
4 changed files with 343 additions and 312 deletions

View File

@@ -28,8 +28,8 @@ namespace vk
enum class Action { None, Orbit, Dolly, Pan, LookAround };
enum class Mode { Examine, Fly, Walk, Trackball };
enum class MouseButton { None, Left, Middle, Right };
enum class ModifierFlagBits { Shift = 1, Ctrl = 2, Alt = 4 };
using ModifierFlags = vk::Flags<ModifierFlagBits, uint32_t>;
enum class ModifierFlagBits : uint32_t { Shift = 1, Ctrl = 2, Alt = 4 };
using ModifierFlags = vk::Flags<ModifierFlagBits>;
public:
CameraManipulator();