mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 07:34:02 +02:00
move constant to class definition
This commit is contained in:
parent
255a40ce31
commit
bf576e63fe
2 changed files with 4 additions and 4 deletions
|
@ -16,9 +16,11 @@
|
|||
#include "AbstractViewStateInterface.h"
|
||||
|
||||
QString const Line3DOverlay::TYPE = "line3d";
|
||||
static const float DEFAULT_LINE_WIDTH = 0.02f;
|
||||
|
||||
Line3DOverlay::Line3DOverlay() :
|
||||
_geometryCacheID(DependencyManager::get<GeometryCache>()->allocateID())
|
||||
_geometryCacheID(DependencyManager::get<GeometryCache>()->allocateID()),
|
||||
_lineWidth(DEFAULT_LINE_WIDTH)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
|
||||
#include "Base3DOverlay.h"
|
||||
|
||||
static const float DEFAULT_LINE_WIDTH = 0.02f;
|
||||
|
||||
class Line3DOverlay : public Base3DOverlay {
|
||||
Q_OBJECT
|
||||
using Parent = Base3DOverlay;
|
||||
|
@ -72,7 +70,7 @@ private:
|
|||
glm::vec3 _direction; // in parent frame
|
||||
float _length { 1.0 }; // in parent frame
|
||||
|
||||
float _lineWidth { DEFAULT_LINE_WIDTH };
|
||||
float _lineWidth { 0.0 };
|
||||
float _glow { 0.0 };
|
||||
int _geometryCacheID;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue