mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 19:13:38 +02:00
Update parameter to const
This commit is contained in:
parent
8252b01e30
commit
ea5dfbdf28
2 changed files with 3 additions and 3 deletions
|
@ -152,7 +152,7 @@ void NodeBounds::draw() {
|
|||
}
|
||||
}
|
||||
|
||||
void NodeBounds::drawNodeBorder(glm::vec3 center, float scale, float red, float green, float blue) {
|
||||
void NodeBounds::drawNodeBorder(const glm::vec3& center, float scale, float red, float green, float blue) {
|
||||
glPushMatrix();
|
||||
|
||||
glTranslatef(center.x, center.y, center.z);
|
||||
|
@ -221,7 +221,7 @@ void NodeBounds::drawOverlay() {
|
|||
const int BACKGROUND_OFFSET_Y = -20;
|
||||
const int BACKGROUND_BEVEL = 3;
|
||||
|
||||
char* text = _overlayText.toLocal8Bit().data();
|
||||
char* text = _overlayText.toLatin1().data();
|
||||
int mouseX = application->getMouseX(),
|
||||
mouseY = application->getMouseY(),
|
||||
textWidth = widthText(TEXT_SCALE, 0, text);
|
||||
|
|
|
@ -34,7 +34,7 @@ public slots:
|
|||
void setShowParticleNodes(bool value) { _showParticleNodes = value; }
|
||||
|
||||
protected:
|
||||
void drawNodeBorder(glm::vec3 center, float scale, float red, float green, float blue);
|
||||
void drawNodeBorder(const glm::vec3& center, float scale, float red, float green, float blue);
|
||||
void getColorForNodeType(NodeType_t nodeType, float& red, float& green, float& blue);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue