00001 /* -*-c++-*- 00002 * 00003 * Copyright (C) 2009 Tim Moore 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License as 00007 * published by the Free Software Foundation; either version 2 of the 00008 * License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00018 * MA 02110-1301, USA. 00019 * 00020 */ 00021 00022 #ifndef SIMGEAR_PRIMITIVEUTILS_HXX 00023 #define SIMGEAR_PRIMITIVEUTILS_HXX 1 00024 00025 #include <osg/Vec3> 00026 #include <osg/Drawable> 00027 00028 namespace simgear 00029 { 00030 struct Primitive 00031 { 00032 int numVerts; 00033 osg::Vec3 vertices[4]; 00034 }; 00035 00041 Primitive getPrimitive(osg::Drawable* drawable, unsigned primitiveIndex); 00042 } 00043 #endif