orca-robotics INTRODUCTION Overview Download and Install Quick Start Documentation Publications REPOSITORY Interfaces Components Libraries Utilities Software Map DEVELOPER Tutorials Examples Dev Guide Dashboard Wiki login/pass: orca/orca PEOPLE Contributors Users Project Download Mailing lists
|
glutil.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 Alex Brooks 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef ORCAGUI3D_GLUTIL_H 00012 #define ORCAGUI3D_GLUTIL_H 00013 00014 namespace orcaqgui3d { 00015 00016 namespace glutil { 00017 00018 void transform( float x, 00019 float y, 00020 float z, 00021 float roll, 00022 float pitch, 00023 float yaw ); 00024 00025 // Draws a box centred on the origin. 00026 // Draws the surfaces in the current colour 00027 void drawBox( float d, float w, float h, bool drawSurfaces, bool drawWireFrame ); 00028 00029 void drawIcosahedron(); 00030 00031 // 00032 // Calls glPushMatrix() in the constructor, and glPopMatrix() in the destructor. 00033 // 00034 class ScopedMatrixSave 00035 { 00036 public: 00037 00038 ScopedMatrixSave(); 00039 ~ScopedMatrixSave(); 00040 }; 00041 00042 } // namespace 00043 } // namespace 00044 00045 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)