Showing the changes to interface/src/main.cpp (1 of 4 files). Show all
Unified · Split
| @@ -98,6 +98,7 @@ Head myHead; // The rendered head of oneself · 97 unmodified lines | ||
| 98 | 98 | |
| 99 | 99 | char starFile[] = "https://s3-us-west-1.amazonaws.com/highfidelity/stars.txt"; |
| 100 | 100 | FieldOfView fov; |
| 101 | + | |
| 101 | 102 | Stars stars; |
| 102 | 103 | #ifdef STARFIELD_KEYS |
| 103 | 104 | int starsTiles = 20; |
| @@ -255,10 +256,12 @@ void display_stats(void) · 151 unmodified lines | ||
| 255 | 256 | |
| 256 | 257 | char legend2[] = "* - toggle stars, & - toggle paint mode"; |
| 257 | 258 | drawtext(10, 32, 0.10f, 0, 1.0, 0, legend2); |
| 259 | + | |
| 260 | + glm::vec3 headPos = myHead.getPos(); | |
| 258 | 261 | |
| 259 | 262 | char stats[200]; |
| 260 | − sprintf(stats, "FPS = %3.0f Pkts/s = %d Bytes/s = %d ", | |
| 261 | − FPS, packets_per_second, bytes_per_second); | |
| 263 | + sprintf(stats, "FPS = %3.0f Pkts/s = %d Bytes/s = %d Head(x,y,z)=( %f , %f , %f )", | |
| 264 | + FPS, packets_per_second, bytes_per_second, headPos.x,headPos.y,headPos.z); | |
| 262 | 265 | drawtext(10, 49, 0.10f, 0, 1.0, 0, stats); |
| 263 | 266 | if (serialPort.active) { |
| 264 | 267 | sprintf(stats, "ADC samples = %d, LED = %d", |
| @@ -490,7 +493,7 @@ void simulateHead(float frametime) · 225 unmodified lines | ||
| 490 | 493 | char broadcast_string[MAX_BROADCAST_STRING]; |
| 491 | 494 | int broadcast_bytes = myHead.getBroadcastData(broadcast_string); |
| 492 | 495 | agentList.broadcastToAgents(broadcast_string, broadcast_bytes,AgentList::AGENTS_OF_TYPE_VOXEL_AND_INTERFACE); |
| 493 | − | |
| 496 | + | |
| 494 | 497 | // If I'm in paint mode, send a voxel out to VOXEL server agents. |
| 495 | 498 | if (::paintOn) { |
| 496 | 499 | |