Archived

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

Texture Creation

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

Is it possible to create a texture in DirectX9, based upon a byte array defined: unsigned char array1 [64*32]; The bytes are either 0x00000000 or 0x00000001, therefore I only need a 2 colour texture. How can i load this using either D3D9 or D3DX9? Thanks in advance, LiamV

Share this post


Link to post
Share on other sites
Create the texture.

Lock the texture.

Copy your data in.

Unlock the texture.

Virtually identical to VB/IB manipulation.

Share this post


Link to post
Share on other sites