GLFWwindow GLFWwindow
Definition GLFWWindow.hpp:17
Definition GLFWWindow.hpp:21
GLFWWindow & operator=(const GLFWWindow &)=delete
void mousePositionCallback(double x, double y)
A callback method called by GLFW when the mouse changes position.
API
Definition GLFWWindow.hpp:23
~GLFWWindow() final
Destroys the GLFW window.
PlatformWindowProperties mProperties
Definition GLFWWindow.hpp:33
void resize(double width, double height) final
double getScalingFactor() const final
ModifierButton mModifierButtons
Definition GLFWWindow.hpp:44
void setFullscreen(bool fullscreen) final
void mouseButtonCallback(int button, int action, int modifiers)
A callback method called by GLFW when a mouse button is pressed.
void charCallback(int unicodeChar)
A callback method called by GLFW when a keyboard button is pressed and inputs text.
HashMap< Button, DragState > mDragStates
Definition GLFWWindow.hpp:42
GLFWwindow * mWindow
The GLFW window handle.
Definition GLFWWindow.hpp:30
static Vector< const char * > getVulkanInstanceExtensions()
static GLFWWindow * fromHandle(GLFWwindow *handle)
Gets the GLFWWindow from the given GLFW handle.
bool isFullscreen() const final
String mTitle
The window title.
Definition GLFWWindow.hpp:36
Vector2 getSize() const final
void setTitle(const String &title) final
GLFWWindow(double width=800.0, double height=600.0, const String &title="Game Engine", API api=API::None)
Create a new GLFW window.
InputState mState
The.
Definition GLFWWindow.hpp:47
void mouseScrollCallback(double x, double y)
A callback method called by GLFW when the mouse scroll wheel position changes.
String getTitle() const final
GLFWWindow(const GLFWWindow &)=delete
void keyboardCallback(int key, int scancode, int action, int modifiers)
A callback method called by GLFW when a keyboard button is pressed.
GLFWwindow * getHandle() const
Definition Application.hpp:19
ModifierButton
A enumeration of possible modifier buttons.
Definition Input.hpp:298
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
std::unordered_map< Key, T, Hash, KeyEqual, ScopedAllocatorAdaptor< StdAllocator< Pair< const Key, T >, RawAllocator > > > HashMap
HashMap is an associative container that contains key-value pairs with unique keys.
Definition Map.hpp:33
Button button(const StringView &str) noexcept
Returns the Button constant that is represented by str.
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Definition GLFWWindow.hpp:38
bool active
Definition GLFWWindow.hpp:39
Vector2 lastPosition
Definition GLFWWindow.hpp:40