Rune Engine  Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
color.h
1 
9 #pragma once
10 
11 #ifndef COLOR_H_DEFINED
12 #define COLOR_H_DEFINED
13 
14 #include "core.h"
15 
16 namespace rune{
17 
18 class RUNE_ENGINE Color
19 {
20 public:
22  unsigned char red;
24  unsigned char green;
26  unsigned char blue;
28  unsigned char alpha;
29 
31  Color(double red = 255, double green = 255, double blue = 255, double alpha = 255);
32 
34  static Color Red;
36  static Color Green;
38  static Color Blue;
40  static Color Black;
42  static Color White;
44  static Color Yellow;
46  static Color Magenta;
48  static Color Cyan;
51 
52 };
53 }
54 
55 #endif
rune::Color::green
unsigned char green
The Green component.
Definition: color.h:24
rune::Color::Blue
static Color Blue
Blue predefined color.
Definition: color.h:38
rune::Color::Cyan
static Color Cyan
Cyan predefined color.
Definition: color.h:48
rune::Color::Red
static Color Red
Red predefined color.
Definition: color.h:34
rune::Color::White
static Color White
White predefined color.
Definition: color.h:42
rune::Color::Magenta
static Color Magenta
Magenta predefined color.
Definition: color.h:46
rune::Color::Green
static Color Green
Green predefined color.
Definition: color.h:36
rune::Color::blue
unsigned char blue
The Blue component.
Definition: color.h:26
rune::Color::red
unsigned char red
The Red component.
Definition: color.h:22
rune::Color
A color object to be applied to drawable objects.
Definition: color.h:19
rune::Color::Black
static Color Black
Black predefined color.
Definition: color.h:40
rune
The main namespace to be used for interfacing with the engine.
Definition: animator.h:21
rune::Color::alpha
unsigned char alpha
The Opacity Component.
Definition: color.h:28
rune::Color::Transparent
static Color Transparent
Transparent predefined color.
Definition: color.h:50
rune::Color::Yellow
static Color Yellow
Yellow predefined color.
Definition: color.h:44