Sign in to follow this  

FVF has order?

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

before I thought FVF has no order,because FVF just a combination of flag. DX can not get order just by FVF. But if FVF has no order , DX how to know where is position of vertex ,where is color.......

Share this post


Link to post
Share on other sites
Quote:
Original post by derek7
But if FVF has no order , DX how to know where is position of vertex ,where is color.......

It doesn't - is assumes you have them in the correct spots. Just check the SDK for a comprehensive look at it. In all reality, you absolutely should be using vertex declarations, not FVF codes. They are outdated and inflexible (maybe they should be called "Inflexible Vertex Format" heh).

Share this post


Link to post
Share on other sites
Quote:
Original post by derek7
Quote:
Original post by darookie
Just look it up here. The order is apparently fixed.


You mean the order is fixed. We must follow the order to create the vertex data?

Indeed. The "flexible" vertex formats requires the components to follow this defined order to work. As circlesoft already pointed out, you should use vertex declarations instead. Beware though, that some drivers still only accept FVF-like component ordering.

Share this post


Link to post
Share on other sites

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