OpenSceneGraph 3.6.5
ReversePrimitiveFunctor
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
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
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSGUTIL_REVERSEPRIMITIVEFUNCTOR
15#define OSGUTIL_REVERSEPRIMITIVEFUNCTOR 1
16
17#include <osg/PrimitiveSet>
18#include <osg/Notify>
19#include <osgUtil/Export>
20
21namespace osgUtil {
22
23
25{
26 public:
27
29
31
32 virtual void setVertexArray(unsigned int , const osg::Vec2* ) {}
33 virtual void setVertexArray(unsigned int , const osg::Vec3* ) {}
34 virtual void setVertexArray(unsigned int , const osg::Vec4* ) {}
35 virtual void setVertexArray(unsigned int , const osg::Vec2d* ) {}
36 virtual void setVertexArray(unsigned int , const osg::Vec3d* ) {}
37 virtual void setVertexArray(unsigned int , const osg::Vec4d* ) {}
38
39 virtual void drawArrays(GLenum mode,GLint first,GLsizei count);
40 virtual void drawElements(GLenum mode,GLsizei count, const GLubyte* indices);
41 virtual void drawElements(GLenum mode,GLsizei count, const GLushort* indices);
42 virtual void drawElements(GLenum mode,GLsizei count, const GLuint* indices);
43
44
46 virtual void begin(GLenum mode);
47 virtual void vertex(unsigned int /*pos*/);
48 virtual void end();
49
50
52
53 private:
54
55 bool _running;
56};
57
58} // end osgUtil namespace
59
60#endif // ** OSGUTIL_REVERSEFACEVISITOR ** //
Vec2f Vec2
Definition Vec2:21
Vec3f Vec3
Definition Vec3:21
Vec4f Vec4
Definition Vec4:21
The osgUtil library provides general purpose utility classes such as update, cull and draw traverses,...
Definition NodeVisitor:25
Definition PrimitiveSet:103
Definition PrimitiveSet:125
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
General purpose double pair, uses include representation of texture coordinates.
Definition Vec2d:29
General purpose double triple for use as vertices, vectors and normals.
Definition Vec3d:30
General purpose double quad.
Definition Vec4d:29
Definition ReversePrimitiveFunctor:25
virtual ~ReversePrimitiveFunctor()
Definition ReversePrimitiveFunctor:28
virtual void setVertexArray(unsigned int, const osg::Vec3d *)
Definition ReversePrimitiveFunctor:36
virtual void begin(GLenum mode)
Mimics the OpenGL glBegin() function.
virtual void setVertexArray(unsigned int, const osg::Vec2 *)
Definition ReversePrimitiveFunctor:32
virtual void vertex(unsigned int)
virtual void setVertexArray(unsigned int, const osg::Vec4d *)
Definition ReversePrimitiveFunctor:37
virtual void drawElements(GLenum mode, GLsizei count, const GLubyte *indices)
virtual void drawElements(GLenum mode, GLsizei count, const GLuint *indices)
virtual void setVertexArray(unsigned int, const osg::Vec2d *)
Definition ReversePrimitiveFunctor:35
osg::PrimitiveSet * getReversedPrimitiveSet()
Definition ReversePrimitiveFunctor:30
virtual void drawElements(GLenum mode, GLsizei count, const GLushort *indices)
virtual void setVertexArray(unsigned int, const osg::Vec4 *)
Definition ReversePrimitiveFunctor:34
virtual void drawArrays(GLenum mode, GLint first, GLsizei count)
virtual void setVertexArray(unsigned int, const osg::Vec3 *)
Definition ReversePrimitiveFunctor:33
osg::ref_ptr< osg::PrimitiveSet > _reversedPrimitiveSet
Definition ReversePrimitiveFunctor:51
#define OSGUTIL_EXPORT
Definition Export:40

osg logo
Generated at Sun Jul 27 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.