ZappoManCR feedbackddd551013 years agoHistory
1025 lines · 40.6 KB · C++
RawDownload
                // redraw!        setupNewVoxelsForDrawing();  // do we even need to do this? Or will the next network receive kick in?    }}; VoxelNode* VoxelSystem::getVoxelAt(float x, float y, float z, float s) const {     return _tree->getVoxelAt(x, y, z, s); }; void VoxelSystem::createVoxel(float x, float y, float z, float s, unsigned char red, unsigned char green, unsigned char blue) {     //printLog("VoxelSystem::createVoxel(%f,%f,%f,%f)\n",x,y,z,s);    _tree->createVoxel(x, y, z, s, red, green, blue);     setupNewVoxelsForDrawing(); }; void VoxelSystem::createLine(glm::vec3 point1, glm::vec3 point2, float unitSize, rgbColor color) {     _tree->createLine(point1, point2, unitSize, color);     setupNewVoxelsForDrawing(); }; void VoxelSystem::createSphere(float r,float xc, float yc, float zc, float s, bool solid, creationMode mode, bool debug) {     _tree->createSphere(r, xc, yc, zc, s, solid, mode, debug);     setupNewVoxelsForDrawing(); };

Lines 1001–1025 of 1025. Previous lines