mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
removed unused highlight voxel
This commit is contained in:
parent
37472c201c
commit
9d5e33d75d
2 changed files with 0 additions and 28 deletions
|
@ -139,7 +139,6 @@ Application::Application(int& argc, char** argv, timeval &startup_time) :
|
||||||
_touchAvgY(0.0f),
|
_touchAvgY(0.0f),
|
||||||
_isTouchPressed(false),
|
_isTouchPressed(false),
|
||||||
_mousePressed(false),
|
_mousePressed(false),
|
||||||
_isHighlightVoxel(false),
|
|
||||||
_chatEntryOn(false),
|
_chatEntryOn(false),
|
||||||
_audio(&_audioScope, STARTUP_JITTER_SAMPLES),
|
_audio(&_audioScope, STARTUP_JITTER_SAMPLES),
|
||||||
_enableProcessVoxelsThread(true),
|
_enableProcessVoxelsThread(true),
|
||||||
|
@ -1611,20 +1610,6 @@ bool Application::isLookingAtMyAvatar(Avatar* avatar) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::renderHighlightVoxel(VoxelDetail voxel) {
|
|
||||||
glDisable(GL_LIGHTING);
|
|
||||||
glPushMatrix();
|
|
||||||
glScalef(TREE_SCALE, TREE_SCALE, TREE_SCALE);
|
|
||||||
const float EDGE_EXPAND = 1.02f;
|
|
||||||
glColor3ub(voxel.red + 128, voxel.green + 128, voxel.blue + 128);
|
|
||||||
glTranslatef(voxel.x + voxel.s * 0.5f,
|
|
||||||
voxel.y + voxel.s * 0.5f,
|
|
||||||
voxel.z + voxel.s * 0.5f);
|
|
||||||
glLineWidth(2.0f);
|
|
||||||
glutWireCube(voxel.s * EDGE_EXPAND);
|
|
||||||
glPopMatrix();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Application::updateMouseRay() {
|
void Application::updateMouseRay() {
|
||||||
|
|
||||||
bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);
|
bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);
|
||||||
|
@ -2377,11 +2362,6 @@ void Application::displaySide(Camera& whichCamera, bool selfAvatarOnly) {
|
||||||
|
|
||||||
// restore default, white specular
|
// restore default, white specular
|
||||||
glMaterialfv(GL_FRONT, GL_SPECULAR, WHITE_SPECULAR_COLOR);
|
glMaterialfv(GL_FRONT, GL_SPECULAR, WHITE_SPECULAR_COLOR);
|
||||||
|
|
||||||
// Render the highlighted voxel
|
|
||||||
if (_isHighlightVoxel) {
|
|
||||||
renderHighlightVoxel(_highlightVoxel);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool forceRenderMyHead = (whichCamera.getInterpolatedMode() == CAMERA_MODE_MIRROR);
|
bool forceRenderMyHead = (whichCamera.getInterpolatedMode() == CAMERA_MODE_MIRROR);
|
||||||
|
|
|
@ -215,10 +215,6 @@ public:
|
||||||
NodeToJurisdictionMap& getParticleServerJurisdictions() { return _particleServerJurisdictions; }
|
NodeToJurisdictionMap& getParticleServerJurisdictions() { return _particleServerJurisdictions; }
|
||||||
void pasteVoxelsToOctalCode(const unsigned char* octalCodeDestination);
|
void pasteVoxelsToOctalCode(const unsigned char* octalCodeDestination);
|
||||||
|
|
||||||
/// set a voxel which is to be rendered with a highlight
|
|
||||||
void setHighlightVoxel(const VoxelDetail& highlightVoxel) { _highlightVoxel = highlightVoxel; }
|
|
||||||
void setIsHighlightVoxel(bool isHighlightVoxel) { _isHighlightVoxel = isHighlightVoxel; }
|
|
||||||
|
|
||||||
void skipVersion(QString latestVersion);
|
void skipVersion(QString latestVersion);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
@ -307,7 +303,6 @@ private:
|
||||||
bool isLookingAtMyAvatar(Avatar* avatar);
|
bool isLookingAtMyAvatar(Avatar* avatar);
|
||||||
|
|
||||||
void renderLookatIndicator(glm::vec3 pointOfInterest);
|
void renderLookatIndicator(glm::vec3 pointOfInterest);
|
||||||
void renderHighlightVoxel(VoxelDetail voxel);
|
|
||||||
|
|
||||||
void updateMyAvatar(float deltaTime);
|
void updateMyAvatar(float deltaTime);
|
||||||
void queryOctree(NodeType_t serverType, PacketType packetType, NodeToJurisdictionMap& jurisdictions);
|
void queryOctree(NodeType_t serverType, PacketType packetType, NodeToJurisdictionMap& jurisdictions);
|
||||||
|
@ -428,9 +423,6 @@ private:
|
||||||
|
|
||||||
bool _mousePressed; // true if mouse has been pressed (clear when finished)
|
bool _mousePressed; // true if mouse has been pressed (clear when finished)
|
||||||
|
|
||||||
VoxelDetail _highlightVoxel;
|
|
||||||
bool _isHighlightVoxel;
|
|
||||||
|
|
||||||
ChatEntry _chatEntry; // chat entry field
|
ChatEntry _chatEntry; // chat entry field
|
||||||
bool _chatEntryOn; // Whether to show the chat entry
|
bool _chatEntryOn; // Whether to show the chat entry
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue