Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::gfx::Colorf Class Reference

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

Definition at line 82 of file Color.h.

kge::gfx::Colorf::Colorf ( int  Red,
int  Green,
int  Blue 
)
inline

Sazande ba 3 ta int (RGB) ke bayad 0 ta 255 bashand.

Parameters
RedSet kardane range ghermez 0 ta 255.
GreenSet kardane range sabz 0 ta 255.
BlueSet 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

Definition at line 99 of file Color.h.

References a, b, c, g, and r.

void kge::gfx::Colorf::Set ( float  R,
float  G,
float  B 
)
inline

Definition at line 110 of file Color.h.

References b, g, and r.

void kge::gfx::Colorf::Set ( float  R,
float  G,
float  B,
float  A 
)
inline

Definition at line 117 of file Color.h.

References a, b, g, and r.

Member Data Documentation

union { ... }
float kge::gfx::Colorf::a

Blue.

Definition at line 130 of file Color.h.

Referenced by Colorf(), operator*(), and Set().

float kge::gfx::Colorf::b

Green.

Definition at line 130 of file Color.h.

Referenced by Colorf(), operator*(), and Set().

float kge::gfx::Colorf::c[4]

Definition at line 127 of file Color.h.

Referenced by operator*().

float kge::gfx::Colorf::g

Red.

Definition at line 130 of file Color.h.

Referenced by Colorf(), operator*(), and Set().

float kge::gfx::Colorf::r

Definition at line 130 of file Color.h.

Referenced by Colorf(), operator*(), and Set().


The documentation for this class was generated from the following file: