Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Handling DirectX 9 texture


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 ElfQT   Members   -  Reputation: 105

Like
0Likes
Like

Posted 11 September 2012 - 07:52 AM

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:
http://www.drunkenhy...er=2;article=30

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
error).

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

Thanks,
ElfQT

Edited by ElfQT, 11 September 2012 - 07:53 AM.


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS