pawengine/comp.c

28 lines
801 B
C
Raw Normal View History

2025-02-09 18:48:25 +01:00
#include "comp.h"
#ifdef WAYLAND
cat_Comp *cat_comp_init(const char *title, int width, int heigh,
struct Vk **vk) {
return cat_init_wl(title, width, heigh, vk);
}
void cat_comp_uninit(cat_Comp *state) { cat_uninit_wl(state); }
void cat_comp_draw(cat_Comp *state) { cat_wl_draw(state); }
bool cat_comp_should_close(cat_Comp *state) {
return cat_wl_should_close(state);
}
#else
cat_Comp *cat_comp_init(const char *title, int width, int heigh,
struct Vk **vk) {
return cat_init_glfw(title, width, heigh, vk);
}
void cat_comp_uninit(cat_Comp *state) { cat_uninit_glfw(state); }
void cat_comp_draw(cat_Comp *state) { cat_glfw_draw(state); }
bool cat_comp_should_close(cat_Comp *state) {
return cat_glfw_should_close(state);
}
#endif //! WAYLAND