| Line |
Branch |
Exec |
Source |
| 1 |
|
|
// Copyright (c) 2017, Joseph Mirabel |
| 2 |
|
|
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr) |
| 3 |
|
|
// |
| 4 |
|
|
// This file is part of gepetto-viewer. |
| 5 |
|
|
// gepetto-viewer is free software: you can redistribute it |
| 6 |
|
|
// and/or modify it under the terms of the GNU Lesser General Public |
| 7 |
|
|
// License as published by the Free Software Foundation, either version |
| 8 |
|
|
// 3 of the License, or (at your option) any later version. |
| 9 |
|
|
// |
| 10 |
|
|
// gepetto-viewer is distributed in the hope that it will be |
| 11 |
|
|
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty |
| 12 |
|
|
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
|
|
// General Lesser Public License for more details. You should have |
| 14 |
|
|
// received a copy of the GNU Lesser General Public License along with |
| 15 |
|
|
// gepetto-viewer. If not, see <http://www.gnu.org/licenses/>. |
| 16 |
|
|
|
| 17 |
|
|
#include <../src/internal/configuration.hh> |
| 18 |
|
|
|
| 19 |
|
|
namespace gepetto { |
| 20 |
|
✗ |
osg::ref_ptr<osgText::Font> defaultFont () |
| 21 |
|
|
{ |
| 22 |
|
✗ |
static osg::ref_ptr<osgText::Font> font = osgText::readFontFile("/opt/openrobots/share/gepetto-viewer/fonts/arial.ttf"); |
| 23 |
|
✗ |
return font; |
| 24 |
|
|
} |
| 25 |
|
|
|
| 26 |
|
|
void (osg::ShapeDrawable::*drawableSetColor) (const osgVector4&) = &osg::ShapeDrawable::setColor; |
| 27 |
|
|
const osgVector4& (osg::ShapeDrawable::*drawableGetColor) () const = &osg::ShapeDrawable::getColor; |
| 28 |
|
|
} /* namespace gepetto */ |
| 29 |
|
|
|