]> git.r.bdr.sh - rbdr/super-polarity/blob - src/actor.h
8bb7a88d740145bc583e81e65132af19349e2023
[rbdr/super-polarity] / src / actor.h
1 //
2 // actor.h
3 // Super Polarity
4 //
5 // Created by Ruben Beltran del Rio on 8/14/13.
6 // Copyright (c) 2013 Abuguet. All rights reserved.
7 //
8
9 #ifndef Super_Polarity_actor_h
10 #define Super_Polarity_actor_h
11
12 #include "SDL2/SDL.h"
13 #include "SDL2_image/SDL_image.h"
14
15 typedef struct actor_struct Actor;
16
17 typedef struct actor_struct {
18 SDL_Point pos;
19 SDL_Point vel;
20 SDL_Point acc;
21 SDL_Rect textureBox;
22 SDL_Texture *texture;
23 double angle;
24 void (*update)(Actor *, Uint32);
25 void (*draw)(Actor *);
26 } Actor;
27
28 Actor* createActor();
29
30 #endif