blob: 8bb7a88d740145bc583e81e65132af19349e2023 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|