Added support for new double Vec*Array classes in various functors.
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
#include <osg/Vec2>
|
||||
#include <osg/Vec3>
|
||||
#include <osg/Vec4>
|
||||
#include <osg/Vec2d>
|
||||
#include <osg/Vec3d>
|
||||
#include <osg/Vec4d>
|
||||
|
||||
#include <osg/BufferObject>
|
||||
|
||||
@@ -114,6 +117,21 @@ public:
|
||||
*/
|
||||
virtual void setVertexArray(unsigned int count,const Vec4* vertices) = 0;
|
||||
|
||||
/** Sets the array of vertices used to describe the primitives. Somehow
|
||||
* mimics the OpenGL \c glVertexPointer() function.
|
||||
*/
|
||||
virtual void setVertexArray(unsigned int count,const Vec2d* vertices) = 0;
|
||||
|
||||
/** Sets the array of vertices used to describe the primitives. Somehow
|
||||
* mimics the OpenGL \c glVertexPointer() function.
|
||||
*/
|
||||
virtual void setVertexArray(unsigned int count,const Vec3d* vertices) = 0;
|
||||
|
||||
/** Sets the array of vertices used to describe the primitives. Somehow
|
||||
* mimics the OpenGL \c glVertexPointer() function.
|
||||
*/
|
||||
virtual void setVertexArray(unsigned int count,const Vec4d* vertices) = 0;
|
||||
|
||||
/// Mimics the OpenGL \c glDrawArrays() function.
|
||||
virtual void drawArrays(GLenum mode,GLint first,GLsizei count) = 0;
|
||||
|
||||
@@ -161,6 +179,10 @@ public:
|
||||
virtual void setVertexArray(unsigned int count,const Vec3* vertices) = 0;
|
||||
virtual void setVertexArray(unsigned int count,const Vec4* vertices) = 0;
|
||||
|
||||
virtual void setVertexArray(unsigned int count,const Vec2d* vertices) = 0;
|
||||
virtual void setVertexArray(unsigned int count,const Vec3d* vertices) = 0;
|
||||
virtual void setVertexArray(unsigned int count,const Vec4d* vertices) = 0;
|
||||
|
||||
virtual void drawArrays(GLenum mode,GLint first,GLsizei count) = 0;
|
||||
virtual void drawElements(GLenum mode,GLsizei count,const GLubyte* indices) = 0;
|
||||
virtual void drawElements(GLenum mode,GLsizei count,const GLushort* indices) = 0;
|
||||
|
||||
Reference in New Issue
Block a user