#ifndef PONG_H #define PONG_H #include #include "ball.h" static const int PONG_SCREEN_WIDTH = 640; static const int PONG_SCREEN_HEIGHT = 480; static const int PONG_BALL_POSX = 100; static const int PONG_RACKET_POSX = 50; typedef struct Pong { SDL_Window* window; SDL_Surface* screenSurface; SDL_Renderer* renderer; SDL_Event e; Ball *ball; Racket *racketL; Racket *racketR; } Pong; Pong* Pong_init(); void Pong_free(Pong *p); void Pong_clear(Pong *p); int Pong_render(Pong *p, int start); void Ball_move(Ball *b, Pong *p); void Pong_run(Pong *p); void Pong_status(const Pong *p, int quit); #endif