Added glfwGetWindowTitle(window) to window.c test

This commit is contained in:
Doug Binks 2024-02-09 17:09:17 +00:00
parent 0f5048ac80
commit a2e47efd5a

View File

@ -71,7 +71,7 @@ int main(int argc, char** argv)
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
GLFWwindow* window = glfwCreateWindow(600, 600, "Window Features", NULL, NULL);
GLFWwindow* window = glfwCreateWindow(600, 630, "Window Features", NULL, NULL);
if (!window)
{
glfwTerminate();
@ -170,6 +170,8 @@ int main(int argc, char** argv)
glfwSetWindowAttrib(window, GLFW_MOUSE_PASSTHROUGH, false);
}
nk_labelf(nk, NK_TEXT_CENTERED, "Window Title: %s", glfwGetWindowTitle(window));
nk_label(nk, "Press Enter in a text field to set value", NK_TEXT_CENTERED);
nk_flags events;