• Advertisement

Archived

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

Programmatically creating Texture

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