#ifndef PW_DEBUG_H #define PW_DEBUG_H #include struct pw_debug { SDL_Texture *font; struct { uint64_t clock; uint64_t count; double sample; } fps; }; /** * Initializes debug state. */ struct pw_debug *pw_debug_init(SDL_Renderer *renderer); /** * Frees debug state. */ void pw_debug_free(struct pw_debug *debug); /** * Iterates a new frame and updates debug information. */ bool pw_debug_iterate(struct pw_debug *debug); /** * Prints debug information to screen. */ bool pw_debug_render(struct pw_debug *debug); #endif