Files
Tahgibu/tests/ui_smoke/mock_raylib.h
T
2026-10-24 11:52:16 -03:00

15 lines
589 B
C

/* Control del "raylib falso" que usa la prueba de humo de la interfaz (sin ventana ni GPU). */
#ifndef MOCK_RAYLIB_H
#define MOCK_RAYLIB_H
typedef enum { EV_MOVE, EV_DOWN, EV_UP, EV_KEY, EV_KEYDOWN, EV_KEYUP, EV_CHAR, EV_WHEEL } mock_ev_type;
typedef struct { int frame; mock_ev_type type; float a, b; } mock_event;
/* Programa un guion de eventos (ordenado por frame) y el último frame; luego tgb_ui_run lo consume. */
void mock_script(const mock_event *events, int count, int last_frame);
int mock_frames_run(void);
int mock_texture_updates(void);
int mock_draw_calls(void);
#endif