Files
2026-11-05 10:15:01 -05:00

17 lines
452 B
C

#ifndef WINDOW_H
#define WINDOW_H
/*
* The pure-C contract, unchanged in spirit.
* window_run now takes the image: a read-only pixel buffer plus its
* dimensions. Nobody here cares that the implementation is AppKit.
*
* main.c loads the image (libimg owns the buffer), passes it in,
* and frees it AFTER window_run returns. The window layer only reads.
*/
int
window_run(const unsigned int* buf, int width, int height);
#endif /* WINDOW_H */