Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <allegro5/allegro5.h>
  2. #include <allegro5/allegro_image.h>
  3. #include <iostream>
  4. using namespace std;
  5. int main() {
  6. al_init();
  7. ALLEGRO_DISPLAY* display = al_create_display(600,600);
  8. al_install_mouse();
  9. al_init_image_addon();
  10. ALLEGRO_MOUSE_STATE mysz;
  11. ALLEGRO_BITMAP* papier = al_load_bitmap("papier.png")
  12. while(1) {
  13. al_get_mouse_state(&mysz);
  14. al_draw_bitmap_region(papier, (mysz.x%4))
  15. cout << mysz.z;
  16. al_rest(0.1);
  17.  
  18.  
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement