Browse Source

Contain styling of the connection indicator

master
Krisjanis Rijnieks 7 years ago
parent
commit
67609da29b
  1. 8
      example_remote-server/src/TCPServer.cpp

8
example_remote-server/src/TCPServer.cpp

@ -77,10 +77,12 @@ void TCPServer::draw(){
int clientsConnected = 0;
for(auto i = 0; i < numClients; ++i){
if(_tcpServer.isClientConnected(i)){
ofSetColor(0, 255, 0);
ofPushMatrix();
ofTranslate(10, 10);
ofDrawRectangle(clientsConnected * 20, 0, 10, 10);
ofTranslate(10, 10);
ofPushStyle();
ofSetColor(0, 255, 0);
ofDrawRectangle(clientsConnected * 20, 0, 10, 10);
ofPopStyle();
ofPopMatrix();
clientsConnected++;
}

Loading…
Cancel
Save