Add specific initialization of Flags and FlagBits. (#489)

Resolves #488.
This commit is contained in:
Andreas Süßenbach
2020-01-16 12:12:31 +01:00
committed by Markus Tavenrath
parent bb5b19deda
commit 33b244859b
4 changed files with 623 additions and 603 deletions

View File

@@ -29,7 +29,7 @@ namespace vk
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>;
using ModifierFlags = vk::Flags<ModifierFlagBits, uint32_t, ModifierFlagBits::Shift>;
public:
CameraManipulator();