7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
9 // Copyright: See COPYING file that comes with this distribution
13 #ifndef SUPERTUX_TYPE_H
14 #define SUPERTUX_TYPE_H
18 /* 'Interoperability' type */
20 typedef struct itop_type
31 double get_frame_ratio(itop_type* pit);
34 typedef struct timer_type
41 void timer_init(timer_type* ptimer);
42 void timer_start(timer_type* ptimer, unsigned int period);
43 void timer_stop(timer_type* ptimer);
44 int timer_check(timer_type* ptimer);
45 int timer_started(timer_type* ptimer);
46 int timer_get_left(timer_type* ptimer);
47 int timer_get_gone(timer_type* ptimer);
50 typedef struct texture_type
52 SDL_Surface* sdl_surface;
59 void texture_load(texture_type* ptexture, char * file, int use_alpha);
60 void texture_from_sdl_surface(texture_type* ptexture, SDL_Surface * sdl_surf, int use_alpha);
61 void texture_free(texture_type* ptexture);
62 void texture_draw(texture_type* ptexture, float x, float y, int update);
63 void texture_draw_bg(texture_type* ptexture, int update);
64 void texture_draw_part(texture_type* ptexture, float x, float y, float w, float h, int update);
66 #endif /*SUPERTUX_TYPE_H*/