• Advertisement

Archived

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

DirectX Macro Question

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

Using Direct3D in VC++ you have a few macros for working with color. Examples D3DRGB() & D3DRGBA(). Is there a method in the VB side of things to handle this functionality. Thanks

Share this post


Link to post
Share on other sites
Advertisement
Gday,

Use the Directx7 object and call

dx.CreateColourRGB or dx.CreateColourRGBA

passing down values as single in the range 0 to 1 for each argument

Brett

Share this post


Link to post
Share on other sites

  • Advertisement