using CreateTexture and LockRect

Started by
1 comment, last by Raloth 20 years, 5 months ago
After I use CreateTexture, how am I supposed to put data in it? I was going to use LockRect but the msdn has this little comment in it:
quote:Textures created with D3DPOOL_DEFAULT are not lockable. Textures created in video memory are lockable when created with USAGE_DYNAMIC.
Huh? If I create a texture with D3DPOOL_MANAGED and without the USAGE_DYNAMIC flag will I still be able to lock it?
____________________________________________________________AAAAA: American Association Against Adobe AcrobatYou know you hate PDFs...
Advertisement
quote:
If I create a texture with D3DPOOL_MANAGED and without the USAGE_DYNAMIC flag will I still be able to lock it?


Yes

_______________________________________
Understanding is a three edged sword...
_______________________________________Understanding is a three edged sword...Freelance Games - Home of XBLIG Starchonwww.FreelanceGames.com
Thanks.
____________________________________________________________AAAAA: American Association Against Adobe AcrobatYou know you hate PDFs...

This topic is closed to new replies.

Advertisement