diff options
| author | Ben Beltran <ben@freshout.us> | 2013-08-14 09:00:22 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@freshout.us> | 2013-08-14 09:00:22 -0500 |
| commit | 8534e46e400268c5ceffb3b14f02cef39eedae8f (patch) | |
| tree | ec864c10f35c91c87711b0a12710ee18ba81f9dc /src/actor.h | |
| parent | ed603039c4a456b37aefe434a3b1a5352362d86b (diff) | |
Add some basic actorstuffs
Diffstat (limited to 'src/actor.h')
| -rw-r--r-- | src/actor.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/actor.h b/src/actor.h new file mode 100644 index 0000000..8bb7a88 --- /dev/null +++ b/src/actor.h @@ -0,0 +1,30 @@ +// +// actor.h +// Super Polarity +// +// Created by Ruben Beltran del Rio on 8/14/13. +// Copyright (c) 2013 Abuguet. All rights reserved. +// + +#ifndef Super_Polarity_actor_h +#define Super_Polarity_actor_h + +#include "SDL2/SDL.h" +#include "SDL2_image/SDL_image.h" + +typedef struct actor_struct Actor; + +typedef struct actor_struct { + SDL_Point pos; + SDL_Point vel; + SDL_Point acc; + SDL_Rect textureBox; + SDL_Texture *texture; + double angle; + void (*update)(Actor *, Uint32); + void (*draw)(Actor *); +} Actor; + +Actor* createActor(); + +#endif |