![]() |
Blt from resource files? - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Blt from resource files? (/showthread.php?tid=1542) |
Blt from resource files? - wisefire - 02-02-2008 Well, So I learned how to use resource files with VB, Im actually using one for some of the GUI in my game. Although, I was wondering if you would be able to put the sprites, tiles, and so on... Into the resource file and blt from it? If you have any experience with resource files it would be greatly appreciated. And if you would like to learn more about them check out this link; http://visualbasic.about.com/od/usevb6/a/ResVB6.htm Re: Blt from resource files? - Spodi - 02-02-2008 Resource files should be fully supported. DirectX does (at least I believe, been a long time since I've used DX7) have a ...FromResource (LoadSurfaceFromResource is it?) function for the loading. Though, I am quite heavily against resource files myself unless its for a small group of something highly relevant to one another such as the icons of your web browser. They just become difficult to update and manage along with updating a single graphic often requires updating the whole resource file. You can pretty much forget about using any form of encryption on it, too, unless you plan to do an encryption on every file individually before putting it in the resources (in which case you'd also have to write your own Load From Resource function), which makes things even messier. Reason I mention this is that many people seem to often associate resource files with security. Re: Blt from resource files? - Robin - 02-02-2008 Resource files are a bitch. Re: Blt from resource files? - wisefire - 03-02-2008 Spodi Wrote:Resource files should be fully supported. DirectX does (at least I believe, been a long time since I've used DX7) have a ...FromResource (LoadSurfaceFromResource is it?) function for the loading. Though, I am quite heavily against resource files myself unless its for a small group of something highly relevant to one another such as the icons of your web browser. They just become difficult to update and manage along with updating a single graphic often requires updating the whole resource file. You can pretty much forget about using any form of encryption on it, too, unless you plan to do an encryption on every file individually before putting it in the resources (in which case you'd also have to write your own Load From Resource function), which makes things even messier. Reason I mention this is that many people seem to often associate resource files with security. Thank's for the advice and help. :] @Robin Eh, They can be. |