Jump to content
  • Advertisement

Archived

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

Neen10do

Little help here for a special ed student?

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

hey, i swear im an idiot. ive been trying to figure out how to display my FPS for like 3 days.... i got it to the point that i can display text.... but: 1)i cant pass a double (fps) as the text parameter in the TextOut function.... 2)what is the function call to make the font transparent? thanks! let me be an idiot no more@! i code therefore i am.

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by Neen10do
1)i cant pass a double (fps) as the text parameter in the TextOut function....

2)what is the function call to make the font transparent?



1) Why don''t you use a float instead of a double ?

2) If you''re using the CD3DFont then just change the alpha value of it''s color...




KaMiKaZe

Share this post


Link to post
Share on other sites
Kamikaze, what are you smoking? TextOut doesn''t take a float OR a double.

Neen, in order to print out a float, you''ll first have to write its value into a character string. The function that will help you do that is sprintf(); read up on it.


Don''t listen to me. I''ve had too much coffee.

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!