8#ifndef ENGINE_CORE_GGLFWWINDOW_H_
9#define ENGINE_CORE_GGLFWWINDOW_H_
15#include <GLFW/glfw3.h>
42 void initialize(
int width,
int height,
int windowMode,
bool isResizable)
override;
79 void setIcon(std::string pngFullpath)
override;
80 void setIcon(
unsigned char* imageData,
int w,
int h)
override;
82 void setTitle(
const std::string& windowTitle)
override;
105 float scalex, scaley;
107 double lastcursorx, lastcursory;
bool getShouldClose() override
void setIcon(unsigned char *imageData, int w, int h) override
bool isGamepadButtonPressed(int joystickId, int buttonId) override
GLFWwindow * getGLFWWindow() const
Definition gGLFWWindow.h:98
void setIcon(std::string pngFullpath) override
void initialize(int width, int height, int windowMode, bool isResizable) override
void setWindowSizeLimits(int minWidth, int minHeight, int maxWidth, int maxHeight) override
void getVulkanInstanceExtensions(std::vector< const char * > &extensions) const override
void setCursorPos(int x, int y) override
static constexpr gCursorMode CURSORMODE_RELATIVE
Definition gGLFWWindow.h:30
static constexpr gCursorMode CURSORMODE_HIDDEN
Definition gGLFWWindow.h:28
void setTitle(const std::string &windowTitle) override
void handleCursorPos(double xpos, double ypos)
void setWindowSize(int width, int height) override
void setWindowResizable(bool isResizable) override
static constexpr gCursorMode CURSORMODE_NORMAL
Definition gGLFWWindow.h:27
void setCustomCursor(gImage &image, int hotspotX=0, int hotspotY=0) override
static constexpr gCursorMode CURSORMODE_DISABLED
Definition gGLFWWindow.h:29
void setCursor(int cursorNo) override
bool supportsVulkan() const override
void setCursorMode(gCursorMode cursorMode) override
bool createVulkanSurface(void *instance, void *surface) override
void setVsync(bool vsync) override
float getScaleX() const
Definition gGLFWWindow.h:88
const float * getJoystickAxes(int joystickId, int *axisCountPtr) override
bool isJoystickPresent(int joystickId) override
void setClipboardString(std::string text) override
void setScale(float x, float y)
float getScaleY() const
Definition gGLFWWindow.h:91
std::string getClipboardString() override
gCursorMode
Definition gWindowEvents.h:14
@ CURSORMODE_NORMAL
Definition gWindowEvents.h:15
@ CURSORMODE_HIDDEN
Definition gWindowEvents.h:16
@ CURSORMODE_DISABLED
Definition gWindowEvents.h:17
@ CURSORMODE_RELATIVE
Definition gWindowEvents.h:18