C6GE
2026.1
Century6 Game Engine
Loading...
Searching...
No Matches
C6GE_Window.h
1
#pragma once
2
3
#ifdef _WIN32
4
#define GLFW_INCLUDE_VULKAN
5
#endif
6
#ifdef __APPLE__
7
#define GLFW_INCLUDE_METAL
8
#endif
9
10
#include <GLFW/glfw3.h>
11
12
namespace
C6GE {
13
14
class
C6GEwindow {
15
16
public
:
17
18
C6GEwindow(
int
w,
int
h,
const
char
* title);
19
~C6GEwindow();
20
21
C6GEwindow(
const
C6GEwindow&) =
delete
;
22
C6GEwindow& operator=(
const
C6GEwindow&) =
delete
;
23
24
bool
ShouldClose() {
return
glfwWindowShouldClose(window); }
25
26
private
:
27
28
void
InitWindow();
29
30
const
int
Width;
31
const
int
Height;
32
const
char
* Title;
33
34
GLFWwindow* window;
35
};
36
}
// namespace C6GE
C6GE
include
C6GE_Window.h
Generated by
1.15.0