12 #ifndef __ANIMPLAY_H__
13 #define __ANIMPLAY_H__
int anim_stop_playing(anim_instance *anim_instance)
Stop an anim instance that is on the anim_render_list from playing.
unsigned char anim_instance_get_byte(anim_instance *ai, int offset)
void anim_render_one(int screen_id, anim_instance *ani, float frametime)
Display the frames for the passed animation.
void anim_play_init(anim_play_struct *aps, anim *a_info, int x, int y, int max_x=-1, int max_y=-1)
Setup an anim_play_struct for passing into anim_play().
void anim_unpause(anim_instance *ai)
void anim_pause(anim_instance *ai)
int anim_instance_is_streamed(anim_instance *ai)
void anim_level_close()
Called after the end of a mission to clean up any mission dependent anim data.
int anim_show_next_frame(anim_instance *instance, float frametime)
This function is called to blit the next frame of an anim instance to the screen. This is normally ca...
void anim_release_render_instance(anim_instance *instance)
Free a particular animation instance that is on the anim_render_list. Do not call this function to fr...
void anim_read_header(anim *ptr, CFILE *fp)
void anim_release_all_instances(int screen_id=0)
Free all anim instances that are on the anim_render_list.
GLint GLint GLint GLint GLint x
int anim_playing(anim_instance *ai)
Return if an anim is playing or not.
void anim_render_all(int screen_id, float frametime)
Display the frames for the currently playing anims.
anim_instance * anim_play(anim_play_struct *aps)
Will add an anim instance to the anim_render_list. This will cause the anim to be played at the x...
GLuint const GLchar * name
void anim_level_init()
Called at the beginning of a mission to initialize any mission dependent anim data.
int anim_free(anim *ptr)
Free an animation that was loaded with anim_load().
int anim_write_frames_out(char *filename)
Write the frames of a .ani file out to disk as .pcx files.
int framerate_independent
void anim_init()
Initialise animation.
void anim_reverse_direction(anim_instance *ai)
void anim_ignore_next_frametime()
anim * anim_load(char *name, int cf_dir_type=CF_TYPE_ANY, int file_mapped=PAGE_FROM_MEM)
Load an animation. This stores the compressed data, which instances of the animation can reference...
void anim_display_info(char *filename)
Display information and statistics about a .ani file.