disabled imgui demo for now

This commit is contained in:
2023-10-24 08:56:39 +02:00
parent b2d78747b0
commit 5cb2ea4f0c
2 changed files with 2 additions and 4 deletions

View File

@@ -3,8 +3,7 @@
#include <stdint.h>
int main() {
run_overlay();
/*
//run_overlay();
if (!open_device())
return -1;
@@ -20,6 +19,5 @@ int main() {
printf("Value from RPM: %d\n", out);
close_device();
*/
return 0;
}

View File

@@ -28,7 +28,7 @@ int run_overlay(void)
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIDDEN);
SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIDDEN | SDL_WINDOW_ALWAYS_ON_TOP | SDL_WINDOW_UTILITY);
SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL3+OpenGL3 example", 1280, 720, window_flags);
if (window == nullptr)
{