Jump to content
  • Advertisement
Sign in to follow this  

OpenGL Handling DirectX 9 texture

This topic is 2230 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 would like some sample code which demonstrates how can I modify
a DirectX 9 texture. I have a texture, like a billboard, and I would
like to draw on that.

I already looked on google, on different gamedev sites etc. haven't
found a working solution.

As a texture quad, here's a sample:

If I try to modify the loaded texture, whatever I try
(UpdateTexture, UpdateSurface, different D3DUSAGE, D3DPOOL,
etc.), it crashes (with the much telling D3DERR_INVALIDCALL

I need explicitly DirectX 9 (not openGL), and possible without
the usage if D3DX (like D3DX sprites).

ElfQT Edited by ElfQT

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.

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!