dl
dl_wrap_glfw.h
浏览该文件的文档.
1
12#pragma once
13
14namespace dl
15{
17{
18public:
19 ANativeWindow* _window;
20};
21
23{
24
25};
26
27inline bool glfwInit() { return true; }
28
29inline bool glfwWindowShouldClose(GLFWwindow* window) { return false; }
30
31inline void glfwGetFramebufferSize(GLFWwindow* window, int* w, int* h)
32{
33 *w = 800;
34 *h = 600;
35}
36
37inline const char** glfwGetRequiredInstanceExtensions(uint32_t* count)
38{
39 *count = 0;
40 return nullptr;
41}
42
43inline void glfwWaitEvents(){}
44inline void glfwPollEvents(){}
45inline void glfwDestroyWindow(GLFWwindow* window){}
46inline void glfwTerminate(){}
47inline void glfwSetCursorPos(GLFWwindow* window, int x, int y){}
48
49inline void glfwGetWindowSize(GLFWwindow* window, int* w, int* h){}
50inline void glfwGetMonitorWorkarea(GLFWmonitor* monitor, int* x, int* y, int* w, int* h){}
51inline void glfwGetWindowSize(GLFWwindow* window, int x, int y){}
52inline void glfwSetWindowPos(GLFWwindow* window, int x, int y){}
53
54}
ANativeWindow * _window
Definition: dl_wrap_glfw.h:19
Definition: dl_array2.h:17
const char ** glfwGetRequiredInstanceExtensions(uint32_t *count)
Definition: dl_wrap_glfw.h:37
void glfwSetWindowPos(GLFWwindow *window, int x, int y)
Definition: dl_wrap_glfw.h:52
void glfwWaitEvents()
Definition: dl_wrap_glfw.h:43
void glfwGetFramebufferSize(GLFWwindow *window, int *w, int *h)
Definition: dl_wrap_glfw.h:31
void glfwPollEvents()
Definition: dl_wrap_glfw.h:44
void glfwGetMonitorWorkarea(GLFWmonitor *monitor, int *x, int *y, int *w, int *h)
Definition: dl_wrap_glfw.h:50
bool glfwWindowShouldClose(GLFWwindow *window)
Definition: dl_wrap_glfw.h:29
void glfwGetWindowSize(GLFWwindow *window, int *w, int *h)
Definition: dl_wrap_glfw.h:49
bool glfwInit()
Definition: dl_wrap_glfw.h:27
void glfwSetCursorPos(GLFWwindow *window, int x, int y)
Definition: dl_wrap_glfw.h:47
void glfwTerminate()
Definition: dl_wrap_glfw.h:46
void glfwDestroyWindow(GLFWwindow *window)
Definition: dl_wrap_glfw.h:45