Free Electron
NoiseShade.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_NoiseShade_h__
8 #define __shader_NoiseShade_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Simple test shader to add noise
16 
17  @ingroup shader
18 *//***************************************************************************/
19 class FE_DL_EXPORT NoiseShade:
20  public ShaderCommon,
21  public Initialize<NoiseShade>
22 {
23  public:
24 
25  NoiseShade(void) {}
26 virtual ~NoiseShade(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_channelN;
36  I32 m_channelAmplitude;
37 };
38 
39 } /* namespace ext */
40 } /* namespace fe */
41 
42 #endif /* __shader_NoiseShade_h__ */
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Simple test shader to add noise.
Definition: NoiseShade.h:19
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Common Shader methods.
Definition: ShaderCommon.h:19