]> git.r.bdr.sh - rbdr/super-polarity/blame - src/actor.h
Add some basic actorstuffs
[rbdr/super-polarity] / src / actor.h
CommitLineData
8534e46e
BB
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
15typedef struct actor_struct Actor;
16
17typedef 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
28Actor* createActor();
29
30#endif