History

cleanup of packet header constants

ZappoMan committed 13 years ago

Commit 74802831 parent e6a464711 files · +38 −23Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 11 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+3−3
@@ -113,15 +113,15 @@ void VoxelSystem::parseData(void *data, int size) { · 112 unmodified lines
113 unsigned char *voxelData = (unsigned char *) data + 1;113 unsigned char *voxelData = (unsigned char *) data + 1;
114 114
115 switch(command) {115 switch(command) {
116 case 'V':116 case PACKET_HEADER_VOXEL_DATA:
117 // ask the VoxelTree to read the bitstream into the tree117 // ask the VoxelTree to read the bitstream into the tree
118 tree->readBitstreamToTree(voxelData, size - 1);118 tree->readBitstreamToTree(voxelData, size - 1);
119 break;119 break;
120 case 'R':120 case PACKET_HEADER_ERASE_VOXEL:
121 // ask the tree to read the "remove" bitstream121 // ask the tree to read the "remove" bitstream
122 tree->processRemoveVoxelBitstream((unsigned char*)data,size);122 tree->processRemoveVoxelBitstream((unsigned char*)data,size);
123 break;123 break;
124 case 'Z':124 case PACKET_HEADER_Z_COMMAND:
125 125
126 // the Z command is a special command that allows the sender to send high level semantic126 // the Z command is a special command that allows the sender to send high level semantic
127 // requests, like erase all, or add sphere scene, different receivers may handle these 127 // requests, like erase all, or add sphere scene, different receivers may handle these