diff options
author | pommicket <pommicket@gmail.com> | 2025-02-25 22:19:37 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-02-25 22:19:37 -0500 |
commit | b88b34dbd672ac2b58d4f7c12f96fa79337cfe1f (patch) | |
tree | 60bbf7ca02eaa98eca372377f1557cb19e0de463 /main.c | |
parent | e78c40d08e324b98f62c88c055b5194ce2a7f4f2 (diff) |
start work on application
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,12 @@ +#define VERSION "0.0.0" + +/* +TODO: +- switch back to SDL for audio now that that bug has been fixed +- application icon (and SDL_SetWindowIcon) +- cmdline argument for starting in video mode +*/ + #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> @@ -19,6 +28,7 @@ #include "video.h" #include "log.h" + // pixel format used for convenience #define PIX_FMT_XXXGRAY 0x47585858 @@ -1778,7 +1788,8 @@ void main() {\n\ camera_hash_str(state->camera, hash); strcpy(&hash[8], "..."); } - snprintf(text, sizeof text, "Camera FPS: %" PRId32 " Render FPS: %" PRId32 " Camera ID: %s", + snprintf(text, sizeof text, + "Camera FPS: %" PRId32 " | Render FPS: %" PRId32 " | Camera ID: %s | v. " VERSION, smoothed_camera_time > 1e-9 && smoothed_camera_time < 1 ? (int32_t)(1/smoothed_camera_time) : 0, smoothed_frame_time > 1e-9 && smoothed_frame_time < 1 ? (int32_t)(1/smoothed_frame_time) : 0, state->camera ? hash : "(None)"); |