From bb28599456cf4db497d912a7cbdf0b1a9f2317a6 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 17:01:28 +0800 Subject: [PATCH] Glfw implementation for glfw.terminate function. --- std/n8std/GLFW.cc | 5 +++++ std/n8std/GLFW.hpp | 1 + 2 files changed, 6 insertions(+) diff --git a/std/n8std/GLFW.cc b/std/n8std/GLFW.cc index 65ea556..9913e8b 100644 --- a/std/n8std/GLFW.cc +++ b/std/n8std/GLFW.cc @@ -24,3 +24,8 @@ N8_FUNC(glfw_init) { return DynamicObject(glfwInit() == 1); } + +N8_FUNC(glfw_terminate) { + glfwTerminate(); + return DynamicObject(); +} diff --git a/std/n8std/GLFW.hpp b/std/n8std/GLFW.hpp index b020633..2533d74 100644 --- a/std/n8std/GLFW.hpp +++ b/std/n8std/GLFW.hpp @@ -29,6 +29,7 @@ N8_LIB_START N8_FUNC(glfw_init); +N8_FUNC(glfw_terminate); N8_LIB_END