Text on Graphics screen updated
I've posted a message a few days ago about putting text on a graphic screen using Borland C++ 3.1. Here's my problem:
I've drawn an area on the screen (I am using graphics.h) using the following functions:
This puts up a box on the upper right side of the screen. I want to display text in the 3d box. The problem is that the text is not a string, but values from a structure. In another version of the program (a purely text version), I used cout to display the data on the screen like this:
for (int z=0; z<num_vertices; z++)
vertex is an array.
I've tried using outtextxy( ), but it only outputs a string. I want to write several lines in the box that display the current array values. As the program runs and the values change, I plan on redrawing over the 3d bar and re-writting the new text. Any suggestions?