File indexing completed on 2024-04-28 15:35:16
0001 /*************************************************************************** 0002 * Copyright (C) 2004 by Tomas Mecir * 0003 * kmuddy@kmuddy.org * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU Library General Public License as * 0007 * published by the Free Software Foundation; either version 2 of the * 0008 * License, or (at your option) any later version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, * 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0013 * GNU Library General Public License for more details. * 0014 ***************************************************************************/ 0015 0016 #ifndef RGBOPS_H 0017 #define RGBOPS_H 0018 0019 //some struct-operators that weren't defined by default (probably due to RGB being defined 0020 // in extern "C" ... 0021 0022 inline bool operator== (RGB a, RGB b) 0023 { 0024 return ((a.r == b.r) && (a.g == b.g) && (a.b == b.b)) ? true : false; 0025 } 0026 0027 #endif