MCPcopy Create free account
hub / github.com/ValveSoftware/steam-audio / UIWindow

Method UIWindow

core/src/itest/ui_window.cpp:60–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58unique_ptr<UIAudioEngine> UIWindow::sAudioEngine = nullptr;
59
60UIWindow::UIWindow()
61{
62 glfwInit();
63 sWindow = glfwCreateWindow(1280, 720, "Steam Audio", nullptr, nullptr);
64 glfwMakeContextCurrent(sWindow);
65 glfwSwapInterval(1);
66
67 sWidth = 1280;
68 sHeight = 720;
69
70 glfwSetKeyCallback(sWindow, keyboard);
71 glfwSetMouseButtonCallback(sWindow, mouseClick);
72 glfwSetCursorPosCallback(sWindow, mouseMove);
73
74 ImGui::CreateContext();
75 sIO = &ImGui::GetIO();
76 ImGui::StyleColorsDark();
77
78 ImGui_ImplGlfw_InitForOpenGL(sWindow, true);
79 ImGui_ImplOpenGL2_Init();
80}
81
82UIWindow::~UIWindow()
83{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected