Mercurial > hg > aimc
comparison src/Modules/Output/Graphics/Devices/GraphicsOutputDevice.cc @ 116:47b009f2c936
- 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 | |
children | c5ac2f0c7fc5 |
comparison
equal
deleted
inserted
replaced
115:3801517c4e8f | 116:47b009f2c936 |
---|---|
1 // Copyright 2006, Willem van Engen | |
2 // | |
3 // AIM-C: A C++ implementation of the Auditory Image Model | |
4 // http://www.acousticscale.org/AIMC | |
5 // | |
6 // Licensed under the Apache License, Version 2.0 (the "License"); | |
7 // you may not use this file except in compliance with the License. | |
8 // You may obtain a copy of the License at | |
9 // | |
10 // http://www.apache.org/licenses/LICENSE-2.0 | |
11 // | |
12 // Unless required by applicable law or agreed to in writing, software | |
13 // distributed under the License is distributed on an "AS IS" BASIS, | |
14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
15 // See the License for the specific language governing permissions and | |
16 // limitations under the License. | |
17 | |
18 #include "Support/Common.h" | |
19 #include "Modules/Output/Graphics/Devices/GraphicsOutputDevice.h" | |
20 | |
21 GraphicsOutputDevice::GraphicsOutputDevice(Parameters *pParam) { | |
22 m_pParam = pParam; | |
23 } | |
24 | |
25 void GraphicsOutputDevice::gVertex3f(float x, | |
26 float y, | |
27 float z, | |
28 float r, | |
29 float g, | |
30 float b) { | |
31 gColor3f(r, g, b); | |
32 gVertex3f(x, y, z); | |
33 } | |
34 | |
35 void GraphicsOutputDevice::gVertex2f(float x, | |
36 float y, | |
37 float r, | |
38 float g, | |
39 float b) { | |
40 gColor3f(r, g, b); | |
41 gVertex3f(x, y, 0); | |
42 } | |
43 | |
44 void GraphicsOutputDevice::gVertex2f(float x, float y) { | |
45 gVertex3f(x, y, 0); | |
46 } | |
47 | |
48 void GraphicsOutputDevice::gText2f(float x, | |
49 float y, | |
50 const char *sStr, | |
51 bool bRotated) { | |
52 gText3f(x, y, 0, sStr, bRotated); | |
53 } |