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: tom@229: namespace aimc { tom@229: tomwalters@237: GraphicsOutputDevice::GraphicsOutputDevice(Parameters *parameters) { tomwalters@237: parameters_ = parameters; 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@228: gColor3f(r, g, b); tomwalters@228: 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@228: gColor3f(r, g, b); tomwalters@228: gVertex3f(x, y, 0); tomwalters@116: } tomwalters@116: tomwalters@116: void GraphicsOutputDevice::gVertex2f(float x, float y) { tomwalters@228: gVertex3f(x, y, 0); tomwalters@116: } tomwalters@116: tomwalters@116: void GraphicsOutputDevice::gText2f(float x, tomwalters@116: float y, tomwalters@237: const char *text_string, tomwalters@237: bool rotated) { tomwalters@237: gText3f(x, y, 0, text_string, rotated); tomwalters@116: } tom@229: } // namespace aimc