template<class T> class osg::TriangleFunctor


Inheritance:


Public Methods

[more] TriangleFunctor()
[more]virtual ~TriangleFunctor()
[more]virtual void setVertexArray(unsigned int count, const Vec3* 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]inline void begin(GLenum mode)
begin(),vertex() & end() are convinience methods for adapting non vertex array primitives to vertex array based primitives.
[more]inline void vertex(const Vec3& vert)
[more]inline void vertex(float x, float y, float z)
[more]inline 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 Vec3* 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)

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

oinline void vertex(const Vec3& vert)

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

oinline 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++.