Skip to content
Snippets Groups Projects

Resolve "Kamera - Erstellung und Handling"

Merged Ghost User requested to merge 35-kamera-erstellung-und-handling into develop
1 unresolved thread
4 files
+ 44
15
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 11
2
@@ -12,7 +12,7 @@
@@ -12,7 +12,7 @@
struct GLFWwindow;
struct GLFWwindow;
namespace vkcv {
namespace vkcv {
class Window final {
class Window final {
private:
private:
GLFWwindow *m_window;
GLFWwindow *m_window;
@@ -32,6 +32,14 @@ namespace vkcv {
@@ -32,6 +32,14 @@ namespace vkcv {
*/
*/
static void onMouseMoveEvent(GLFWwindow *window, double x, double y);
static void onMouseMoveEvent(GLFWwindow *window, double x, double y);
 
/**
 
* mouseButton callback for mouse buttons
 
* @param[in] button The [mouse button](@ref buttons) that was pressed or released.
 
* @param[in] action One of `GLFW_PRESS` or `GLFW_RELEASE`. Future releases may add more actions.
 
* @param[in] mods Bit field describing which [modifier keys](@ref mods) were held down.
 
*/
 
static void onMouseButtonEvent(GLFWwindow *callbackWindow, int button, int action, int mods);
 
static void onMouseScrollEvent(GLFWwindow *callbackWindow, double xoffset, double yoffset);
static void onMouseScrollEvent(GLFWwindow *callbackWindow, double xoffset, double yoffset);
/**
/**
@@ -83,6 +91,7 @@ namespace vkcv {
@@ -83,6 +91,7 @@ namespace vkcv {
/**
/**
* basic events of the window
* basic events of the window
*/
*/
 
event< int, int, int> e_mouseButton;
event< double, double > e_mouseMove;
event< double, double > e_mouseMove;
event< double, double > e_mouseScroll;
event< double, double > e_mouseScroll;
event< int, int > e_resize;
event< int, int > e_resize;
@@ -132,5 +141,5 @@ namespace vkcv {
@@ -132,5 +141,5 @@ namespace vkcv {
*/
*/
virtual ~Window();
virtual ~Window();
};
};
}
}
 
\ No newline at end of file
Loading