directx/visual c++ datafiles like allegro

Started by
7 comments, last by afastrunner 24 years, 3 months ago
I have used allegro and love the datafile stuff and the grabber program. My question is: does directx/visual c++ have any built in stuff that does the same thing... I want to have all by graphics/sounds/etc in a seperate file.. not just laying about where they can be edited by the user... AFastrunner AKA Camelboy
AfastrunnerAKA Camelboy
Advertisement
not built in
you just need to write your own, no biggee
-PoesRaven
I don''t believe that Visual C++/DirectX has file support like you want. That being said, it''s pretty easy to just concatonate your files together and use fseek functions to find the beginning of individual files in the concatonated single file.
That is anoying... Another thing I got to work on... better brew another pot of coffee....

Afastrunner

p.s. How would I go about concatonating the files??
AfastrunnerAKA Camelboy
DirectX 5(4?) had fastfile. Just what you wanted. Unfortionatly it is no longer supported in the latest version.
William Reiach - Human Extrodinaire

Marlene and Me


just make a class to handle the interface, a simple console program to make the files. i use this approach of it:

super-header // # of files etc.
fileheaders // X fileheaders, once for each file. with information such as the offset, size etc.
and then at last, the file data
If you are totally reliant on the old Allegro system, Allegro is available for Windows (and Linux), now. You can get it at: http://sunsite.auc.dk/allegro/wip.html

Version 4 - the first cross-platform version - is due for release soon.
No I am not reliant on Allegro... I like DirectX better... I was very excited to see the Gamedev.net article on resource files popup the day after I made my post... It was very informative.



Afastrunner
AKA Camelboy
AfastrunnerAKA Camelboy
Another thing you might look into(if you dont want compression) Is just storing the bitmaps,sounds,etc in the exe or in a dll as resource file types.

This topic is closed to new replies.

Advertisement