VenomEngine
Cross-Platform Modern Graphics Engine
Loading...
Searching...
No Matches
venom::common::Context Class Reference

Public Member Functions

vc::Error InitContext ()
 
bool ShouldClose ()
 
void PollEvents ()
 
GLFWwindow * GetWindow ()
 
const GLFWwindow * GetWindow () const
 
void SetWindowTitle (const char *title)
 
InputState GetKeyState (KeyboardInput key) const
 
bool IsKeyPressed (KeyboardInput key) const
 
bool IsKeyReleased (KeyboardInput key) const
 
bool IsKeyRepeat (KeyboardInput key) const
 
int GetWindowWidth () const
 
int GetWindowHeight () const
 
bool IsKeyModifierPressed (int modifier) const
 Checks if a specified keyboard modifier key is currently pressed.
 
vcm::Vec2 GetMousePosition () const
 
vcm::Vec2 GetMouseMove () const
 

Static Public Member Functions

static ContextGet ()
 

Member Function Documentation

◆ IsKeyModifierPressed()

bool venom::common::Context::IsKeyModifierPressed ( int modifier) const
inline

Checks if a specified keyboard modifier key is currently pressed.

Parameters
modifierA bitmask of one or more KeyboardModifier values.
Returns
true if the specified modifier(s) is pressed; otherwise, false.

The documentation for this class was generated from the following files: