| | 29 | BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BufferData) |
| | 30 | I_DeclaringFile("osg/BufferObject"); |
| | 31 | I_BaseType(osg::Object); |
| | 32 | I_Constructor0(____BufferData, |
| | 33 | "", |
| | 34 | ""); |
| | 35 | I_ConstructorWithDefaults2(IN, const osg::BufferData &, bd, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
| | 36 | ____BufferData__C5_BufferData_R1__C5_CopyOp_R1, |
| | 37 | "Copy constructor using CopyOp to manage deep vs shallow copy. ", |
| | 38 | ""); |
| | 39 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
| | 40 | Properties::VIRTUAL, |
| | 41 | __bool__isSameKindAs__C5_Object_P1, |
| | 42 | "", |
| | 43 | ""); |
| | 44 | I_Method0(const char *, libraryName, |
| | 45 | Properties::VIRTUAL, |
| | 46 | __C5_char_P1__libraryName, |
| | 47 | "return the name of the object's library. ", |
| | 48 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
| | 49 | I_Method0(const char *, className, |
| | 50 | Properties::VIRTUAL, |
| | 51 | __C5_char_P1__className, |
| | 52 | "return the name of the object's class type. ", |
| | 53 | "Must be defined by derived classes. "); |
| | 54 | I_Method0(const GLvoid *, getDataPointer, |
| | 55 | Properties::PURE_VIRTUAL, |
| | 56 | __C5_GLvoid_P1__getDataPointer, |
| | 57 | "", |
| | 58 | ""); |
| | 59 | I_Method0(unsigned int, getTotalDataSize, |
| | 60 | Properties::PURE_VIRTUAL, |
| | 61 | __unsigned_int__getTotalDataSize, |
| | 62 | "", |
| | 63 | ""); |
| | 64 | I_Method1(void, setBufferObject, IN, osg::BufferObject *, bufferObject, |
| | 65 | Properties::NON_VIRTUAL, |
| | 66 | __void__setBufferObject__BufferObject_P1, |
| | 67 | "", |
| | 68 | ""); |
| | 69 | I_Method0(osg::BufferObject *, getBufferObject, |
| | 70 | Properties::NON_VIRTUAL, |
| | 71 | __BufferObject_P1__getBufferObject, |
| | 72 | "", |
| | 73 | ""); |
| | 74 | I_Method0(const osg::BufferObject *, getBufferObject, |
| | 75 | Properties::NON_VIRTUAL, |
| | 76 | __C5_BufferObject_P1__getBufferObject, |
| | 77 | "", |
| | 78 | ""); |
| | 79 | I_Method1(void, setBufferIndex, IN, unsigned int, index, |
| | 80 | Properties::NON_VIRTUAL, |
| | 81 | __void__setBufferIndex__unsigned_int, |
| | 82 | "", |
| | 83 | ""); |
| | 84 | I_Method0(unsigned int, getBufferIndex, |
| | 85 | Properties::NON_VIRTUAL, |
| | 86 | __unsigned_int__getBufferIndex, |
| | 87 | "", |
| | 88 | ""); |
| | 89 | I_Method1(osg::GLBufferObject *, getGLBufferObject, IN, unsigned int, contextID, |
| | 90 | Properties::NON_VIRTUAL, |
| | 91 | __GLBufferObject_P1__getGLBufferObject__unsigned_int, |
| | 92 | "", |
| | 93 | ""); |
| | 94 | I_Method1(osg::GLBufferObject *, getOrCreateGLBufferObject, IN, unsigned int, contextID, |
| | 95 | Properties::NON_VIRTUAL, |
| | 96 | __GLBufferObject_P1__getOrCreateGLBufferObject__unsigned_int, |
| | 97 | "", |
| | 98 | ""); |
| | 99 | I_Method0(void, dirty, |
| | 100 | Properties::NON_VIRTUAL, |
| | 101 | __void__dirty, |
| | 102 | "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", |
| | 103 | ""); |
| | 104 | I_Method1(void, setModifiedCount, IN, unsigned int, value, |
| | 105 | Properties::NON_VIRTUAL, |
| | 106 | __void__setModifiedCount__unsigned_int, |
| | 107 | "Set the modified count value. ", |
| | 108 | ""); |
| | 109 | I_Method0(unsigned int, getModifiedCount, |
| | 110 | Properties::NON_VIRTUAL, |
| | 111 | __unsigned_int__getModifiedCount, |
| | 112 | "Get modified count value. ", |
| | 113 | ""); |
| | 114 | I_SimpleProperty(unsigned int, BufferIndex, |
| | 115 | __unsigned_int__getBufferIndex, |
| | 116 | __void__setBufferIndex__unsigned_int); |
| | 117 | I_SimpleProperty(osg::BufferObject *, BufferObject, |
| | 118 | __BufferObject_P1__getBufferObject, |
| | 119 | __void__setBufferObject__BufferObject_P1); |
| | 120 | I_SimpleProperty(const GLvoid *, DataPointer, |
| | 121 | __C5_GLvoid_P1__getDataPointer, |
| | 122 | 0); |
| | 123 | I_SimpleProperty(unsigned int, ModifiedCount, |
| | 124 | __unsigned_int__getModifiedCount, |
| | 125 | __void__setModifiedCount__unsigned_int); |
| | 126 | I_SimpleProperty(unsigned int, TotalDataSize, |
| | 127 | __unsigned_int__getTotalDataSize, |
| | 128 | 0); |
| | 129 | END_REFLECTOR |
| | 130 | |
| | 191 | I_Method1(unsigned int, addBufferData, IN, osg::BufferData *, bd, |
| | 192 | Properties::NON_VIRTUAL, |
| | 193 | __unsigned_int__addBufferData__BufferData_P1, |
| | 194 | "", |
| | 195 | ""); |
| | 196 | I_Method1(void, removeBufferData, IN, unsigned int, index, |
| | 197 | Properties::NON_VIRTUAL, |
| | 198 | __void__removeBufferData__unsigned_int, |
| | 199 | "", |
| | 200 | ""); |
| | 201 | I_Method1(void, removeBufferData, IN, osg::BufferData *, bd, |
| | 202 | Properties::NON_VIRTUAL, |
| | 203 | __void__removeBufferData__BufferData_P1, |
| | 204 | "", |
| | 205 | ""); |
| | 206 | I_Method2(void, setBufferData, IN, unsigned int, index, IN, osg::BufferData *, bd, |
| | 207 | Properties::NON_VIRTUAL, |
| | 208 | __void__setBufferData__unsigned_int__BufferData_P1, |
| | 209 | "", |
| | 210 | ""); |
| | 211 | I_Method1(osg::BufferData *, getBufferData, IN, unsigned int, index, |
| | 212 | Properties::NON_VIRTUAL, |
| | 213 | __BufferData_P1__getBufferData__unsigned_int, |
| | 214 | "", |
| | 215 | ""); |
| | 216 | I_Method1(const osg::BufferData *, getBufferData, IN, unsigned int, index, |
| | 217 | Properties::NON_VIRTUAL, |
| | 218 | __C5_BufferData_P1__getBufferData__unsigned_int, |
| | 219 | "", |
| | 220 | ""); |
| | 221 | I_Method0(unsigned int, getNumBufferData, |
| | 222 | Properties::NON_VIRTUAL, |
| | 223 | __unsigned_int__getNumBufferData, |
| | 224 | "", |
| | 225 | ""); |
| | 226 | I_Method1(osg::GLBufferObject *, getGLBufferObject, IN, unsigned int, contextID, |
| | 227 | Properties::NON_VIRTUAL, |
| | 228 | __GLBufferObject_P1__getGLBufferObject__unsigned_int, |
| | 229 | "", |
| | 230 | ""); |
| | 231 | I_Method1(osg::GLBufferObject *, getOrCreateGLBufferObject, IN, unsigned int, contextID, |
| | 232 | Properties::NON_VIRTUAL, |
| | 233 | __GLBufferObject_P1__getOrCreateGLBufferObject__unsigned_int, |
| | 234 | "", |
| | 235 | ""); |
| | 236 | I_ArrayProperty(osg::BufferData *, BufferData, |
| | 237 | __BufferData_P1__getBufferData__unsigned_int, |
| | 238 | __void__setBufferData__unsigned_int__BufferData_P1, |
| | 239 | __unsigned_int__getNumBufferData, |
| | 240 | __unsigned_int__addBufferData__BufferData_P1, |
| | 241 | 0, |
| | 242 | __void__removeBufferData__unsigned_int); |
| | 243 | I_SimpleProperty(GLenum, Target, |
| | 244 | __GLenum__getTarget, |
| | 245 | __void__setTarget__GLenum); |
| | 246 | I_SimpleProperty(GLenum, Usage, |
| | 247 | __GLenum__getUsage, |
| | 248 | __void__setUsage__GLenum); |
| | 249 | END_REFLECTOR |
| | 250 | |
| | 251 | BEGIN_OBJECT_REFLECTOR(osg::ElementBufferObject) |
| | 252 | I_DeclaringFile("osg/BufferObject"); |
| | 253 | I_BaseType(osg::BufferObject); |
| | 254 | I_Constructor0(____ElementBufferObject, |
| | 255 | "", |
| | 256 | ""); |
| | 257 | I_ConstructorWithDefaults2(IN, const osg::ElementBufferObject &, pbo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
| | 258 | ____ElementBufferObject__C5_ElementBufferObject_R1__C5_CopyOp_R1, |
| | 259 | "Copy constructor using CopyOp to manage deep vs shallow copy. ", |
| | 260 | ""); |
| | 261 | I_Method0(osg::Object *, cloneType, |
| | 262 | Properties::VIRTUAL, |
| | 263 | __osg_Object_P1__cloneType, |
| | 264 | "Clone the type of an object, with Object* return type. ", |
| | 265 | "Must be defined by derived classes. "); |
| | 266 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
| | 267 | Properties::VIRTUAL, |
| | 268 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
| | 269 | "Clone an object, with Object* return type. ", |
| | 270 | "Must be defined by derived classes. "); |
| | 271 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
| | 272 | Properties::VIRTUAL, |
| | 273 | __bool__isSameKindAs__C5_osg_Object_P1, |
| | 274 | "", |
| | 275 | ""); |
| | 276 | I_Method0(const char *, libraryName, |
| | 277 | Properties::VIRTUAL, |
| | 278 | __C5_char_P1__libraryName, |
| | 279 | "return the name of the object's library. ", |
| | 280 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
| | 281 | I_Method0(const char *, className, |
| | 282 | Properties::VIRTUAL, |
| | 283 | __C5_char_P1__className, |
| | 284 | "return the name of the object's class type. ", |
| | 285 | "Must be defined by derived classes. "); |
| | 286 | I_Method1(unsigned int, addDrawElements, IN, osg::DrawElements *, PrimitiveSet, |
| | 287 | Properties::NON_VIRTUAL, |
| | 288 | __unsigned_int__addDrawElements__osg_DrawElements_P1, |
| | 289 | "", |
| | 290 | ""); |
| | 291 | I_Method1(void, removeDrawElements, IN, osg::DrawElements *, PrimitiveSet, |
| | 292 | Properties::NON_VIRTUAL, |
| | 293 | __void__removeDrawElements__osg_DrawElements_P1, |
| | 294 | "", |
| | 295 | ""); |
| | 296 | I_Method2(void, setDrawElements, IN, unsigned int, i, IN, osg::DrawElements *, PrimitiveSet, |
| | 297 | Properties::NON_VIRTUAL, |
| | 298 | __void__setDrawElements__unsigned_int__DrawElements_P1, |
| | 299 | "", |
| | 300 | ""); |
| | 301 | I_Method1(osg::DrawElements *, getDrawElements, IN, unsigned int, i, |
| | 302 | Properties::NON_VIRTUAL, |
| | 303 | __DrawElements_P1__getDrawElements__unsigned_int, |
| | 304 | "", |
| | 305 | ""); |
| | 306 | I_Method1(const osg::DrawElements *, getDrawElements, IN, unsigned int, i, |
| | 307 | Properties::NON_VIRTUAL, |
| | 308 | __C5_DrawElements_P1__getDrawElements__unsigned_int, |
| | 309 | "", |
| | 310 | ""); |
| | 311 | I_IndexedProperty(osg::DrawElements *, DrawElements, |
| | 312 | __DrawElements_P1__getDrawElements__unsigned_int, |
| | 313 | __void__setDrawElements__unsigned_int__DrawElements_P1, |
| | 314 | 0); |
| | 315 | END_REFLECTOR |
| | 316 | |
| | 317 | BEGIN_OBJECT_REFLECTOR(osg::GLBufferObject) |
| | 318 | I_DeclaringFile("osg/BufferObject"); |
| | 319 | I_BaseType(osg::Referenced); |
| | 320 | I_ConstructorWithDefaults2(IN, unsigned int, contextID, , IN, osg::BufferObject *, bufferObject, 0, |
| | 321 | ____GLBufferObject__unsigned_int__BufferObject_P1, |
| | 322 | "", |
| | 323 | ""); |
| | 324 | I_Method1(void, setBufferObject, IN, osg::BufferObject *, bufferObject, |
| | 325 | Properties::NON_VIRTUAL, |
| | 326 | __void__setBufferObject__BufferObject_P1, |
| | 327 | "", |
| | 328 | ""); |
| | 329 | I_Method0(osg::BufferObject *, getBufferObject, |
| | 330 | Properties::NON_VIRTUAL, |
| | 331 | __BufferObject_P1__getBufferObject, |
| | 332 | "", |
| | 333 | ""); |
| | 334 | I_Method0(unsigned int, getContextID, |
| | 335 | Properties::NON_VIRTUAL, |
| | 336 | __unsigned_int__getContextID, |
| | 337 | "", |
| | 338 | ""); |
| | 339 | I_Method0(GLuint &, getGLObjectID, |
| | 340 | Properties::NON_VIRTUAL, |
| | 341 | __GLuint_R1__getGLObjectID, |
| | 342 | "", |
| | 343 | ""); |
| | 344 | I_Method0(GLuint, getGLObjectID, |
| | 345 | Properties::NON_VIRTUAL, |
| | 346 | __GLuint__getGLObjectID, |
| | 347 | "", |
| | 348 | ""); |
| | 349 | I_Method1(GLsizeiptrARB, getOffset, IN, unsigned int, i, |
| | 350 | Properties::NON_VIRTUAL, |
| | 351 | __GLsizeiptrARB__getOffset__unsigned_int, |
| | 352 | "", |
| | 353 | ""); |
| | 354 | I_Method0(void, bindBuffer, |
| | 355 | Properties::NON_VIRTUAL, |
| | 356 | __void__bindBuffer, |
| | 357 | "", |
| | 358 | ""); |
| | 359 | I_Method0(void, unbindBuffer, |
| | 360 | Properties::NON_VIRTUAL, |
| | 361 | __void__unbindBuffer, |
| | 362 | "", |
| | 363 | ""); |
| | 364 | I_Method0(bool, isDirty, |
| | 365 | Properties::NON_VIRTUAL, |
| | 366 | __bool__isDirty, |
| | 367 | "", |
| | 368 | ""); |
| | 369 | I_Method0(void, dirty, |
| | 370 | Properties::NON_VIRTUAL, |
| | 371 | __void__dirty, |
| | 372 | "", |
| | 373 | ""); |
| | 374 | I_Method0(void, clear, |
| | 375 | Properties::NON_VIRTUAL, |
| | 376 | __void__clear, |
| | 377 | "", |
| | 378 | ""); |
| | 379 | I_Method0(void, compileBuffer, |
| | 380 | Properties::NON_VIRTUAL, |
| | 381 | __void__compileBuffer, |
| | 382 | "", |
| | 383 | ""); |
| | 384 | I_Method0(void, deleteGLObject, |
| | 385 | Properties::NON_VIRTUAL, |
| | 386 | __void__deleteGLObject, |
| | 387 | "", |
| | 388 | ""); |
| | 389 | I_Method1(void, assign, IN, osg::BufferObject *, bufferObject, |
| | 390 | Properties::NON_VIRTUAL, |
| | 391 | __void__assign__BufferObject_P1, |
| | 392 | "", |
| | 393 | ""); |
| | 394 | I_Method0(bool, isPBOSupported, |
| | 395 | Properties::NON_VIRTUAL, |
| | 396 | __bool__isPBOSupported, |
| | 397 | "", |
| | 398 | ""); |
| | 399 | I_StaticMethod2(osg::GLBufferObject *, createGLBufferObject, IN, unsigned int, contextID, IN, const osg::BufferObject *, bufferObject, |
| | 400 | __GLBufferObject_P1__createGLBufferObject__unsigned_int__C5_BufferObject_P1_S, |
| | 401 | "", |
| | 402 | ""); |
| 149 | | I_PublicMemberProperty(osg::buffered_value< unsigned int >, modifiedCount); |
| 150 | | I_PublicMemberProperty(unsigned int, dataSize); |
| 151 | | I_PublicMemberProperty(unsigned int, offset); |
| 152 | | END_REFLECTOR |
| 153 | | |
| 154 | | TYPE_NAME_ALIAS(std::pair< osg::BufferObject::BufferEntry COMMA osg::DrawElements * >, osg::ElementBufferObject::BufferEntryDrawElementsPair) |
| 155 | | |
| 156 | | TYPE_NAME_ALIAS(std::vector< osg::ElementBufferObject::BufferEntryDrawElementsPair >, osg::ElementBufferObject::BufferEntryDrawElementsPairs) |
| 157 | | |
| 158 | | BEGIN_OBJECT_REFLECTOR(osg::ElementBufferObject) |
| 159 | | I_DeclaringFile("osg/BufferObject"); |
| 160 | | I_BaseType(osg::BufferObject); |
| 161 | | I_Constructor0(____ElementBufferObject, |
| 162 | | "", |
| 163 | | ""); |
| 164 | | I_ConstructorWithDefaults2(IN, const osg::ElementBufferObject &, pbo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
| 165 | | ____ElementBufferObject__C5_ElementBufferObject_R1__C5_CopyOp_R1, |
| 166 | | "Copy constructor using CopyOp to manage deep vs shallow copy. ", |
| 167 | | ""); |
| 168 | | I_Method0(osg::Object *, cloneType, |
| 169 | | Properties::VIRTUAL, |
| 170 | | __osg_Object_P1__cloneType, |
| 171 | | "Clone the type of an object, with Object* return type. ", |
| 172 | | "Must be defined by derived classes. "); |
| 173 | | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
| 174 | | Properties::VIRTUAL, |
| 175 | | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
| 176 | | "Clone an object, with Object* return type. ", |
| 177 | | "Must be defined by derived classes. "); |
| 178 | | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
| 179 | | Properties::VIRTUAL, |
| 180 | | __bool__isSameKindAs__C5_osg_Object_P1, |
| 181 | | "", |
| 182 | | ""); |
| 183 | | I_Method0(const char *, libraryName, |
| 184 | | Properties::VIRTUAL, |
| 185 | | __C5_char_P1__libraryName, |
| 186 | | "return the name of the object's library. ", |
| 187 | | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
| 188 | | I_Method0(const char *, className, |
| 189 | | Properties::VIRTUAL, |
| 190 | | __C5_char_P1__className, |
| 191 | | "return the name of the object's class type. ", |
| 192 | | "Must be defined by derived classes. "); |
| 193 | | I_Method1(unsigned int, addDrawElements, IN, osg::DrawElements *, PrimitiveSet, |
| 194 | | Properties::NON_VIRTUAL, |
| 195 | | __unsigned_int__addDrawElements__osg_DrawElements_P1, |
| 196 | | "", |
| 197 | | ""); |
| 198 | | I_Method1(void, removeDrawElements, IN, osg::DrawElements *, PrimitiveSet, |
| 199 | | Properties::NON_VIRTUAL, |
| 200 | | __void__removeDrawElements__osg_DrawElements_P1, |
| 201 | | "", |
| 202 | | ""); |
| 203 | | I_Method2(void, setDrawElements, IN, unsigned int, i, IN, osg::DrawElements *, PrimitiveSet, |
| 204 | | Properties::NON_VIRTUAL, |
| 205 | | __void__setDrawElements__unsigned_int__DrawElements_P1, |
| 206 | | "", |
| 207 | | ""); |
| 208 | | I_Method1(osg::DrawElements *, getDrawElements, IN, unsigned int, i, |
| 209 | | Properties::NON_VIRTUAL, |
| 210 | | __DrawElements_P1__getDrawElements__unsigned_int, |
| 211 | | "", |
| 212 | | ""); |
| 213 | | I_Method1(const osg::DrawElements *, getDrawElements, IN, unsigned int, i, |
| 214 | | Properties::NON_VIRTUAL, |
| 215 | | __C5_DrawElements_P1__getDrawElements__unsigned_int, |
| 216 | | "", |
| 217 | | ""); |
| 218 | | I_Method1(const GLvoid *, getOffset, IN, unsigned int, i, |
| 219 | | Properties::NON_VIRTUAL, |
| 220 | | __C5_GLvoid_P1__getOffset__unsigned_int, |
| 221 | | "", |
| 222 | | ""); |
| 223 | | I_Method1(void, compileBuffer, IN, osg::State &, state, |
| 224 | | Properties::VIRTUAL, |
| 225 | | __void__compileBuffer__State_R1, |
| 226 | | "", |
| 227 | | ""); |
| 228 | | I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, |
| 229 | | Properties::VIRTUAL, |
| 230 | | __void__resizeGLObjectBuffers__unsigned_int, |
| 231 | | "Resize any per context GLObject buffers to specified size. ", |
| 232 | | ""); |
| 233 | | I_IndexedProperty(osg::DrawElements *, DrawElements, |
| 234 | | __DrawElements_P1__getDrawElements__unsigned_int, |
| 235 | | __void__setDrawElements__unsigned_int__DrawElements_P1, |
| 236 | | 0); |
| 237 | | END_REFLECTOR |
| 238 | | |
| 239 | | TYPE_NAME_ALIAS(std::pair< osg::BufferObject::BufferEntry COMMA osg::Image * >, osg::PixelBufferObject::BufferEntryImagePair) |
| | 445 | I_PublicMemberProperty(unsigned int, modifiedCount); |
| | 446 | I_PublicMemberProperty(GLsizeiptrARB, dataSize); |
| | 447 | I_PublicMemberProperty(GLsizeiptrARB, offset); |
| | 448 | I_PublicMemberProperty(osg::BufferData *, dataSource); |
| | 449 | END_REFLECTOR |