Lumitronix_Iflex_Pro_Workshop
Library to interact with the iFlexPro
NeoShaderNop.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2 NeoShaderNop
3 
4 Written by Michael C. Miller.
5 
6 I invest time and resources providing this open source code,
7 please support me by dontating (see https://github.com/Makuna)
8 
9 -------------------------------------------------------------------------
10 This file is part of the LUMITRONIX_iFlex_Workshop library.
11 
12 LumitronixIFlexBus is free software: you can redistribute it and/or modify
13 it under the terms of the GNU Lesser General Public License as
14 published by the Free Software Foundation, either version 3 of
15 the License, or (at your option) any later version.
16 
17 LumitronixIFlexBus is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU Lesser General Public License for more details.
21 
22 You should have received a copy of the GNU Lesser General Public
23 License along with LumitronixIFlex. If not, see
24 <http://www.gnu.org/licenses/>.
25 -------------------------------------------------------------------------*/
26 #pragma once
27 
28 template<typename T_COLOR_OBJECT> class NeoShaderNop
29 {
30 public:
32  {
33  }
34 
35  bool IsDirty() const
36  {
37  return true;
38  };
39 
40  void Dirty()
41  {
42  };
43 
44  void ResetDirty()
45  {
46  };
47 
48  T_COLOR_OBJECT Apply(uint16_t, T_COLOR_OBJECT color)
49  {
50  return color;
51  };
52 };
53 
Definition: NeoShaderNop.h:29
void Dirty()
Definition: NeoShaderNop.h:40
bool IsDirty() const
Definition: NeoShaderNop.h:35
void ResetDirty()
Definition: NeoShaderNop.h:44
NeoShaderNop()
Definition: NeoShaderNop.h:31
T_COLOR_OBJECT Apply(uint16_t, T_COLOR_OBJECT color)
Definition: NeoShaderNop.h:48