@@ -39,49 +39,6 @@ using namespace vs;
3939
4040int main (int argc, char *argv[])
4141{
42- vs::vsGui gui;
43- vs::VideoFile video;
4442
45- int retval = gui.Init ();; // OpenGL context setup
46- if (retval) {
47- vs::logc.error (" main" , " OpenGL + imgui context setup failed" );
48- return retval;
49- }
50-
51- // Our state
52- ImGui::SetNextWindowSize (ImVec2 (750 ,400 ));
53- // Main loop
54-
55- // let's populate with some data for testing purposes
56- if (video.peekFile (" /home/cappelletto/Videos/fran01.mp4" ) == -1 ) {
57- vs::logc.error (" main" , " Video file peek failed" );
58- return -1 ;
59- }
60- else {
61- vs::logc.info (" main" , " Video file peek success" );
62- }
63-
64- static bool window_flag = true ;
65- while (!gui.ShouldClose () && window_flag)
66- {
67- // Poll and handle events (inputs, window resize, etc.)
68- // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs.
69- // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application.
70- // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application.
71- // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags.
72- glfwPollEvents ();
73- gui.NewFrame ();
74-
75- int r = drawWindowInput (video);
76- // now we call to the drawWindowInfo function
77- drawWindowInfo (video); // read-only, could be const &
78-
79- // Rendering
80- gui.Render ();
81- }
82-
83- // Cleanup
84- gui.Destroy ();
85- vs::logc.info (" main" , " Exiting" );
8643 return 0 ;
8744}
0 commit comments