D'angband  0.0.0
Deeangband
 全て クラス 名前空間 ファイル 関数 変数 型定義 列挙型 列挙値 フレンド マクロ定義 ページ
Color.cpp
[詳解]
1 
9 #include "stdafx.h"
10 #include "Color.h"
11 
12 namespace Deeangband
13 {
14 
15  Color::Color(int r, int g, int b, int a)
16  {
17  this->r = r;
18  this->g = g;
19  this->b = b;
20  this->a = a;
21  }
22 
23  Color::Color(void)
24  {
25  this->r = 0;
26  this->g = 0;
27  this->b = 0;
28  this->a = 255;
29  }
30 
31  Color::‾Color(void)
32  {
33  }
34 
35  int Color::GetRed(void)
36  {
37  return this->r;
38  }
39 
40  int Color::GetGreen(void)
41  {
42  return this->g;
43  }
44 
45  int Color::GetBlue(void)
46  {
47  return this->b;
48  }
49 
50  int Color::GetAlpha(void)
51  {
52  return this->a;
53  }
54 
55  void Color::SetColor(int r, int g, int b, int a)
56  {
57  this->r = r;
58  this->g = g;
59  this->b = b;
60  this->a = a;
61  }
62 
63 }
標準のシステム インクルード ファイルのインクルード ファイル、または 参照回数が多く、かつあまり変更さ...
int b
Definition: Color.h:27
int r
Definition: Color.h:25
int a
アルファチャンネル
Definition: Color.h:28
int g
Definition: Color.h:26
色定義のプロトタイプ