3#ifndef CUSTOMCOLORGL_INCLUDED
4#define CUSTOMCOLORGL_INCLUDED
12namespace GLTutorials {
22 ::Error(
"FindFreeCustomColorIndex",
"gROOT is null");
28 for (
Int_t i = std::max(start, T(1000)),
e = 10000; i <
e; ++i)
29 if (!
gROOT->GetColor(i))
32 ::Error(
"FindFreeCustomColorIndex",
"no index found");
39template <
typename T,
unsigned N>
44 tmp[0] = FindFreeCustomColorIndex<T>();
49 for (; nFound <
N; ++nFound) {
51 if (tmp[nFound] == -1)
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
T FindFreeCustomColorIndex(T start=1000)
unsigned FindFreeCustomColorIndices(T(&indices)[N])
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.