| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | #include <osgIntrospection/ReflectionMacros> |
|---|
| 9 | #include <osgIntrospection/TypedMethodInfo> |
|---|
| 10 | #include <osgIntrospection/StaticMethodInfo> |
|---|
| 11 | #include <osgIntrospection/Attributes> |
|---|
| 12 | |
|---|
| 13 | #include <osg/BufferObject> |
|---|
| 14 | #include <osg/CopyOp> |
|---|
| 15 | #include <osg/Object> |
|---|
| 16 | #include <osg/PrimitiveSet> |
|---|
| 17 | #include <osg/State> |
|---|
| 18 | #include <osg/Vec2> |
|---|
| 19 | #include <osg/Vec2d> |
|---|
| 20 | #include <osg/Vec3> |
|---|
| 21 | #include <osg/Vec3d> |
|---|
| 22 | #include <osg/Vec4> |
|---|
| 23 | #include <osg/Vec4d> |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | #ifdef IN |
|---|
| 27 | #undef IN |
|---|
| 28 | #endif |
|---|
| 29 | #ifdef OUT |
|---|
| 30 | #undef OUT |
|---|
| 31 | #endif |
|---|
| 32 | |
|---|
| 33 | TYPE_NAME_ALIAS(osg::VectorGLsizei, osg::DrawArrayLengths::vector_type) |
|---|
| 34 | |
|---|
| 35 | BEGIN_OBJECT_REFLECTOR(osg::DrawArrays) |
|---|
| 36 | I_DeclaringFile("osg/PrimitiveSet"); |
|---|
| 37 | I_BaseType(osg::PrimitiveSet); |
|---|
| 38 | I_ConstructorWithDefaults1(IN, GLenum, mode, 0, |
|---|
| 39 | Properties::NON_EXPLICIT, |
|---|
| 40 | ____DrawArrays__GLenum, |
|---|
| 41 | "", |
|---|
| 42 | ""); |
|---|
| 43 | I_ConstructorWithDefaults4(IN, GLenum, mode, , IN, GLint, first, , IN, GLsizei, count, , IN, int, numInstances, 0, |
|---|
| 44 | ____DrawArrays__GLenum__GLint__GLsizei__int, |
|---|
| 45 | "", |
|---|
| 46 | ""); |
|---|
| 47 | I_ConstructorWithDefaults2(IN, const osg::DrawArrays &, da, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
|---|
| 48 | ____DrawArrays__C5_DrawArrays_R1__C5_CopyOp_R1, |
|---|
| 49 | "", |
|---|
| 50 | ""); |
|---|
| 51 | I_Method0(osg::Object *, cloneType, |
|---|
| 52 | Properties::VIRTUAL, |
|---|
| 53 | __Object_P1__cloneType, |
|---|
| 54 | "Clone the type of an object, with Object* return type. ", |
|---|
| 55 | "Must be defined by derived classes. "); |
|---|
| 56 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 57 | Properties::VIRTUAL, |
|---|
| 58 | __Object_P1__clone__C5_CopyOp_R1, |
|---|
| 59 | "Clone an object, with Object* return type. ", |
|---|
| 60 | "Must be defined by derived classes. "); |
|---|
| 61 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 62 | Properties::VIRTUAL, |
|---|
| 63 | __bool__isSameKindAs__C5_Object_P1, |
|---|
| 64 | "", |
|---|
| 65 | ""); |
|---|
| 66 | I_Method0(const char *, libraryName, |
|---|
| 67 | Properties::VIRTUAL, |
|---|
| 68 | __C5_char_P1__libraryName, |
|---|
| 69 | "return the name of the object's library. ", |
|---|
| 70 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 71 | I_Method0(const char *, className, |
|---|
| 72 | Properties::VIRTUAL, |
|---|
| 73 | __C5_char_P1__className, |
|---|
| 74 | "return the name of the object's class type. ", |
|---|
| 75 | "Must be defined by derived classes. "); |
|---|
| 76 | I_Method3(void, set, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, |
|---|
| 77 | Properties::NON_VIRTUAL, |
|---|
| 78 | __void__set__GLenum__GLint__GLsizei, |
|---|
| 79 | "", |
|---|
| 80 | ""); |
|---|
| 81 | I_Method1(void, setFirst, IN, GLint, first, |
|---|
| 82 | Properties::NON_VIRTUAL, |
|---|
| 83 | __void__setFirst__GLint, |
|---|
| 84 | "", |
|---|
| 85 | ""); |
|---|
| 86 | I_Method0(GLint, getFirst, |
|---|
| 87 | Properties::NON_VIRTUAL, |
|---|
| 88 | __GLint__getFirst, |
|---|
| 89 | "", |
|---|
| 90 | ""); |
|---|
| 91 | I_Method1(void, setCount, IN, GLsizei, count, |
|---|
| 92 | Properties::NON_VIRTUAL, |
|---|
| 93 | __void__setCount__GLsizei, |
|---|
| 94 | "", |
|---|
| 95 | ""); |
|---|
| 96 | I_Method0(GLsizei, getCount, |
|---|
| 97 | Properties::NON_VIRTUAL, |
|---|
| 98 | __GLsizei__getCount, |
|---|
| 99 | "", |
|---|
| 100 | ""); |
|---|
| 101 | I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, |
|---|
| 102 | Properties::VIRTUAL, |
|---|
| 103 | __void__draw__State_R1__bool, |
|---|
| 104 | "", |
|---|
| 105 | ""); |
|---|
| 106 | I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, |
|---|
| 107 | Properties::VIRTUAL, |
|---|
| 108 | __void__accept__PrimitiveFunctor_R1, |
|---|
| 109 | "", |
|---|
| 110 | ""); |
|---|
| 111 | I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, |
|---|
| 112 | Properties::VIRTUAL, |
|---|
| 113 | __void__accept__PrimitiveIndexFunctor_R1, |
|---|
| 114 | "", |
|---|
| 115 | ""); |
|---|
| 116 | I_Method0(unsigned int, getNumIndices, |
|---|
| 117 | Properties::VIRTUAL, |
|---|
| 118 | __unsigned_int__getNumIndices, |
|---|
| 119 | "", |
|---|
| 120 | ""); |
|---|
| 121 | I_Method1(unsigned int, index, IN, unsigned int, pos, |
|---|
| 122 | Properties::VIRTUAL, |
|---|
| 123 | __unsigned_int__index__unsigned_int, |
|---|
| 124 | "", |
|---|
| 125 | ""); |
|---|
| 126 | I_Method1(void, offsetIndices, IN, int, offset, |
|---|
| 127 | Properties::VIRTUAL, |
|---|
| 128 | __void__offsetIndices__int, |
|---|
| 129 | "", |
|---|
| 130 | ""); |
|---|
| 131 | I_SimpleProperty(GLsizei, Count, |
|---|
| 132 | __GLsizei__getCount, |
|---|
| 133 | __void__setCount__GLsizei); |
|---|
| 134 | I_SimpleProperty(GLint, First, |
|---|
| 135 | __GLint__getFirst, |
|---|
| 136 | __void__setFirst__GLint); |
|---|
| 137 | END_REFLECTOR |
|---|
| 138 | |
|---|
| 139 | BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::DrawElements) |
|---|
| 140 | I_DeclaringFile("osg/PrimitiveSet"); |
|---|
| 141 | I_BaseType(osg::PrimitiveSet); |
|---|
| 142 | I_ConstructorWithDefaults3(IN, osg::PrimitiveSet::Type, primType, osg::PrimitiveSet::PrimitiveType, IN, GLenum, mode, 0, IN, int, numInstances, 0, |
|---|
| 143 | ____DrawElements__Type__GLenum__int, |
|---|
| 144 | "", |
|---|
| 145 | ""); |
|---|
| 146 | I_ConstructorWithDefaults2(IN, const osg::DrawElements &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
|---|
| 147 | ____DrawElements__C5_DrawElements_R1__C5_CopyOp_R1, |
|---|
| 148 | "", |
|---|
| 149 | ""); |
|---|
| 150 | I_Method0(osg::DrawElements *, getDrawElements, |
|---|
| 151 | Properties::VIRTUAL, |
|---|
| 152 | __DrawElements_P1__getDrawElements, |
|---|
| 153 | "", |
|---|
| 154 | ""); |
|---|
| 155 | I_Method0(const osg::DrawElements *, getDrawElements, |
|---|
| 156 | Properties::VIRTUAL, |
|---|
| 157 | __C5_DrawElements_P1__getDrawElements, |
|---|
| 158 | "", |
|---|
| 159 | ""); |
|---|
| 160 | I_Method0(void, dirty, |
|---|
| 161 | Properties::VIRTUAL, |
|---|
| 162 | __void__dirty, |
|---|
| 163 | "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", |
|---|
| 164 | ""); |
|---|
| 165 | I_Method1(void, setElementBufferObject, IN, osg::ElementBufferObject *, ebo, |
|---|
| 166 | Properties::NON_VIRTUAL, |
|---|
| 167 | __void__setElementBufferObject__osg_ElementBufferObject_P1, |
|---|
| 168 | "Set the ElementBufferObject. ", |
|---|
| 169 | ""); |
|---|
| 170 | I_Method0(osg::ElementBufferObject *, getElementBufferObject, |
|---|
| 171 | Properties::NON_VIRTUAL, |
|---|
| 172 | __osg_ElementBufferObject_P1__getElementBufferObject, |
|---|
| 173 | "Get the ElementBufferObject. ", |
|---|
| 174 | "If no EBO is assigned returns NULL "); |
|---|
| 175 | I_Method0(const osg::ElementBufferObject *, getElementBufferObject, |
|---|
| 176 | Properties::NON_VIRTUAL, |
|---|
| 177 | __C5_osg_ElementBufferObject_P1__getElementBufferObject, |
|---|
| 178 | "Get the const ElementBufferObject. ", |
|---|
| 179 | "If no EBO is assigned returns NULL "); |
|---|
| 180 | I_Method1(void, setElementBufferObjectOffset, IN, const GLvoid *, offset, |
|---|
| 181 | Properties::NON_VIRTUAL, |
|---|
| 182 | __void__setElementBufferObjectOffset__C5_GLvoid_P1, |
|---|
| 183 | "Set the offset into the ElementBufferObject, if used. ", |
|---|
| 184 | ""); |
|---|
| 185 | I_Method0(const GLvoid *, getElementBufferObjectOffset, |
|---|
| 186 | Properties::NON_VIRTUAL, |
|---|
| 187 | __C5_GLvoid_P1__getElementBufferObjectOffset, |
|---|
| 188 | "Get the offset into the ElementBufferOffset, if used. ", |
|---|
| 189 | ""); |
|---|
| 190 | I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, |
|---|
| 191 | Properties::VIRTUAL, |
|---|
| 192 | __void__resizeGLObjectBuffers__unsigned_int, |
|---|
| 193 | "Resize any per context GLObject buffers to specified size. ", |
|---|
| 194 | ""); |
|---|
| 195 | I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, |
|---|
| 196 | Properties::VIRTUAL, |
|---|
| 197 | __void__releaseGLObjects__State_P1, |
|---|
| 198 | "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", |
|---|
| 199 | "Otherwise, releases OpenGL objects for all graphics contexts. "); |
|---|
| 200 | I_SimpleProperty(osg::DrawElements *, DrawElements, |
|---|
| 201 | __DrawElements_P1__getDrawElements, |
|---|
| 202 | 0); |
|---|
| 203 | I_SimpleProperty(osg::ElementBufferObject *, ElementBufferObject, |
|---|
| 204 | __osg_ElementBufferObject_P1__getElementBufferObject, |
|---|
| 205 | __void__setElementBufferObject__osg_ElementBufferObject_P1); |
|---|
| 206 | I_SimpleProperty(const GLvoid *, ElementBufferObjectOffset, |
|---|
| 207 | __C5_GLvoid_P1__getElementBufferObjectOffset, |
|---|
| 208 | __void__setElementBufferObjectOffset__C5_GLvoid_P1); |
|---|
| 209 | END_REFLECTOR |
|---|
| 210 | |
|---|
| 211 | TYPE_NAME_ALIAS(osg::VectorGLubyte, osg::DrawElementsUByte::vector_type) |
|---|
| 212 | |
|---|
| 213 | TYPE_NAME_ALIAS(osg::VectorGLuint, osg::DrawElementsUInt::vector_type) |
|---|
| 214 | |
|---|
| 215 | TYPE_NAME_ALIAS(osg::VectorGLushort, osg::DrawElementsUShort::vector_type) |
|---|
| 216 | |
|---|
| 217 | BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveFunctor) |
|---|
| 218 | I_DeclaringFile("osg/PrimitiveSet"); |
|---|
| 219 | I_Constructor0(____PrimitiveFunctor, |
|---|
| 220 | "", |
|---|
| 221 | ""); |
|---|
| 222 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, |
|---|
| 223 | Properties::PURE_VIRTUAL, |
|---|
| 224 | __void__setVertexArray__unsigned_int__C5_Vec2_P1, |
|---|
| 225 | "Sets the array of vertices used to describe the primitives. ", |
|---|
| 226 | "Somehow mimics the OpenGL glVertexPointer() function. "); |
|---|
| 227 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices, |
|---|
| 228 | Properties::PURE_VIRTUAL, |
|---|
| 229 | __void__setVertexArray__unsigned_int__C5_Vec3_P1, |
|---|
| 230 | "Sets the array of vertices used to describe the primitives. ", |
|---|
| 231 | "Somehow mimics the OpenGL glVertexPointer() function. "); |
|---|
| 232 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices, |
|---|
| 233 | Properties::PURE_VIRTUAL, |
|---|
| 234 | __void__setVertexArray__unsigned_int__C5_Vec4_P1, |
|---|
| 235 | "Sets the array of vertices used to describe the primitives. ", |
|---|
| 236 | "Somehow mimics the OpenGL glVertexPointer() function. "); |
|---|
| 237 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2d *, vertices, |
|---|
| 238 | Properties::PURE_VIRTUAL, |
|---|
| 239 | __void__setVertexArray__unsigned_int__C5_Vec2d_P1, |
|---|
| 240 | "Sets the array of vertices used to describe the primitives. ", |
|---|
| 241 | "Somehow mimics the OpenGL glVertexPointer() function. "); |
|---|
| 242 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3d *, vertices, |
|---|
| 243 | Properties::PURE_VIRTUAL, |
|---|
| 244 | __void__setVertexArray__unsigned_int__C5_Vec3d_P1, |
|---|
| 245 | "Sets the array of vertices used to describe the primitives. ", |
|---|
| 246 | "Somehow mimics the OpenGL glVertexPointer() function. "); |
|---|
| 247 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4d *, vertices, |
|---|
| 248 | Properties::PURE_VIRTUAL, |
|---|
| 249 | __void__setVertexArray__unsigned_int__C5_Vec4d_P1, |
|---|
| 250 | "Sets the array of vertices used to describe the primitives. ", |
|---|
| 251 | "Somehow mimics the OpenGL glVertexPointer() function. "); |
|---|
| 252 | I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, |
|---|
| 253 | Properties::PURE_VIRTUAL, |
|---|
| 254 | __void__drawArrays__GLenum__GLint__GLsizei, |
|---|
| 255 | "Mimics the OpenGL glDrawArrays() function. ", |
|---|
| 256 | ""); |
|---|
| 257 | I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, |
|---|
| 258 | Properties::PURE_VIRTUAL, |
|---|
| 259 | __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, |
|---|
| 260 | "Mimics the OpenGL glDrawElements() function. ", |
|---|
| 261 | ""); |
|---|
| 262 | I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices, |
|---|
| 263 | Properties::PURE_VIRTUAL, |
|---|
| 264 | __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, |
|---|
| 265 | "Mimics the OpenGL glDrawElements() function. ", |
|---|
| 266 | ""); |
|---|
| 267 | I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices, |
|---|
| 268 | Properties::PURE_VIRTUAL, |
|---|
| 269 | __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, |
|---|
| 270 | "Mimics the OpenGL glDrawElements() function. ", |
|---|
| 271 | ""); |
|---|
| 272 | I_Method1(void, begin, IN, GLenum, mode, |
|---|
| 273 | Properties::PURE_VIRTUAL, |
|---|
| 274 | __void__begin__GLenum, |
|---|
| 275 | "Mimics the OpenGL glBegin() function. ", |
|---|
| 276 | ""); |
|---|
| 277 | I_Method1(void, vertex, IN, const osg::Vec2 &, vert, |
|---|
| 278 | Properties::PURE_VIRTUAL, |
|---|
| 279 | __void__vertex__C5_Vec2_R1, |
|---|
| 280 | "Mimics the OpenGL glVertex() \"family of functions\". ", |
|---|
| 281 | ""); |
|---|
| 282 | I_Method1(void, vertex, IN, const osg::Vec3 &, vert, |
|---|
| 283 | Properties::PURE_VIRTUAL, |
|---|
| 284 | __void__vertex__C5_Vec3_R1, |
|---|
| 285 | "Mimics the OpenGL glVertex() \"family of functions\". ", |
|---|
| 286 | ""); |
|---|
| 287 | I_Method1(void, vertex, IN, const osg::Vec4 &, vert, |
|---|
| 288 | Properties::PURE_VIRTUAL, |
|---|
| 289 | __void__vertex__C5_Vec4_R1, |
|---|
| 290 | "Mimics the OpenGL glVertex() \"family of functions\". ", |
|---|
| 291 | ""); |
|---|
| 292 | I_Method2(void, vertex, IN, float, x, IN, float, y, |
|---|
| 293 | Properties::PURE_VIRTUAL, |
|---|
| 294 | __void__vertex__float__float, |
|---|
| 295 | "Mimics the OpenGL glVertex() \"family of functions\". ", |
|---|
| 296 | ""); |
|---|
| 297 | I_Method3(void, vertex, IN, float, x, IN, float, y, IN, float, z, |
|---|
| 298 | Properties::PURE_VIRTUAL, |
|---|
| 299 | __void__vertex__float__float__float, |
|---|
| 300 | "Mimics the OpenGL glVertex() \"family of functions\". ", |
|---|
| 301 | ""); |
|---|
| 302 | I_Method4(void, vertex, IN, float, x, IN, float, y, IN, float, z, IN, float, w, |
|---|
| 303 | Properties::PURE_VIRTUAL, |
|---|
| 304 | __void__vertex__float__float__float__float, |
|---|
| 305 | "Mimics the OpenGL glVertex() \"family of functions\". ", |
|---|
| 306 | ""); |
|---|
| 307 | I_Method0(void, end, |
|---|
| 308 | Properties::PURE_VIRTUAL, |
|---|
| 309 | __void__end, |
|---|
| 310 | "Mimics the OpenGL glEnd() function. ", |
|---|
| 311 | ""); |
|---|
| 312 | END_REFLECTOR |
|---|
| 313 | |
|---|
| 314 | BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveIndexFunctor) |
|---|
| 315 | I_DeclaringFile("osg/PrimitiveSet"); |
|---|
| 316 | I_Constructor0(____PrimitiveIndexFunctor, |
|---|
| 317 | "", |
|---|
| 318 | ""); |
|---|
| 319 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, |
|---|
| 320 | Properties::PURE_VIRTUAL, |
|---|
| 321 | __void__setVertexArray__unsigned_int__C5_Vec2_P1, |
|---|
| 322 | "", |
|---|
| 323 | ""); |
|---|
| 324 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices, |
|---|
| 325 | Properties::PURE_VIRTUAL, |
|---|
| 326 | __void__setVertexArray__unsigned_int__C5_Vec3_P1, |
|---|
| 327 | "", |
|---|
| 328 | ""); |
|---|
| 329 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices, |
|---|
| 330 | Properties::PURE_VIRTUAL, |
|---|
| 331 | __void__setVertexArray__unsigned_int__C5_Vec4_P1, |
|---|
| 332 | "", |
|---|
| 333 | ""); |
|---|
| 334 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2d *, vertices, |
|---|
| 335 | Properties::PURE_VIRTUAL, |
|---|
| 336 | __void__setVertexArray__unsigned_int__C5_Vec2d_P1, |
|---|
| 337 | "", |
|---|
| 338 | ""); |
|---|
| 339 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3d *, vertices, |
|---|
| 340 | Properties::PURE_VIRTUAL, |
|---|
| 341 | __void__setVertexArray__unsigned_int__C5_Vec3d_P1, |
|---|
| 342 | "", |
|---|
| 343 | ""); |
|---|
| 344 | I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4d *, vertices, |
|---|
| 345 | Properties::PURE_VIRTUAL, |
|---|
| 346 | __void__setVertexArray__unsigned_int__C5_Vec4d_P1, |
|---|
| 347 | "", |
|---|
| 348 | ""); |
|---|
| 349 | I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, |
|---|
| 350 | Properties::PURE_VIRTUAL, |
|---|
| 351 | __void__drawArrays__GLenum__GLint__GLsizei, |
|---|
| 352 | "", |
|---|
| 353 | ""); |
|---|
| 354 | I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, |
|---|
| 355 | Properties::PURE_VIRTUAL, |
|---|
| 356 | __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, |
|---|
| 357 | "", |
|---|
| 358 | ""); |
|---|
| 359 | I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices, |
|---|
| 360 | Properties::PURE_VIRTUAL, |
|---|
| 361 | __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, |
|---|
| 362 | "", |
|---|
| 363 | ""); |
|---|
| 364 | I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices, |
|---|
| 365 | Properties::PURE_VIRTUAL, |
|---|
| 366 | __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, |
|---|
| 367 | "", |
|---|
| 368 | ""); |
|---|
| 369 | I_Method1(void, begin, IN, GLenum, mode, |
|---|
| 370 | Properties::PURE_VIRTUAL, |
|---|
| 371 | __void__begin__GLenum, |
|---|
| 372 | "", |
|---|
| 373 | ""); |
|---|
| 374 | I_Method1(void, vertex, IN, unsigned int, pos, |
|---|
| 375 | Properties::PURE_VIRTUAL, |
|---|
| 376 | __void__vertex__unsigned_int, |
|---|
| 377 | "", |
|---|
| 378 | ""); |
|---|
| 379 | I_Method0(void, end, |
|---|
| 380 | Properties::PURE_VIRTUAL, |
|---|
| 381 | __void__end, |
|---|
| 382 | "", |
|---|
| 383 | ""); |
|---|
| 384 | END_REFLECTOR |
|---|
| 385 | |
|---|
| 386 | BEGIN_ENUM_REFLECTOR(osg::PrimitiveSet::Type) |
|---|
| 387 | I_DeclaringFile("osg/PrimitiveSet"); |
|---|
| 388 | I_EnumLabel(osg::PrimitiveSet::PrimitiveType); |
|---|
| 389 | I_EnumLabel(osg::PrimitiveSet::DrawArraysPrimitiveType); |
|---|
| 390 | I_EnumLabel(osg::PrimitiveSet::DrawArrayLengthsPrimitiveType); |
|---|
| 391 | I_EnumLabel(osg::PrimitiveSet::DrawElementsUBytePrimitiveType); |
|---|
| 392 | I_EnumLabel(osg::PrimitiveSet::DrawElementsUShortPrimitiveType); |
|---|
| 393 | I_EnumLabel(osg::PrimitiveSet::DrawElementsUIntPrimitiveType); |
|---|
| 394 | END_REFLECTOR |
|---|
| 395 | |
|---|
| 396 | BEGIN_ENUM_REFLECTOR(osg::PrimitiveSet::Mode) |
|---|
| 397 | I_DeclaringFile("osg/PrimitiveSet"); |
|---|
| 398 | I_EnumLabel(osg::PrimitiveSet::POINTS); |
|---|
| 399 | I_EnumLabel(osg::PrimitiveSet::LINES); |
|---|
| 400 | I_EnumLabel(osg::PrimitiveSet::LINE_STRIP); |
|---|
| 401 | I_EnumLabel(osg::PrimitiveSet::LINE_LOOP); |
|---|
| 402 | I_EnumLabel(osg::PrimitiveSet::TRIANGLES); |
|---|
| 403 | I_EnumLabel(osg::PrimitiveSet::TRIANGLE_STRIP); |
|---|
| 404 | I_EnumLabel(osg::PrimitiveSet::TRIANGLE_FAN); |
|---|
| 405 | I_EnumLabel(osg::PrimitiveSet::QUADS); |
|---|
| 406 | I_EnumLabel(osg::PrimitiveSet::QUAD_STRIP); |
|---|
| 407 | I_EnumLabel(osg::PrimitiveSet::POLYGON); |
|---|
| 408 | END_REFLECTOR |
|---|
| 409 | |
|---|
| 410 | BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveSet) |
|---|
| 411 | I_DeclaringFile("osg/PrimitiveSet"); |
|---|
| 412 | I_BaseType(osg::Object); |
|---|
| 413 | I_ConstructorWithDefaults3(IN, osg::PrimitiveSet::Type, primType, osg::PrimitiveSet::PrimitiveType, IN, GLenum, mode, 0, IN, int, numInstances, 0, |
|---|
| 414 | ____PrimitiveSet__Type__GLenum__int, |
|---|
| 415 | "", |
|---|
| 416 | ""); |
|---|
| 417 | I_ConstructorWithDefaults2(IN, const osg::PrimitiveSet &, prim, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
|---|
| 418 | ____PrimitiveSet__C5_PrimitiveSet_R1__C5_CopyOp_R1, |
|---|
| 419 | "", |
|---|
| 420 | ""); |
|---|
| 421 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 422 | Properties::VIRTUAL, |
|---|
| 423 | __bool__isSameKindAs__C5_Object_P1, |
|---|
| 424 | "", |
|---|
| 425 | ""); |
|---|
| 426 | I_Method0(const char *, libraryName, |
|---|
| 427 | Properties::VIRTUAL, |
|---|
| 428 | __C5_char_P1__libraryName, |
|---|
| 429 | "return the name of the object's library. ", |
|---|
| 430 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 431 | I_Method0(const char *, className, |
|---|
| 432 | Properties::VIRTUAL, |
|---|
| 433 | __C5_char_P1__className, |
|---|
| 434 | "return the name of the object's class type. ", |
|---|
| 435 | "Must be defined by derived classes. "); |
|---|
| 436 | I_Method0(osg::PrimitiveSet::Type, getType, |
|---|
| 437 | Properties::NON_VIRTUAL, |
|---|
| 438 | __Type__getType, |
|---|
| 439 | "", |
|---|
| 440 | ""); |
|---|
| 441 | I_Method0(const GLvoid *, getDataPointer, |
|---|
| 442 | Properties::VIRTUAL, |
|---|
| 443 | __C5_GLvoid_P1__getDataPointer, |
|---|
| 444 | "", |
|---|
| 445 | ""); |
|---|
| 446 | I_Method0(unsigned int, getTotalDataSize, |
|---|
| 447 | Properties::VIRTUAL, |
|---|
| 448 | __unsigned_int__getTotalDataSize, |
|---|
| 449 | "", |
|---|
| 450 | ""); |
|---|
| 451 | I_Method0(bool, supportsBufferObject, |
|---|
| 452 | Properties::VIRTUAL, |
|---|
| 453 | __bool__supportsBufferObject, |
|---|
| 454 | "", |
|---|
| 455 | ""); |
|---|
| 456 | I_Method0(osg::DrawElements *, getDrawElements, |
|---|
| 457 | Properties::VIRTUAL, |
|---|
| 458 | __DrawElements_P1__getDrawElements, |
|---|
| 459 | "", |
|---|
| 460 | ""); |
|---|
| 461 | I_Method0(const osg::DrawElements *, getDrawElements, |
|---|
| 462 | Properties::VIRTUAL, |
|---|
| 463 | __C5_DrawElements_P1__getDrawElements, |
|---|
| 464 | "", |
|---|
| 465 | ""); |
|---|
| 466 | I_Method1(void, setNumInstances, IN, int, n, |
|---|
| 467 | Properties::NON_VIRTUAL, |
|---|
| 468 | __void__setNumInstances__int, |
|---|
| 469 | "", |
|---|
| 470 | ""); |
|---|
| 471 | I_Method0(int, getNumInstances, |
|---|
| 472 | Properties::NON_VIRTUAL, |
|---|
| 473 | __int__getNumInstances, |
|---|
| 474 | "", |
|---|
| 475 | ""); |
|---|
| 476 | I_Method1(void, setMode, IN, GLenum, mode, |
|---|
| 477 | Properties::NON_VIRTUAL, |
|---|
| 478 | __void__setMode__GLenum, |
|---|
| 479 | "", |
|---|
| 480 | ""); |
|---|
| 481 | I_Method0(GLenum, getMode, |
|---|
| 482 | Properties::NON_VIRTUAL, |
|---|
| 483 | __GLenum__getMode, |
|---|
| 484 | "", |
|---|
| 485 | ""); |
|---|
| 486 | I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, |
|---|
| 487 | Properties::PURE_VIRTUAL, |
|---|
| 488 | __void__draw__State_R1__bool, |
|---|
| 489 | "", |
|---|
| 490 | ""); |
|---|
| 491 | I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, |
|---|
| 492 | Properties::PURE_VIRTUAL, |
|---|
| 493 | __void__accept__PrimitiveFunctor_R1, |
|---|
| 494 | "", |
|---|
| 495 | ""); |
|---|
| 496 | I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, |
|---|
| 497 | Properties::PURE_VIRTUAL, |
|---|
| 498 | __void__accept__PrimitiveIndexFunctor_R1, |
|---|
| 499 | "", |
|---|
| 500 | ""); |
|---|
| 501 | I_Method1(unsigned int, index, IN, unsigned int, pos, |
|---|
| 502 | Properties::PURE_VIRTUAL, |
|---|
| 503 | __unsigned_int__index__unsigned_int, |
|---|
| 504 | "", |
|---|
| 505 | ""); |
|---|
| 506 | I_Method0(unsigned int, getNumIndices, |
|---|
| 507 | Properties::PURE_VIRTUAL, |
|---|
| 508 | __unsigned_int__getNumIndices, |
|---|
| 509 | "", |
|---|
| 510 | ""); |
|---|
| 511 | I_Method1(void, offsetIndices, IN, int, offset, |
|---|
| 512 | Properties::PURE_VIRTUAL, |
|---|
| 513 | __void__offsetIndices__int, |
|---|
| 514 | "", |
|---|
| 515 | ""); |
|---|
| 516 | I_Method0(unsigned int, getNumPrimitives, |
|---|
| 517 | Properties::VIRTUAL, |
|---|
| 518 | __unsigned_int__getNumPrimitives, |
|---|
| 519 | "", |
|---|
| 520 | ""); |
|---|
| 521 | I_Method0(void, dirty, |
|---|
| 522 | Properties::VIRTUAL, |
|---|
| 523 | __void__dirty, |
|---|
| 524 | "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", |
|---|
| 525 | ""); |
|---|
| 526 | I_Method1(void, setModifiedCount, IN, unsigned int, value, |
|---|
| 527 | Properties::NON_VIRTUAL, |
|---|
| 528 | __void__setModifiedCount__unsigned_int, |
|---|
| 529 | "Set the modified count value. ", |
|---|
| 530 | ""); |
|---|
| 531 | I_Method0(unsigned int, getModifiedCount, |
|---|
| 532 | Properties::NON_VIRTUAL, |
|---|
| 533 | __unsigned_int__getModifiedCount, |
|---|
| 534 | "Get modified count value. ", |
|---|
| 535 | ""); |
|---|
| 536 | I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, |
|---|
| 537 | Properties::VIRTUAL, |
|---|
| 538 | __void__resizeGLObjectBuffers__unsigned, |
|---|
| 539 | "Resize any per context GLObject buffers to specified size. ", |
|---|
| 540 | ""); |
|---|
| 541 | I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, |
|---|
| 542 | Properties::VIRTUAL, |
|---|
| 543 | __void__releaseGLObjects__State_P1, |
|---|
| 544 | "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", |
|---|
| 545 | "Otherwise, releases OpenGL objects for all graphics contexts. "); |
|---|
| 546 | I_Method0(void, computeRange, |
|---|
| 547 | Properties::VIRTUAL, |
|---|
| 548 | __void__computeRange, |
|---|
| 549 | "", |
|---|
| 550 | ""); |
|---|
| 551 | I_SimpleProperty(const GLvoid *, DataPointer, |
|---|
| 552 | __C5_GLvoid_P1__getDataPointer, |
|---|
| 553 | 0); |
|---|
| 554 | I_SimpleProperty(osg::DrawElements *, DrawElements, |
|---|
| 555 | __DrawElements_P1__getDrawElements, |
|---|
| 556 | 0); |
|---|
| 557 | I_SimpleProperty(GLenum, Mode, |
|---|
| 558 | __GLenum__getMode, |
|---|
| 559 | __void__setMode__GLenum); |
|---|
| 560 | I_SimpleProperty(unsigned int, ModifiedCount, |
|---|
| 561 | __unsigned_int__getModifiedCount, |
|---|
| 562 | __void__setModifiedCount__unsigned_int); |
|---|
| 563 | I_SimpleProperty(int, NumInstances, |
|---|
| 564 | 0, |
|---|
| 565 | __void__setNumInstances__int); |
|---|
| 566 | I_SimpleProperty(unsigned int, TotalDataSize, |
|---|
| 567 | __unsigned_int__getTotalDataSize, |
|---|
| 568 | 0); |
|---|
| 569 | I_SimpleProperty(osg::PrimitiveSet::Type, Type, |
|---|
| 570 | __Type__getType, |
|---|
| 571 | 0); |
|---|
| 572 | END_REFLECTOR |
|---|