Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


D3DX vs D3D

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

Direct3D is a graphics API, allows you to create graphics apps.

D3DX is a helper library, that means it contains a set of objects, d3d functions, math functions and macros that allows you to work with Direct3D easier (thus saving your time).

You can do anything using D3D, but that''d require you to write all your algorithms from scratch : Math library (matrices and vertices) texture management (loading) functions, mesh objects, ...etc

Share this post

Link to post
Share on other sites
Assuming you''re a VC++ (not VB) programmer :

#define D3DXToRadian(x) ((x * D3DX_PI)/180)

That''s a macro (A #define with parameters)

A macro can be multi-line

#define MultiLine(x,y,z) x += 4 \
y += 8 \
z += 10

(Psst, This slash might be the wrong slash. I don''t exactly recall, since I don''t use macros/multiline macros most of the time)

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!