D3DX vs D3D

Started by
2 comments, last by Funkodysse 22 years, 5 months ago
D3DX vs D3D , whats the difference?
Advertisement
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

thanks, whats a macro?
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)

This topic is closed to new replies.

Advertisement