mirror of
https://github.com/glfw/glfw.git
synced 2025-06-06 15:54:56 +00:00
Added glfwGetWindowTitle(window) to window.c test
This commit is contained in:
parent
0f5048ac80
commit
a2e47efd5a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user