Jump to content
  • Advertisement
Sign in to follow this  
gmax

Lock and SetStreamSource in Direct3D

This topic is 4497 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 using Direct3D 9.0 SDK i am new in direct3d, why we using device->Lock(); device->Unlock(); and SetStreamSource(); and what is the parameters.

Share this post


Link to post
Share on other sites
Advertisement
hi,

you use Lock to get a pointer to the vertex/index buffer, so that you can write data to it. Then you unlock it, to feed it back to the card. Then you set the newly created buffer as a stream source. You want to tell the card what to render as you can have multiple buffers.
Abou the parameters, please refer to the SDK docs, it explains every single parameter very well.

kp

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!