In class rang ba 4 float hast.
More...
#include <Color.h>
Public Member Functions |
| Colorf () |
| Sazande (Hich kari Anjam nemidahad.)
|
| Colorf (float R, float G, float B, float A) |
| Colorf (int Red, int Green, int Blue) |
| Sazande ba 3 ta int (RGB) ke bayad 0 ta 255 bashand.
|
Colorf | operator* (float f) const |
void | Set (float R, float G, float B) |
void | Set (float R, float G, float B, float A) |
Public Attributes |
union { |
float c [4] |
struct { |
float r |
float g |
| Red.
|
float b |
| Green.
|
float a |
| Blue.
|
} | |
}; | |
Detailed Description
In class rang ba 4 float hast.
Definition at line 75 of file Color.h.
Constructor & Destructor Documentation
kge::gfx::Colorf::Colorf |
( |
| ) |
|
|
inline |
Sazande (Hich kari Anjam nemidahad.)
Definition at line 80 of file Color.h.
kge::gfx::Colorf::Colorf |
( |
float |
R, |
|
|
float |
G, |
|
|
float |
B, |
|
|
float |
A |
|
) |
| |
|
inline |
kge::gfx::Colorf::Colorf |
( |
int |
Red, |
|
|
int |
Green, |
|
|
int |
Blue |
|
) |
| |
|
inline |
Sazande ba 3 ta int (RGB) ke bayad 0 ta 255 bashand.
- Parameters
-
Red | Set kardane range ghermez 0 ta 255. |
Green | Set kardane range sabz 0 ta 255. |
Blue | Set kardane range Abi 0 ta 255. |
Definition at line 90 of file Color.h.
References a, b, g, and r.
Member Function Documentation
Colorf kge::gfx::Colorf::operator* |
( |
float |
f | ) |
const |
|
inline |
void kge::gfx::Colorf::Set |
( |
float |
R, |
|
|
float |
G, |
|
|
float |
B |
|
) |
| |
|
inline |
void kge::gfx::Colorf::Set |
( |
float |
R, |
|
|
float |
G, |
|
|
float |
B, |
|
|
float |
A |
|
) |
| |
|
inline |
Member Data Documentation
float kge::gfx::Colorf::a |
float kge::gfx::Colorf::b |
float kge::gfx::Colorf::c[4] |
float kge::gfx::Colorf::g |
float kge::gfx::Colorf::r |
The documentation for this class was generated from the following file:
- E:/mycodes/git/kge/Include/gfx/Color.h