Free Electron
ColorShade.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __shader_ColorShade_h__
8 #define __shader_ColorShade_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Simple test shader to set color
16 
17  @ingroup shader
18 *//***************************************************************************/
19 class FE_DL_EXPORT ColorShade:
20  public ShaderCommon,
21  public Initialize<ColorShade>
22 {
23  public:
24 
25  ColorShade(void) {}
26 virtual ~ColorShade(void) {}
27 
28  void initialize(void);
29 
30  //* As ShaderI
31 virtual void update(void);
32 virtual void evaluate(sp<ShaderVariablesI> a_spShaderVariablesI) const;
33 
34  private:
35  I32 m_channelColor;
36 };
37 
38 } /* namespace ext */
39 } /* namespace fe */
40 
41 #endif /* __shader_ColorShade_h__ */
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Simple test shader to set color.
Definition: ColorShade.h:19
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Common Shader methods.
Definition: ShaderCommon.h:19