• Advertisement


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

Beginner: Creating textures from a file...

This topic is 5608 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

Hello All, I''m a newbie DX programmer, so I''m sure this is a pretty straightfoward question. I''m playing around making a tile based engine, and I want to be able to load just a portion of the .bmp file into memory as a texture. So, my .bmp contains six tiles, each 32x32. If I want to get the second tile, how would I load that into a DX8 Texture? Alternativley, would it be more efficient to load the entire .bmp into memory and refer to just a portion of it when I call the SetTexture method? Thx! --Ben

Share this post

Link to post
Share on other sites

  • Advertisement