Skip to content
Snippets Groups Projects
Commit cac5020c authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

ColorMap uses the right types

parent 224a7dcb
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,8 @@
#include <QColor>
#include <QDebug>
#include <gepetto/viewer/config-osg.h>
namespace gepetto {
namespace gui {
class ColorMap {
......@@ -29,7 +31,7 @@ namespace gepetto {
return ColorMap::interpolate(mask_, remap (index));
}
void getColor (std::size_t index, float color[4]) const {
void getColor (std::size_t index, osgVector4 color) const {
QColor c = getColor(index);
color[0] = (float)c.redF();
color[1] = (float)c.greenF();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment