Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ** EPITECH PROJECT, 2018
- ** null
- ** File description:
- ** nul
- */
- #include "my.h"
- void fill_hud_button(my_w_t *window)
- {
- //button shop
- window->hud->button[0] = button_initialise(POS_SHOP,
- SIZE_SHOP_BUTTON, print_hello);
- window->hud->button[0] = next_button_initialise(window->hud->button[0],
- window->hud->shop_texture, window->hud->shop_fly_over);
- // button home
- window->hud->button[1] = button_initialise((sfVector2f){300, 500},
- SIZE_SHOP_BUTTON, print_bye);
- window->hud->button[1] = next_button_initialise(window->hud->button[1],
- window->hud->home, window->hud->home_fly_over);
- window->hud->button[2] = button_initialise((sfVector2f){1400, 50},
- SIZE_SHOP_BUTTON, print_hello);
- window->hud->button[2] = next_button_initialise(window->hud->button[2],
- window->hud->exit_sprite, window->hud->exit_fly_over);
- window->hud->button[3] = NULL;
- }
- void fill_all_texture_of_hud(my_w_t *window)
- {
- window->hud->shop_texture = sfTexture_createFromFile(SHOP_IMG, NULL);
- window->hud->shop_fly_over = sfTexture_createFromFile(SHOW_IMG_FLY, NULL);
- window->hud->home = sfTexture_createFromFile(HOME_IMG, NULL);
- window->hud->home_fly_over = sfTexture_createFromFile(HOME_IMG_FLY, NULL);
- window->hud->exit_sprite = sfTexture_createFromFile(EXIT_IMG, NULL);
- window->hud->exit_fly_over = sfTexture_createFromFile(EXIT_IMG_FLY, NULL);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement