Jump to content
  • Advertisement

Archived

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

revans

DirectX Macro Question

This topic is 6962 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
×

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!