Class for the GLFW plugin.
More...
#include <GLFW.hpp>
|
| static void | frameBufferResizeCallback (GLFWwindow *window, int width, int height) |
| |
| static void | keyCallback (GLFWwindow *window, int key, int scancode, int action, int mods) |
| |
| static void | mouseButtonCallback (GLFWwindow *window, int button, int action, int mods) |
| |
| static void | cursorPosCallback (GLFWwindow *window, double x, double y) |
| |
| static void | scrollCallback (GLFWwindow *window, double xoffset, double yoffset) |
| |
Class for the GLFW plugin.
Definition at line 30 of file GLFW.hpp.
◆ GLFW() [1/3]
◆ ~GLFW()
◆ GLFW() [2/3]
| cae::GLFW::GLFW |
( |
const GLFW & | | ) |
|
|
delete |
◆ GLFW() [3/3]
| cae::GLFW::GLFW |
( |
GLFW && | | ) |
|
|
delete |
◆ close()
| void cae::GLFW::close |
( |
| ) |
|
|
overridevirtual |
◆ create()
| bool cae::GLFW::create |
( |
const std::string & | name, |
|
|
WindowSize | size ) |
|
overridevirtual |
◆ cursorPosCallback()
| void cae::GLFW::cursorPosCallback |
( |
GLFWwindow * | window, |
|
|
double | x, |
|
|
double | y ) |
|
staticprivate |
◆ frameBufferResizeCallback()
| void cae::GLFW::frameBufferResizeCallback |
( |
GLFWwindow * | window, |
|
|
int | width, |
|
|
int | height ) |
|
staticprivate |
◆ getName()
| std::string cae::GLFW::getName |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
Get the name of the plugin.
- Returns
- The name of the plugin
Implements utl::IPlugin.
Definition at line 42 of file GLFW.hpp.
◆ getNativeHandle()
◆ getPlatform()
|
|
inlinenodiscardoverridevirtual |
Get the handled platform of the plugin.
- Returns
- The handled platform of the plugin
Implements utl::IPlugin.
Definition at line 44 of file GLFW.hpp.
References utl::ALL.
◆ getType()
|
|
inlinenodiscardoverridevirtual |
◆ getWindowSize()
Get the current window size.
- Returns
- Current window size
Implements cae::IWindow.
Definition at line 312 of file glfw.cpp.
◆ keyCallback()
| void cae::GLFW::keyCallback |
( |
GLFWwindow * | window, |
|
|
int | key, |
|
|
int | scancode, |
|
|
int | action, |
|
|
int | mods ) |
|
staticprivate |
◆ mouseButtonCallback()
| void cae::GLFW::mouseButtonCallback |
( |
GLFWwindow * | window, |
|
|
int | button, |
|
|
int | action, |
|
|
int | mods ) |
|
staticprivate |
◆ operator=() [1/2]
| GLFW & cae::GLFW::operator= |
( |
const GLFW & | | ) |
|
|
delete |
◆ operator=() [2/2]
◆ pollEvent()
Poll window events into outEvent.
- Parameters
-
| outEvent | Event to be filled |
- Returns
- True if an event was polled
Implements cae::IWindow.
Definition at line 348 of file glfw.cpp.
◆ pollEvents()
| void cae::GLFW::pollEvents |
( |
| ) |
|
|
inlineoverridevirtual |
◆ resetResizedFlag()
| void cae::GLFW::resetResizedFlag |
( |
| ) |
|
|
inlineoverridevirtual |
◆ scrollCallback()
| void cae::GLFW::scrollCallback |
( |
GLFWwindow * | window, |
|
|
double | xoffset, |
|
|
double | yoffset ) |
|
staticprivate |
◆ setIcon()
| void cae::GLFW::setIcon |
( |
const std::string & | path | ) |
const |
|
overridevirtual |
◆ shouldClose()
| bool cae::GLFW::shouldClose |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
Check if the window should close.
- Returns
- True if the window should close
Implements cae::IWindow.
Definition at line 54 of file GLFW.hpp.
References m_window.
◆ wasResized()
| bool cae::GLFW::wasResized |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
◆ m_eventQueue
◆ m_frameBufferResized
| bool cae::GLFW::m_frameBufferResized = false |
|
private |
◆ m_frameBufferSize
◆ m_window
| GLFWwindow* cae::GLFW::m_window = nullptr |
|
private |
The documentation for this class was generated from the following files: