Skip to content
Snippets Groups Projects

Resolve "Kamera - Erstellung und Handling"

Merged Ghost User requested to merge 35-kamera-erstellung-und-handling into develop
5 files
+ 82
29
Compare changes
  • Side-by-side
  • Inline
Files
5
  • 9ddd711f
    [#35] add mouse scroll event, mouse move functionalities · 9ddd711f
    Vanessa Karolek authored
    For now, camera based callbacks are handled within main. For a camera controller, we need a way to pass callback functions to the 'add' function, i.e. replacing the lambda expressions.
+ 3
0
@@ -32,6 +32,8 @@ namespace vkcv {
@@ -32,6 +32,8 @@ namespace vkcv {
*/
*/
static void onMouseMoveEvent(GLFWwindow *window, double x, double y);
static void onMouseMoveEvent(GLFWwindow *window, double x, double y);
 
static void onMouseScrollEvent(GLFWwindow *callbackWindow, double xoffset, double yoffset);
 
/**
/**
* resize callback for the resize option of the window
* resize callback for the resize option of the window
* @param[in] window The window that was resized.
* @param[in] window The window that was resized.
@@ -82,6 +84,7 @@ namespace vkcv {
@@ -82,6 +84,7 @@ namespace vkcv {
* basic events of the window
* basic events of the window
*/
*/
event< double, double > e_mouseMove;
event< double, double > e_mouseMove;
 
event< double, double > e_mouseScroll;
event< int, int > e_resize;
event< int, int > e_resize;
event< int, int, int, int > e_key;
event< int, int, int, int > e_key;
Loading