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