1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,29 @@ |
1 |
+#ifdef GLBACKEND_GLFW |
|
2 |
+ |
|
3 |
+ |
|
4 |
+#include <GLFW/glfw3.h> |
|
5 |
+ |
|
6 |
+ |
|
7 |
+constexpr auto width = 640; |
|
8 |
+constexpr auto height = 480; |
|
9 |
+ |
|
10 |
+ |
|
11 |
+int main() |
|
12 |
+{ |
|
13 |
+ if (!glfwInit()) |
|
14 |
+ return 1; |
|
15 |
+ auto * window = glfwCreateWindow( |
|
16 |
+ width, height, |
|
17 |
+ "baseline_glfw", |
|
18 |
+ nullptr, nullptr |
|
19 |
+ ); |
|
20 |
+ if (!window) |
|
21 |
+ return 1; |
|
22 |
+ glfwDestroyWindow(window); |
|
23 |
+ glfwTerminate(); |
|
24 |
+} |
|
25 |
+ |
|
26 |
+ |
|
27 |
+#else |
|
28 |
+int main() {} |
|
29 |
+#endif |