1ALLEGRO_VIDEO_EVENT_TYPE(3) ALLEGRO_VIDEO_EVENT_TYPE(3)
2
3
4
6 ALLEGRO_VIDEO_EVENT_TYPE - Allegro 5 API
7
9 #include <allegro5/allegro_video.h>
10
11 enum ALLEGRO_VIDEO_EVENT_TYPE
12
14 Events sent by al_get_video_event_source(3).
15
16 ALLEGRO_EVENT_VIDEO_FRAME_SHOW
17 This event is sent when it is time to show a new frame. Once you re‐
18 ceive this event, you can draw the current frame (as returned by
19 al_get_video_frame(3)). al_get_video_frame(3) will continue returning
20 the same frame until the next ALLEGRO_EVENT_VIDEO_FRAME_SHOW is sent.
21
22 user.data1 (ALLEGRO_VIDEO *)
23 The video which generated the event.
24
26 5.1.0
27
28 ALLEGRO_EVENT_VIDEO_FINISHED
29 This event is sent when the video is finished. Depending on the back‐
30 end, it may be possible to seek to an earlier part of the video and set
31 the video to play to resume playback.
32
33 user.data1 (ALLEGRO_VIDEO *)
34 The video which generated the event.
35
37 5.1.0
38
39
40
41Allegro reference manual ALLEGRO_VIDEO_EVENT_TYPE(3)