Jump to content
  • Advertisement
Sign in to follow this  
spiffycrony

Directx equivalent of picturebox.pset

This topic is 4112 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 am trying to find if there is any directx equivalent to the picturebox's pset function. I want to color a few individual pixels of a picture box using directx8.

Share this post


Link to post
Share on other sites
Advertisement
This is a common source of confusion and frustration for DirectX developers who have newly migrated from GDI and the likes.

There is no particularly efficient method for dynamic per-pixel access of DirectX surfaces. The functionality can be emulated by using LockRect (and it works very well), but this strongly undermines hardware acceleration.

A few workarounds exist, such as rendering D3DPT_POINTLISTs or cannibalising pixel shaders, but you're advised to stick to straightforward shaded/textured geometry as your primary source of visual effects.

Admiral

Share this post


Link to post
Share on other sites
Sign in to follow this  

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