5 #include "hw/vga/vrl.h"
6 #include "hw/vga/vrs.h"
8 // Container for .vrs files loaded in memory with useful info
10 // + size of the .vrs blob in memory
11 // + pointer to the blob/vrs header
12 // + id of the curent (shown) animation
13 // + id of the first sprite of the curret animation (supplementary)
14 // + id of the current (shown) sprite
19 unsigned char *buffer;
20 struct vrs_header *vrs_hdr;
22 uint16_t anchor_sprite_id;
23 uint16_t current_sprite_id;
26 // Container for .vrl files loaded in memory with useful info
28 // + size of the .vrl blob in memory
29 // + pointer to the blob/vrl header
33 unsigned char *buffer;
34 struct vrl1_vgax_header *vrl_header;
38 // Read .vrs file into memory
40 // + char *filename - name of the file to load
41 // + struct vrs_container *vrs_cont - pointer to the vrs_container
42 // to load the file into
44 // + int - 0 on succes, 1 on failure
45 int read_vrs(char *filename, struct vrs_container *vrs_cont);
47 // Seek and return a specified .vrl blob from .vrs blob in memory
49 // + struct vrs_container *vrs_cont - pointer to the vrs_container
50 // with a loaded .vrs file
51 // + uint16_t id - id of the vrl to retrive
53 // struct vrl_container* - a pointer to a vrl_container with a pointer
54 // to the requested .vrl blob
55 struct vrl_container* get_vrl_by_id(struct vrs_container *vrs_cont, uint16_t id);