opengl added to engine
This commit is contained in:
parent
d8378484a7
commit
706a519452
31 changed files with 490 additions and 68 deletions
25
include/arc/input/glfw/mouse.h
Normal file
25
include/arc/input/glfw/mouse.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef ARC_GLFW_MOUSE_H_
|
||||
#define ARC_GLFW_MOUSE_H_
|
||||
|
||||
#ifdef ARC_GLFW
|
||||
#include <GLFW/glfw3.h>
|
||||
#include "arc/input/mouse.h"
|
||||
#include "arc/math/point.h"
|
||||
|
||||
struct ARC_Mouse {
|
||||
GLFWwindow *window;
|
||||
|
||||
ARC_Point *coords;
|
||||
int32_t *scrollY;
|
||||
|
||||
ARC_MouseState *buttons;
|
||||
uint8_t *buttonsReleased;
|
||||
};
|
||||
|
||||
struct ARC_MouseInfo {
|
||||
GLFWwindow *window;
|
||||
};
|
||||
|
||||
#endif // !ARC_GLFW
|
||||
|
||||
#endif // !ARC_GLFW_MOUSE_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue