1
0

creater.h 631 B

123456789101112131415161718192021222324252627
  1. # ifndef CREATER_H_GUARDBLOCK
  2. # define CREATER_H_GUARDBLOCK
  3. // Basiques
  4. # include <iostream>
  5. # include <cmath>
  6. # include <vector>
  7. // Random
  8. # include <cstdlib>
  9. // SDL
  10. # include <SDL/SDL.h>
  11. # undef main
  12. # include <SDL/SDL_rotozoom.h>
  13. # include <SDL/SDL_gfxPrimitives.h>
  14. // Box2D
  15. # include <box2d/box2d.h>
  16. # define MULTI 100.0f
  17. void createBloc( b2World &world, std::vector<b2Body*> &tbody, SDL_Surface* blc, float x, float y );
  18. void link2ByDist( b2World &world, std::vector<b2Body*> &tbody, std::vector<b2Joint*> &tjoint );
  19. void link3ByDist( b2World &world, std::vector<b2Body*> &tbody, std::vector<b2Joint*> &tjoint );
  20. #endif