comparison src/Modules/Output/Graphics/Devices/GraphicsOutputDevice.cc @ 227:73c6d61440ad

- First add of a lot of graphics code from the old version. Not working yet, not even compiling yet.
author tomwalters
date Fri, 15 Oct 2010 05:40:53 +0000
parents a9cb396529c2
children 82e0dc3dfd16
comparison
equal deleted inserted replaced
226:eaeba1fd41e6 227:73c6d61440ad
16 // limitations under the License. 16 // limitations under the License.
17 17
18 #include "Support/Common.h" 18 #include "Support/Common.h"
19 #include "Modules/Output/Graphics/Devices/GraphicsOutputDevice.h" 19 #include "Modules/Output/Graphics/Devices/GraphicsOutputDevice.h"
20 20
21 namespace aimc { 21 GraphicsOutputDevice::GraphicsOutputDevice(Parameters *pParam) {
22 22 m_pParam = pParam;
23 GraphicsOutputDevice::GraphicsOutputDevice(Parameters *parameters) {
24 parameters_ = parameters;
25 } 23 }
26 24
27 void GraphicsOutputDevice::gVertex3f(float x, 25 void GraphicsOutputDevice::gVertex3f(float x,
28 float y, 26 float y,
29 float z, 27 float z,
30 float r, 28 float r,
31 float g, 29 float g,
32 float b) { 30 float b) {
33 gColor3f(r, g, b); 31 gColor3f(r, g, b);
34 gVertex3f(x, y, z); 32 gVertex3f(x, y, z);
35 } 33 }
36 34
37 void GraphicsOutputDevice::gVertex2f(float x, 35 void GraphicsOutputDevice::gVertex2f(float x,
38 float y, 36 float y,
39 float r, 37 float r,
40 float g, 38 float g,
41 float b) { 39 float b) {
42 gColor3f(r, g, b); 40 gColor3f(r, g, b);
43 gVertex3f(x, y, 0); 41 gVertex3f(x, y, 0);
44 } 42 }
45 43
46 void GraphicsOutputDevice::gVertex2f(float x, float y) { 44 void GraphicsOutputDevice::gVertex2f(float x, float y) {
47 gVertex3f(x, y, 0); 45 gVertex3f(x, y, 0);
48 } 46 }
49 47
50 void GraphicsOutputDevice::gText2f(float x, 48 void GraphicsOutputDevice::gText2f(float x,
51 float y, 49 float y,
52 const char *text_string, 50 const char *sStr,
53 bool rotated) { 51 bool bRotated) {
54 gText3f(x, y, 0, text_string, rotated); 52 gText3f(x, y, 0, sStr, bRotated);
55 } 53 }
56 } // namespace aimc