History

added basic particle server renamed voxel packet names to fit standard

ZappoMan committed 12 years ago

Commit 821b4901 parent aec0e9f2 files · +9 −9Browse files

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

Unified · Split

interface/src/Application.cpp+6−6
@@ -1478,7 +1478,7 @@ void Application::removeVoxel(glm::vec3 position, · 1477 unmodified lines
14781478 voxel.y = position.y / TREE_SCALE;
14791479 voxel.z = position.z / TREE_SCALE;
14801480 voxel.s = scale / TREE_SCALE;
1481− _voxelEditSender.sendVoxelEditMessage(PACKET_TYPE_ERASE_VOXEL, voxel);
1481+ _voxelEditSender.sendVoxelEditMessage(PACKET_TYPE_VOXEL_ERASE, voxel);
14821482
14831483 // delete it locally to see the effect immediately (and in case no voxel server is present)
14841484 _voxels.deleteVoxelAt(voxel.x, voxel.y, voxel.z, voxel.s);
@@ -1498,7 +1498,7 @@ void Application::makeVoxel(glm::vec3 position, · 13 unmodified lines
14981498 voxel.red = red;
14991499 voxel.green = green;
15001500 voxel.blue = blue;
1501− PACKET_TYPE message = isDestructive ? PACKET_TYPE_SET_VOXEL_DESTRUCTIVE : PACKET_TYPE_SET_VOXEL;
1501+ PACKET_TYPE message = isDestructive ? PACKET_TYPE_VOXEL_SET_DESTRUCTIVE : PACKET_TYPE_VOXEL_SET;
15021502 _voxelEditSender.sendVoxelEditMessage(message, voxel);
15031503
15041504 // create the voxel locally so it appears immediately
@@ -1580,7 +1580,7 @@ bool Application::sendVoxelsOperation(OctreeElement* element, void* extraData) { · 75 unmodified lines
15801580 codeColorBuffer[bytesInCode + RED_INDEX] = voxel->getColor()[RED_INDEX];
15811581 codeColorBuffer[bytesInCode + GREEN_INDEX] = voxel->getColor()[GREEN_INDEX];
15821582 codeColorBuffer[bytesInCode + BLUE_INDEX] = voxel->getColor()[BLUE_INDEX];
1583− getInstance()->_voxelEditSender.queueVoxelEditMessage(PACKET_TYPE_SET_VOXEL_DESTRUCTIVE,
1583+ getInstance()->_voxelEditSender.queueVoxelEditMessage(PACKET_TYPE_VOXEL_SET_DESTRUCTIVE,
15841584 codeColorBuffer, codeAndColorLength);
15851585
15861586 delete[] codeColorBuffer;
@@ -3977,7 +3977,7 @@ bool Application::maybeEditVoxelUnderCursor() { · 2390 unmodified lines
39773977 void Application::deleteVoxelUnderCursor() {
39783978 if (_mouseVoxel.s != 0) {
39793979 // sending delete to the server is sufficient, server will send new version so we see updates soon enough
3980− _voxelEditSender.sendVoxelEditMessage(PACKET_TYPE_ERASE_VOXEL, _mouseVoxel);
3980+ _voxelEditSender.sendVoxelEditMessage(PACKET_TYPE_VOXEL_ERASE, _mouseVoxel);
39813981
39823982 // delete it locally to see the effect immediately (and in case no voxel server is present)
39833983 _voxels.deleteVoxelAt(_mouseVoxel.x, _mouseVoxel.y, _mouseVoxel.z, _mouseVoxel.s);
@@ -4235,8 +4235,8 @@ void* Application::networkReceive(void* args) { · 251 unmodified lines
42354235 app->_audio.addReceivedAudioToBuffer(app->_incomingPacket, bytesReceived);
42364236 break;
42374237 case PACKET_TYPE_VOXEL_DATA:
4238− case PACKET_TYPE_ERASE_VOXEL:
4239− case PACKET_TYPE_VOXEL_STATS:
4238+ case PACKET_TYPE_VOXEL_ERASE:
4239+ case PACKET_TYPE_OCTREE_STATS:
42404240 case PACKET_TYPE_ENVIRONMENT_DATA: {
42414241 PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings),
42424242 "Application::networkReceive()... _voxelProcessor.queueReceivedPacket()");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t