annotate src/modules/graphics/Graphics.cpp @ 109:6aefdc6e72fb

Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
author rude
date Sat, 10 Oct 2009 11:11:04 +0200
parents
children 112a9eab2db6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
1 /**
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
2 * Copyright (c) 2006-2009 LOVE Development Team
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
3 *
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
4 * This software is provided 'as-is', without any express or implied
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
5 * warranty. In no event will the authors be held liable for any damages
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
6 * arising from the use of this software.
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
7 *
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
8 * Permission is granted to anyone to use this software for any purpose,
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
9 * including commercial applications, and to alter it and redistribute it
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
10 * freely, subject to the following restrictions:
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
11 *
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
12 * 1. The origin of this software must not be misrepresented; you must not
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
13 * claim that you wrote the original software. If you use this software
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
14 * in a product, an acknowledgment in the product documentation would be
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
15 * appreciated but is not required.
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
16 * 2. Altered source versions must be plainly marked as such, and must not be
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
17 * misrepresented as being the original software.
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
18 * 3. This notice may not be removed or altered from any source distribution.
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
19 **/
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
20
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
21 #include "Graphics.h"
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
22
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
23 namespace love
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
24 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
25 namespace graphics
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
26 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
27 Graphics::~Graphics()
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
28 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
29 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
30
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
31 bool Graphics::getConstant(const char * in, DrawMode & out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
32 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
33 return drawModes.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
34 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
35
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
36 bool Graphics::getConstant(DrawMode in, const char *& out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
37 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
38 return drawModes.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
39 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
40
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
41 bool Graphics::getConstant(const char * in, AlignMode & out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
42 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
43 return alignModes.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
44 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
45
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
46 bool Graphics::getConstant(AlignMode in, const char *& out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
47 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
48 return alignModes.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
49 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
50
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
51 bool Graphics::getConstant(const char * in, BlendMode & out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
52 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
53 return blendModes.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
54 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
55
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
56 bool Graphics::getConstant(BlendMode in, const char *& out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
57 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
58 return blendModes.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
59 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
60
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
61 bool Graphics::getConstant(const char * in, ColorMode & out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
62 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
63 return colorModes.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
64 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
65
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
66 bool Graphics::getConstant(ColorMode in, const char *& out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
67 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
68 return colorModes.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
69 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
70
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
71 bool Graphics::getConstant(const char * in, LineStyle & out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
72 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
73 return lineStyles.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
74 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
75
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
76 bool Graphics::getConstant(LineStyle in, const char *& out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
77 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
78 return lineStyles.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
79 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
80
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
81 bool Graphics::getConstant(const char * in, PointStyle & out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
82 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
83 return pointStyles.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
84 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
85
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
86 bool Graphics::getConstant(PointStyle in, const char *& out)
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
87 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
88 return pointStyles.find(in, out);
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
89 }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
90
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
91 StringMap<Graphics::DrawMode, Graphics::DRAW_MAX_ENUM>::Entry Graphics::drawModeEntries[] =
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
92 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
93 { "line", Graphics::DRAW_LINE },
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
94 { "fill", Graphics::DRAW_FILL },
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
95 };
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
96
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
97 StringMap<Graphics::DrawMode, Graphics::DRAW_MAX_ENUM> Graphics::drawModes(Graphics::drawModeEntries, sizeof(Graphics::drawModeEntries));
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
98
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
99 StringMap<Graphics::AlignMode, Graphics::ALIGN_MAX_ENUM>::Entry Graphics::alignModeEntries[] =
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
100 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
101 { "left", Graphics::ALIGN_LEFT },
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
102 { "right", Graphics::ALIGN_RIGHT },
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
103 { "center", Graphics::ALIGN_CENTER },
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
104 };
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
105
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
106 StringMap<Graphics::AlignMode, Graphics::ALIGN_MAX_ENUM> Graphics::alignModes(Graphics::alignModeEntries, sizeof(Graphics::alignModeEntries));
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
107
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
108 StringMap<Graphics::BlendMode, Graphics::BLEND_MAX_ENUM>::Entry Graphics::blendModeEntries[] =
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
109 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
110 { "alpha", Graphics::BLEND_ALPHA },
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
111 { "additive", Graphics::BLEND_ADDITIVE },
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
112 };
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
113
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
114 StringMap<Graphics::BlendMode, Graphics::BLEND_MAX_ENUM> Graphics::blendModes(Graphics::blendModeEntries, sizeof(Graphics::blendModeEntries));
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
115
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
116 StringMap<Graphics::ColorMode, Graphics::COLOR_MAX_ENUM>::Entry Graphics::colorModeEntries[] =
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
117 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
118 { "replace", Graphics::COLOR_REPLACE },
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
119 { "modulate", Graphics::COLOR_MODULATE },
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
120 };
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
121
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
122 StringMap<Graphics::ColorMode, Graphics::COLOR_MAX_ENUM> Graphics::colorModes(Graphics::colorModeEntries, sizeof(Graphics::colorModeEntries));
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
123
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
124 StringMap<Graphics::LineStyle, Graphics::LINE_MAX_ENUM>::Entry Graphics::lineStyleEntries[] =
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
125 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
126 { "smooth", Graphics::LINE_SMOOTH },
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
127 { "rough", Graphics::LINE_ROUGH }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
128 };
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
129
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
130 StringMap<Graphics::LineStyle, Graphics::LINE_MAX_ENUM> Graphics::lineStyles(Graphics::lineStyleEntries, sizeof(Graphics::lineStyleEntries));
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
131
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
132 StringMap<Graphics::PointStyle, Graphics::POINT_MAX_ENUM>::Entry Graphics::pointStyleEntries[] =
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
133 {
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
134 { "smooth", Graphics::POINT_SMOOTH },
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
135 { "rough", Graphics::POINT_ROUGH }
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
136 };
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
137
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
138 StringMap<Graphics::PointStyle, Graphics::POINT_MAX_ENUM> Graphics::pointStyles(Graphics::pointStyleEntries, sizeof(Graphics::pointStyleEntries));
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
139
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
140 } // graphics
6aefdc6e72fb Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
rude
parents:
diff changeset
141 } // love