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
}
stdafx.h
標準のシステム インクルード ファイルのインクルード ファイル、または 参照回数が多く、かつあまり変更さ...
Deeangband::Color::b
int b
青
Definition:
Color.h:27
Deeangband::Color::r
int r
赤
Definition:
Color.h:25
Deeangband::Color::a
int a
アルファチャンネル
Definition:
Color.h:28
Deeangband::Color::g
int g
緑
Definition:
Color.h:26
Color.h
色定義のプロトタイプ
Deeangband
Color.cpp
2014年06月25日(水) 23時41分55秒作成 - D'angband / 構成:
1.8.7