FVF has order?

Started by
3 comments, last by darookie 18 years, 4 months ago
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.......
Advertisement
Just look it up here. The order is apparently fixed.
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).
Dustin Franklin ( circlesoft :: KBase :: Mystic GD :: ApolloNL )
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?
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.

This topic is closed to new replies.

Advertisement