15 lines
539 B
C
15 lines
539 B
C
// Copyright (jacekpoz 2024). Licensed under the EUPL-1.2 or later.
|
|
|
|
#include <stdlib.h>
|
|
#include <ptk.h>
|
|
|
|
int main(void) {
|
|
if (!ptk_init(800, 600, "image", (PtkVersion){ .major = 0, .minor = 1, .patch = 0 })) {
|
|
return EXIT_FAILURE;
|
|
}
|
|
|
|
return ptk_run(/*PTK_BOX(*/
|
|
// ptk_image("examples/papiezWasap.png", (PtkPos){ .x = 200.0f, .y = 200.0f }, (PtkSize){ .w = 128.0f, .h = 128.0f }),
|
|
ptk_image("examples/:3.png", (PtkPos){ .x = 200.0f, .y = 400.0f }, (PtkSize){ .w = 128.0f, .h = 128.0f })
|
|
/*)*/);
|
|
}
|