Jump to content
  • Advertisement
Sign in to follow this  

FVF has order?

This topic is 4553 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
Advertisement
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 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?

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
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!