From 4b3b08ecadf8604062c7f801668e641cb024e309 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 25 Apr 2025 21:17:07 +0200 Subject: First Commit --- src/lensdrac/sdl2test.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/lensdrac/sdl2test.c (limited to 'src/lensdrac/sdl2test.c') diff --git a/src/lensdrac/sdl2test.c b/src/lensdrac/sdl2test.c new file mode 100644 index 0000000..511c0bd --- /dev/null +++ b/src/lensdrac/sdl2test.c @@ -0,0 +1,22 @@ +/** + * sdl2test.c - source file for trying things with SDL2. + * + * Copyright (C) 2025 https://optics-design.com + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * See the COPYING file for the full license text. + */ +#include + +int main(int argc, char *argv[]) { + SDL_Init(SDL_INIT_VIDEO); + SDL_Window *win = SDL_CreateWindow("Hello SDL2", 100, 100, 800, 600, SDL_WINDOW_SHOWN); + SDL_Delay(2000); + SDL_DestroyWindow(win); + SDL_Quit(); + return 0; +} -- cgit v1.2.3