Skip to content

Commit

Permalink
:Keep old ColorWheel interface and add extra method to implement
Browse files Browse the repository at this point in the history
ColorWheel interface.
  • Loading branch information
tobiasmaier committed Jul 19, 2022
1 parent 5118b22 commit 7f9fa2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/pango_opengl/include/pangolin/gl/colour.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,17 @@ class ColourWheel : public ColourProvider
}

/// Return next unique colour from ColourWheel.
inline Colour GetNext() override
inline Colour GetUniqueColour()
{
return GetColourBin(unique_colours++);
}

/// Return next unique colour from ColourWheel for ColorProvider.
inline Colour GetNext() override
{
return GetUniqueColour();
}

/// Reset colour wheel counter to initial state
inline void Reset() override {
unique_colours = 0;
Expand Down

0 comments on commit 7f9fa2c

Please sign in to comment.