Jump to content
  • Advertisement

Archived

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

owl

Filling D3D8 textures with RGBA pixel values by hand

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

I have a buffer with pixels in RGBA format (1 byte each) and I would like to iterate this buffer and fill a D3D8 texture. Could someone point me out some tutorial about this or make me a brief explanation? Thank you very much in advance.

Share this post


Link to post
Share on other sites
Advertisement
Create a valid Texture object.
Lock that Texture object.
Copy the RGB(A) values.
Unlock that Texture object.
Loop: Use that Texture object.
Release that Texture object.

.lick

Share this post


Link to post
Share on other sites
Does it works the same than with Ddraw surfaces?

EDIT: I know this may be easy, but I'm having some problems to get my mind into programming this days. Like blocked or something..

[edited by - xaxa on July 27, 2003 7:41:54 AM]

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.

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!