Advertisement
ananasa

boundingbox.h

Apr 4th, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #ifndef FONCTIONS_H_
  2. #define FONCTIONS_H_
  3.  
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <SDL/SDL.h>
  7. #include <SDL/SDL_image.h>
  8.  
  9.     struct Objet
  10. {
  11. SDL_Surface *image ;
  12. SDL_Rect position ;
  13. };
  14.  typedef struct Objet Objet;
  15.  
  16.     void initialiserObjet ( Objet *obj , char name[] , int x , int y ) ;
  17.     void affichageObjet ( Objet obj , SDL_Surface *screen) ;
  18.     int collisionBoundingbox ( SDL_Rect posj , SDL_Rect posobj ) ;
  19.  
  20.  
  21. #endif /* FONCTIONS_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement