What ways are there that I can get my program to show me the results of my cos and sin calculations?
What ways are there that I can get my program to show me the results of my cos and sin calculations?
Output them somewhere?Originally Posted by bumfluff
If it's a full-screen app, preferably to the screen or to a file.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Yeah, I don't actually know how to draw text to the screen.
I believe D3DX contains some utilities for that.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
I am afraid that doesn't really help. I don't really know anything about outputting text to the screen in Direct X or Win32. Any help on this matter is appreciated.
Creating text with D3D, retrieved after an intense 2 minutes googling (Google).Originally Posted by bumfluff
Or you could just create a plain text file and output everything to that (probably a better idea if you have no clue).
Thanks for that, how do I get the function to output an integer as its argument is a string?
Ok I have it drawing text and I have my integer as a std::string but it still won't accept that and it wants an LPCSTR string instead. How do I turn my string into this?
c_str()
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law