## template<class T> class osg::TriangleFunctor

## Inheritance:

### Public Methods

TriangleFunctor()
virtual ~TriangleFunctor()
void setTreatVertexDataAsTemporary(bool treatVertexDataAsTemporary)
bool getTreatVertexDataAsTemporary() const
virtual void setVertexArray(unsigned int count, const Vec3* vertices)
virtual void setVertexArray(unsigned int, const Vec4* )
virtual void drawArrays(GLenum mode, GLint first, GLsizei count)
virtual void drawElements(GLenum mode, GLsizei count, const GLubyte* indices)
virtual void drawElements(GLenum mode, GLsizei count, const GLushort* indices)
virtual void drawElements(GLenum mode, GLsizei count, const GLuint* indices)
virtual void begin(GLenum mode)
  begin(),vertex() & end() are convinience methods for adapting non vertex array primitives to vertex array based primitives.
virtual void vertex(const Vec2& vert)
virtual void vertex(const Vec3& vert)
virtual void vertex(const Vec4& vert)
virtual void vertex(float x, float y)
virtual void vertex(float x, float y, float z)
virtual void vertex(float x, float y, float z, float w)
virtual void end()

### Protected Fields

unsigned int _vertexArraySize
const Vec3* _vertexArrayPtr
GLenum _modeCache
std::vector<Vec3> _vertexCache
bool _treatVertexDataAsTemporary

## Documentation

`TriangleFunctor()`

`virtual ~TriangleFunctor()`

`void setTreatVertexDataAsTemporary(bool treatVertexDataAsTemporary)`

`bool getTreatVertexDataAsTemporary() const`

`virtual void setVertexArray(unsigned int count, const Vec3* vertices)`

`virtual void setVertexArray(unsigned int, const Vec4* )`

`virtual void drawArrays(GLenum mode, GLint first, GLsizei count)`

`virtual void drawElements(GLenum mode, GLsizei count, const GLubyte* indices)`

`virtual void drawElements(GLenum mode, GLsizei count, const GLushort* indices)`

`virtual void drawElements(GLenum mode, GLsizei count, const GLuint* indices)`

`virtual void begin(GLenum mode)`
  begin(),vertex() & end() are convinience methods for adapting non vertex array primitives to vertex array based primitives. this is done to simplify the implementation of primtive functor subclasses - users only need override drawArray and drawElements.

`virtual void vertex(const Vec2& vert)`

`virtual void vertex(const Vec3& vert)`

`virtual void vertex(const Vec4& vert)`

`virtual void vertex(float x, float y)`

`virtual void vertex(float x, float y, float z)`

`virtual void vertex(float x, float y, float z, float w)`

`virtual void end()`

`unsigned int _vertexArraySize`

`const Vec3* _vertexArrayPtr`

`GLenum _modeCache`

`std::vector<Vec3> _vertexCache`

`bool _treatVertexDataAsTemporary`

This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java

This page was generated with the help of DOC++.