template<class T> class osg::TriangleFunctor


Inheritance:


Public Methods

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

Protected Fields

[more]unsigned int _vertexArraySize
[more]const Vec3* _vertexArrayPtr
[more]GLenum _modeCache
[more]std::vector<Vec3> _vertexCache


Documentation

o TriangleFunctor()

ovirtual ~TriangleFunctor()

ovirtual void setVertexArray(unsigned int count, const Vec2* vertices)

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

ovirtual void setVertexArray(unsigned int count, const Vec4* vertices)

ovirtual void drawArrays(GLenum mode, GLint first, GLsizei count)

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

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

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

ovirtual 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.

ovirtual void vertex(const Vec2& vert)

ovirtual void vertex(const Vec3& vert)

ovirtual void vertex(const Vec4& vert)

ovirtual void vertex(float x, float y)

ovirtual void vertex(float x, float y, float z)

ovirtual void vertex(float x, float y, float z, float w)

ovirtual void end()

ounsigned int _vertexArraySize

oconst Vec3* _vertexArrayPtr

oGLenum _modeCache

ostd::vector<Vec3> _vertexCache


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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