Changeset 13041 for OpenSceneGraph/trunk/include/osg/TriangleFunctor
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/TriangleFunctor (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/TriangleFunctor
r7648 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 64 64 } 65 65 66 virtual void setVertexArray(unsigned int,const Vec4* ) 66 virtual void setVertexArray(unsigned int,const Vec4* ) 67 67 { 68 68 notify(WARN)<<"Triangle Functor does not support Vec4* vertex arrays"<<std::endl; … … 79 79 } 80 80 81 virtual void setVertexArray(unsigned int,const Vec4d* ) 81 virtual void setVertexArray(unsigned int,const Vec4d* ) 82 82 { 83 83 notify(WARN)<<"Triangle Functor does not support Vec4d* vertex arrays"<<std::endl; … … 151 151 { 152 152 if (indices==0 || count==0) return; 153 153 154 154 typedef const GLubyte* IndexPointer; 155 155 156 156 switch(mode) 157 157 { … … 213 213 break; 214 214 } 215 } 215 } 216 216 217 217 virtual void drawElements(GLenum mode,GLsizei count,const GLushort* indices) 218 218 { 219 219 if (indices==0 || count==0) return; 220 220 221 221 typedef const GLushort* IndexPointer; 222 222 223 223 switch(mode) 224 224 { … … 229 229 { 230 230 this->operator()(_vertexArrayPtr[*iptr],_vertexArrayPtr[*(iptr+1)],_vertexArrayPtr[*(iptr+2)],_treatVertexDataAsTemporary); 231 } 231 } 232 232 break; 233 233 } … … 282 282 break; 283 283 } 284 } 284 } 285 285 286 286 virtual void drawElements(GLenum mode,GLsizei count,const GLuint* indices) 287 287 { 288 288 if (indices==0 || count==0) return; 289 289 290 290 typedef const GLuint* IndexPointer; 291 291 292 292 switch(mode) 293 293 {
