Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added full range of Array subclasses to wrappers

  • Loading branch information...
commit c31af81ac9165184c8918547e708c3f49f725491 1 parent 015ee8d
Robert OSFIELD authored
Showing with 35 additions and 0 deletions.
  1. +35 −0 src/osgWrappers/serializers/osg/Array.cpp
View
35 src/osgWrappers/serializers/osg/Array.cpp
@@ -113,7 +113,42 @@ REGISTER_OBJECT_WRAPPER( Array,
#define ARRAY_WRAPPERS( ARRAY ) \
namespace Wrappers##ARRAY { REGISTER_OBJECT_WRAPPER( ARRAY, new osg::ARRAY, osg::ARRAY, "osg::Object osg::Array "#ARRAY ) {} }
+ARRAY_WRAPPERS(FloatArray)
ARRAY_WRAPPERS(Vec2Array)
ARRAY_WRAPPERS(Vec3Array)
ARRAY_WRAPPERS(Vec4Array)
+ARRAY_WRAPPERS(DoubleArray)
+ARRAY_WRAPPERS(Vec2dArray)
+ARRAY_WRAPPERS(Vec3dArray)
+ARRAY_WRAPPERS(Vec4dArray)
+
+ARRAY_WRAPPERS(ByteArray)
+ARRAY_WRAPPERS(Vec2bArray)
+ARRAY_WRAPPERS(Vec3bArray)
+ARRAY_WRAPPERS(Vec4bArray)
+
+ARRAY_WRAPPERS(UByteArray)
+ARRAY_WRAPPERS(Vec2ubArray)
+ARRAY_WRAPPERS(Vec3ubArray)
+ARRAY_WRAPPERS(Vec4ubArray)
+
+ARRAY_WRAPPERS(ShortArray)
+ARRAY_WRAPPERS(Vec2sArray)
+ARRAY_WRAPPERS(Vec3sArray)
+ARRAY_WRAPPERS(Vec4sArray)
+
+ARRAY_WRAPPERS(UShortArray)
+ARRAY_WRAPPERS(Vec2usArray)
+ARRAY_WRAPPERS(Vec3usArray)
+ARRAY_WRAPPERS(Vec4usArray)
+
+ARRAY_WRAPPERS(IntArray)
+ARRAY_WRAPPERS(Vec2iArray)
+ARRAY_WRAPPERS(Vec3iArray)
+ARRAY_WRAPPERS(Vec4iArray)
+
+ARRAY_WRAPPERS(UIntArray)
+ARRAY_WRAPPERS(Vec2uiArray)
+ARRAY_WRAPPERS(Vec3uiArray)
+ARRAY_WRAPPERS(Vec4uiArray)
Please sign in to comment.
Something went wrong with that request. Please try again.