Skip to content

Commit 7f9fa2c

Browse files
committed
:Keep old ColorWheel interface and add extra method to implement
ColorWheel interface.
1 parent 5118b22 commit 7f9fa2c

File tree

1 file changed

+7
-1
lines changed
  • components/pango_opengl/include/pangolin/gl

1 file changed

+7
-1
lines changed

components/pango_opengl/include/pangolin/gl/colour.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,17 @@ class ColourWheel : public ColourProvider
176176
}
177177

178178
/// Return next unique colour from ColourWheel.
179-
inline Colour GetNext() override
179+
inline Colour GetUniqueColour()
180180
{
181181
return GetColourBin(unique_colours++);
182182
}
183183

184+
/// Return next unique colour from ColourWheel for ColorProvider.
185+
inline Colour GetNext() override
186+
{
187+
return GetUniqueColour();
188+
}
189+
184190
/// Reset colour wheel counter to initial state
185191
inline void Reset() override {
186192
unique_colours = 0;

0 commit comments

Comments
 (0)