1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     demo_ColorFillProgram.h
4 
5   Copyright (C)2009-2012 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 46365 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef DEMO_COLOR_FILL_PROGRAM_OBJECT_H_
17 #define DEMO_COLOR_FILL_PROGRAM_OBJECT_H_
18 
19 #include "demo/ShaderProgram/demo_ProgramObject.h"
20 
21 namespace demo
22 {
23     /*!
24         :private
25 
26         @brief Shader program class to render polygons by vertex color.
27     */
28 
29     class ColorFillProgram : public ProgramObject
30     {
31     public:
32         /*!
33         :private
34 
35         @brief    Constructor.
36         */
37         ColorFillProgram(void);
38 
39         /*!
40         :private
41 
42         @brief    Destructor.
43         */
44         virtual ~ColorFillProgram(void);
45 
46     public:
47         /*!
48         :private
49 
50         @brief    Performs initialization process for the shader program object.
51         */
52         virtual bool Initialize(const GLuint shaderId);
53 
54         /*!
55         :private
56 
57         @brief    Performs termination process for the shader program object.
58         */
59         virtual bool Finalize(void);
60 
61     public:
62         /*!
63         :private
64 
65         @brief    Uses shader program object.
66         */
67         virtual bool Use(void);
68 
69     protected:
70         virtual void InitializeVertexAttributes(void);
71     };
72 
73 }
74 
75 #endif // NN_DEMO_CTR_DEMO_COLOR_FILL_PROGRAM_OBJECT_H_
76