1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     demo_Body.cpp
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 #include "demo/Body/demo_Body.h"
17 
18 namespace demo
19 {
20     /* ------------------------------------------------------------------------
21         Body class  member function
22         ------------------------------------------------------------------------ */
23 
Body(void)24     Body::Body(void) :
25     TrianglesRenderData()
26     {
27     }
28 
~Body()29     Body::~Body()
30     {
31     }
32 
SetColor(const GLfloat red,const GLfloat green,const GLfloat blue)33     void Body::SetColor(const GLfloat red, const GLfloat green, const GLfloat blue)
34     {
35         demo::TrianglesRenderData::SetColor(red, green, blue);
36         UpdateBuffers();
37     }
38 
SetColor(const GLfloat red,const GLfloat green,const GLfloat blue,const GLfloat alpha)39     void Body::SetColor(const GLfloat red, const GLfloat green, const GLfloat blue, const GLfloat alpha)
40     {
41         demo::TrianglesRenderData::SetColor(red, green, blue, alpha);
42         UpdateBuffers();
43     }
44 
45 }
46