LPCGame
A Simple 2d Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Pages
color.h
1
#ifndef COLOR_H
2
#define COLOR_H
3
4
#include <SDL.h>
5
#include "external/json/json.h"
6
8
12
class
Color
{
13
public
:
15
Color
();
22
Color
(
int
r,
int
g,
int
b);
23
~
Color
();
30
void
Set
(
int
r,
int
g,
int
b);
32
SDL_Color
Get
()
const
;
34
int
R
()
const
;
36
void
R
(
int
r);
38
int
G
()
const
;
40
void
G
(
int
g);
42
int
B
()
const
;
44
void
B
(
int
b);
49
Json::Value
Save
()
const
;
54
void
Load
(
Json::Value
val);
56
bool
operator ==
(
const
Color
&c)
const
;
57
operator
std::string()
const
;
58
59
private
:
60
SDL_Color mColor;
61
};
62
63
#endif
Users
Will
Documents
Programs
LPCGame
src
core
color.h
Generated on Tue Jan 29 2013 18:58:09 for LPCGame by
1.8.2