Jump to content
  • Advertisement

Archived

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

LiamV

Texture Creation

This topic is 5136 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
Advertisement
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
Which function and with what parameters should i use when creating the texture?

[edited by - LiamV on May 30, 2004 11:59:12 AM]

Share this post


Link to post
Share on other sites
IDirect3DDevice::CreateTexture(); width 64, height 32, other parameters depending on your specific needs.

[edited by - Nik02 on May 30, 2004 12:01:18 PM]

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!