Sign in to follow this  

Lock and SetStreamSource in Direct3D

This topic is 4303 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
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

This topic is 4303 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this