Re: [AD] load_datafile_object using index |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Wed, 2005-04-20 at 21:26 +0200, spoofer255@xxxxxxxxxx wrote:
> > index->filename = ustrdup(filename);
>
> Agreed.
>
> > And about the naming, I find create/destroy is more consistent, since
> > the index, unlike the single datafile objects, is created/destroyed
> > instead of loaded/unloaded.
>
> But index is loaded from the file. And it's more consistent then
> create/destroy since it matches with load_datafile[_object] and other
> function that read they data from files (like load_bitmap,
> load_sample, etc).
>
Well, there's create_bitmap/destroy_bitmap and so on.. so why not
create_datafile_index/destroy_datafile_index. It doesn't really load
anything in the sense of all the other load_* functions, but merely
creates an index from the given datafile. Only load_datafile and
load_datafile_object[_indexed] actually load something from that file.
--
Elias Pschernig