00001 /***************************************************************************** 00002 * SGL: A Scene Graph Library 00003 * 00004 * Copyright (C) 1997-2001 Scott McMillan All Rights Reserved. 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public 00017 * License along with this library; if not, write to the Free 00018 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 ***************************************************************************** 00020 * File: sglTriangleStripSet.hpp 00021 * Created: 12 August 1997 00022 * Summary: Approximates a pfGeoSet which contains geometry data, and 00023 * : pointers to the graphics state associated with it (sglGeoState). 00024 *****************************************************************************/ 00025 00026 #ifndef __SGL_TRIANGLE_STRIP_SET_HPP 00027 #define __SGL_TRIANGLE_STRIP_SET_HPP 00028 00029 #include <sgl.h> 00030 #include <sglGeoStripSet.hpp> 00031 00032 //============================================================================ 00033 00038 class SGL_DLL_API sglTriangleStripSet : public sglGeoStripSet 00039 { 00040 public: 00042 sglTriangleStripSet(); 00044 virtual ~sglTriangleStripSet(); 00045 00047 sglStats::PrimEnum getPrimType() const {return sglStats::eTRISTRIPS;} 00049 GLenum getGLPrimType() const {return GL_TRIANGLE_STRIP;} 00051 AAEnum getAAType() const {return ePOLYGON_AA;} 00052 00054 virtual sglBound::IntersectResultEnum intersectPrim(sglIntersectf &segset); 00056 virtual sglBound::IntersectResultEnum intersectPrim(sglIntersectd &segset); 00057 00058 private: // not implemented 00059 sglTriangleStripSet(const sglTriangleStripSet &); 00060 sglTriangleStripSet& operator=(const sglTriangleStripSet &); 00061 }; 00062 00063 #endif