template<class T> class osg::TriangleFunctor


Inheritance:


Public Methods

[more] TriangleFunctor()
[more]virtual ~TriangleFunctor()
[more]virtual void setVertexArray(unsigned int count, Vec3* vertices)
[more]virtual void drawArrays(GLenum mode, GLint first, GLsizei count)
[more]virtual void drawElements(GLenum mode, GLsizei count, GLubyte* indices)
[more]virtual void drawElements(GLenum mode, GLsizei count, GLushort* indices)
[more]virtual void drawElements(GLenum mode, GLsizei count, 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]Vec3* _vertexArrayPtr
[more]GLenum _modeCache
[more]std::vector<Vec3> _vertexCache


Documentation

o TriangleFunctor()

ovirtual ~TriangleFunctor()

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

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

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

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

ovirtual void drawElements(GLenum mode, GLsizei count, 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

oVec3* _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++.