28 lines
801 B
C
28 lines
801 B
C
|
#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
|