Advertisement Jump to content
Sign in to follow this  
EvilNando

question about DX nomenclatures

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

Hi I'm reading some directx books focusing right now on directx vetors heres the thing I dont understand typedef struct _D3DVECTOR { float x; float y; float z; } D3DVECTOR; why the need of having the symbol _D3DVECTOR where having only typedef struct D3DVECTOR will work? (besides it also provides clearer code) sorry about asking such a noob question but I'm really curious about this

Share this post


Link to post
Share on other sites
Advertisement
That's how struct declarations looked in C. They're compatible with both C and C++.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!