Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

BSXrider

Embedding data files

This topic is 6101 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My project uses a bitmap for textures. How can I make this become part of the .exe instead of a separate file? - seb

Share this post


Link to post
Share on other sites
Advertisement
Thank you, quite useful.

At the moment I have:

Texs[0]=auxDIBImageLoad("data/font.bmp");

I (very hopefully) tried:

Texs[0]=auxDIBImageLoad(MAKEINTRESOURCE(IDB_FONTTEXTURE));

But as suspected it didn''t work. How do I do this?

- seb

Share this post


Link to post
Share on other sites
Yeh, but that makes the exe longer to ling and a bit slower.

<table border="1" cellspacing="0" nostyle="border-collapse: collapse; color: #000000; font-family: Courier New; font-size: 8pt" id="AutoNumber1" bgcolor="#FF9933" bordercolorlight="#808080" bordercolordark="#C0C0C0" cellpadding="0">
<tr>
<td width="78" height="1">[ Website
]</td>
</tr>
<tr>
<td width="78" height="4">

[ Email ]</td>
</tr>
</table>

Share this post


Link to post
Share on other sites
because it puts the bitmaps/icons/whatever directly into the EXE file (at the end i think, i don''t really know the details though).
so, you get a bigger .EXE, but no extra files to cart around, and it is [very slightly] harder for someone to edit your graphics.

--- krez (krezisback@aol.com)

Share this post


Link to post
Share on other sites
Why not make a seperate resource file with all your bmps, wavs etc in, then you can compress it, streamline it, do whatever you want with it etc....

If speed is a problem you can also then load from this in another thread (provided you can predict just before they are needed else there may be no real benefit)

There are tutorials on this site on making you rown resource file managers.

Bp.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!