tomwalters@116: // Copyright 2006, Willem van Engen tomwalters@116: // tomwalters@116: // AIM-C: A C++ implementation of the Auditory Image Model tomwalters@116: // http://www.acousticscale.org/AIMC tomwalters@116: // tomwalters@116: // Licensed under the Apache License, Version 2.0 (the "License"); tomwalters@116: // you may not use this file except in compliance with the License. tomwalters@116: // You may obtain a copy of the License at tomwalters@116: // tomwalters@116: // http://www.apache.org/licenses/LICENSE-2.0 tomwalters@116: // tomwalters@116: // Unless required by applicable law or agreed to in writing, software tomwalters@116: // distributed under the License is distributed on an "AS IS" BASIS, tomwalters@116: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. tomwalters@116: // See the License for the specific language governing permissions and tomwalters@116: // limitations under the License. tomwalters@116: tomwalters@116: #include "Support/Common.h" tomwalters@116: #include "Modules/Output/Graphics/Devices/GraphicsOutputDevice.h" tomwalters@116: tomwalters@227: GraphicsOutputDevice::GraphicsOutputDevice(Parameters *pParam) { tomwalters@227: m_pParam = pParam; tomwalters@116: } tomwalters@116: tomwalters@116: void GraphicsOutputDevice::gVertex3f(float x, tomwalters@116: float y, tomwalters@116: float z, tomwalters@116: float r, tomwalters@116: float g, tomwalters@116: float b) { tomwalters@227: gColor3f(r, g, b); tomwalters@227: gVertex3f(x, y, z); tomwalters@116: } tomwalters@116: tomwalters@116: void GraphicsOutputDevice::gVertex2f(float x, tomwalters@116: float y, tomwalters@116: float r, tomwalters@116: float g, tomwalters@116: float b) { tomwalters@227: gColor3f(r, g, b); tomwalters@227: gVertex3f(x, y, 0); tomwalters@116: } tomwalters@116: tomwalters@116: void GraphicsOutputDevice::gVertex2f(float x, float y) { tomwalters@227: gVertex3f(x, y, 0); tomwalters@116: } tomwalters@116: tomwalters@116: void GraphicsOutputDevice::gText2f(float x, tomwalters@116: float y, tomwalters@227: const char *sStr, tomwalters@227: bool bRotated) { tomwalters@227: gText3f(x, y, 0, sStr, bRotated); tomwalters@116: }