Hi All,
Does anyone have some code that would allow loading of WAVs or
Bitmaps from a Windows executable ( the actual game exe ).
Thanks,
Dominique.–
http://www.DelphiGamer.com := for all your Object Pascal game
development needs;
http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME := Home of JEDI-SDL;
Cross-platform game development with Pascal, has never been easier.
SDL_RWops *res_handle = SDL_RWFromMem( ptr_to_resource, size );
SDL_Surface *bitmap = SDL_LoadBMP_RW( res_handle, 1 );
or
SDL_AudioSpec *chunk = SDL_LoadWAV_RW( res_handle, 1, … );
For some reason these were never documented, talk about lazy…On Tue, Apr 02, 2002 at 01:41:07AM +0100, Dominique Louis wrote:
Hi All,
Does anyone have some code that would allow loading of WAVs or
Bitmaps from a Windows executable ( the actual game exe ).
Thanks,
Dominique.
http://www.DelphiGamer.com := for all your Object Pascal game
development needs;
http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME := Home of JEDI-SDL;
Cross-platform game development with Pascal, has never been easier.
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
Martin
Bother! said Pooh, as Kirk beamed him down in a red shirt.
Hi Martin,
Thanks for your the heads up. I will investigate further and try ad
track down that RWops tutorial and forward it onto the JEDI-SDL mailing
list for the FAQ.
I believe Borland has also implemented “embeded resources” under Linux
for the Kylix and the soon to be released C++ Builder compiler for
Linux, so the above code should be cross-platform as well.
Thanks again,
Dominique.–
http://www.DelphiGamer.com := for all your Object Pascal game
development needs;
http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME := Home of JEDI-SDL;
Cross-platform game development with Pascal, has never been easier.
Martin Donlon wrote:
SDL_RWops *res_handle = SDL_RWFromMem( ptr_to_resource, size );
SDL_Surface *bitmap = SDL_LoadBMP_RW( res_handle, 1 );
or
SDL_AudioSpec *chunk = SDL_LoadWAV_RW( res_handle, 1, … );
For some reason these were never documented, talk about lazy…
On Tue, Apr 02, 2002 at 01:41:07AM +0100, Dominique Louis wrote:
Hi All,
Does anyone have some code that would allow loading of WAVs or
Bitmaps from a Windows executable ( the actual game exe ).
Thanks,
Dominique.
http://www.DelphiGamer.com := for all your Object Pascal game
development needs;
http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME := Home of JEDI-SDL;
Cross-platform game development with Pascal, has never been easier.