Fixed vgcore not compiling on gcc
This commit is contained in:
parent
c26257711a
commit
3c6074da23
1 changed files with 5 additions and 5 deletions
10
deps/vgcore/src/virintox/gcore/Graphics.cpp
vendored
10
deps/vgcore/src/virintox/gcore/Graphics.cpp
vendored
|
|
@ -24,7 +24,7 @@ namespace Graphics {
|
|||
VREGISTRY(MenuSortSetter)
|
||||
VREGISTRY(InitAction)
|
||||
|
||||
void Graphics::Init() {
|
||||
void Init() {
|
||||
Running = true;
|
||||
if (!glfwInit()) {
|
||||
throw std::runtime_error("Could not Initialize glfw");
|
||||
|
|
@ -33,7 +33,7 @@ namespace Graphics {
|
|||
MWheel = 1.0f;
|
||||
}
|
||||
|
||||
void Graphics::BeginLoop() {
|
||||
void BeginLoop() {
|
||||
while (Running) {
|
||||
ImGui_ImplOpenGL3_NewFrame();
|
||||
ImGui_ImplGlfw_NewFrame();
|
||||
|
|
@ -48,19 +48,19 @@ namespace Graphics {
|
|||
}
|
||||
}
|
||||
|
||||
void Graphics::Terminate() {
|
||||
void Terminate() {
|
||||
ImGui_ImplOpenGL3_Shutdown();
|
||||
ImGui_ImplGlfw_Shutdown();
|
||||
ImGui::DestroyContext();
|
||||
glfwTerminate();
|
||||
}
|
||||
|
||||
void Graphics::EnableVsync() {
|
||||
void EnableVsync() {
|
||||
glfwMakeContextCurrent(window->GetGlfwWindow());
|
||||
glfwSwapInterval(1);
|
||||
}
|
||||
|
||||
void Graphics::AutoInit(std::string name) {
|
||||
void AutoInit(std::string name) {
|
||||
|
||||
VMirror::getAssemblyRegistry()->selfRegister(getVGCoreAssemblyInfo());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue