Jump to content
  • Advertisement

Archived

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

gommo

Programmatically creating Texture

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

How can this be done. Do you get a texture via D3DXCreateTexture(..) and then LockRect() or something on it. If so, is it just a matter of declaring say a large BYTE array and filling it with the appropriate data depending on the texture format. Say RRGGBBAA then I have 4 BYTEs per pixel. Do I have to included any other data for the texture to be valid, like header information for that particular format etc.. Or is the best bet to construct a structure matching a particular file format and construct the image in memory, complete with header information etc.. and then use D3DXCreateTextureFromFileInMemory(..) ?? has anybody done any thing like this??

Share this post


Link to post
Share on other sites
Advertisement

  • 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!