root/OpenSceneGraph/trunk/src/osgWrappers/osg/GraphicsContext.cpp @ 10890

Revision 10890, 30.4 kB (checked in by robert, 5 years ago)

Renamed osg::GraphicsContext::OperationQueue? typedef to GraphicsOperationQueue? to avoid naming conflict with osg::OperationQueue?

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1// ***************************************************************************
2//
3//   Generated automatically by genwrapper.
4//   Please DO NOT EDIT this file!
5//
6// ***************************************************************************
7
8#include <osgIntrospection/ReflectionMacros>
9#include <osgIntrospection/TypedMethodInfo>
10#include <osgIntrospection/StaticMethodInfo>
11#include <osgIntrospection/Attributes>
12
13#include <OpenThreads/Mutex>
14#include <osg/DisplaySettings>
15#include <osg/GraphicsContext>
16#include <osg/GraphicsThread>
17#include <osg/Object>
18#include <osg/OperationThread>
19#include <osg/State>
20#include <osg/Vec4>
21
22// Must undefine IN and OUT macros defined in Windows headers
23#ifdef IN
24#undef IN
25#endif
26#ifdef OUT
27#undef OUT
28#endif
29
30#include <osg/Camera>
31       
32TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext::ScreenSettings >, osg::GraphicsContext::ScreenSettingsList)
33
34TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext * >, osg::GraphicsContext::GraphicsContexts)
35
36TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Operation > >, osg::GraphicsContext::GraphicsOperationQueue)
37
38TYPE_NAME_ALIAS(std::list< osg::Camera * >, osg::GraphicsContext::Cameras)
39
40BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext)
41        I_DeclaringFile("osg/GraphicsContext");
42        I_BaseType(osg::Object);
43        I_StaticMethod1(void, setWindowingSystemInterface, IN, osg::GraphicsContext::WindowingSystemInterface *, wsInterface,
44                        __void__setWindowingSystemInterface__WindowingSystemInterface_P1_S,
45                        "Set the query the windowing system for screens and create graphics context - this functor should be supplied by the windows toolkit. ",
46                        "");
47        I_StaticMethod0(osg::GraphicsContext::WindowingSystemInterface *, getWindowingSystemInterface,
48                        __WindowingSystemInterface_P1__getWindowingSystemInterface_S,
49                        "Get the WindowingSystemInterface. ",
50                        "");
51        I_StaticMethod1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits,
52                        __GraphicsContext_P1__createGraphicsContext__Traits_P1_S,
53                        "Create a graphics context for a specified set of traits. ",
54                        "");
55        I_StaticMethod0(unsigned int, createNewContextID,
56                        __unsigned_int__createNewContextID_S,
57                        "Create a contextID for a new graphics context, this contextID is used to set up the osg::State associate with context. ",
58                        "Automatically increments the usage count of the contextID to 1. ");
59        I_StaticMethod0(unsigned int, getMaxContextID,
60                        __unsigned_int__getMaxContextID_S,
61                        "Get the current max ContextID. ",
62                        "");
63        I_StaticMethod1(void, incrementContextIDUsageCount, IN, unsigned int, contextID,
64                        __void__incrementContextIDUsageCount__unsigned_int_S,
65                        "Increment the usage count associate with a contextID. ",
66                        "The usage count specifies how many graphics contexts a specific contextID is shared between. ");
67        I_StaticMethod1(void, decrementContextIDUsageCount, IN, unsigned int, contextID,
68                        __void__decrementContextIDUsageCount__unsigned_int_S,
69                        "Decrement the usage count associate with a contextID. ",
70                        "Once the contextID goes to 0 the contextID is then free to be reused. ");
71        I_StaticMethod0(osg::GraphicsContext::GraphicsContexts, getAllRegisteredGraphicsContexts,
72                        __GraphicsContexts__getAllRegisteredGraphicsContexts_S,
73                        "Get all the registered graphics contexts. ",
74                        "");
75        I_StaticMethod1(osg::GraphicsContext::GraphicsContexts, getRegisteredGraphicsContexts, IN, unsigned int, contextID,
76                        __GraphicsContexts__getRegisteredGraphicsContexts__unsigned_int_S,
77                        "Get all the registered graphics contexts associated with a specific contextID. ",
78                        "");
79        I_StaticMethod2(void, setCompileContext, IN, unsigned int, contextID, IN, osg::GraphicsContext *, gc,
80                        __void__setCompileContext__unsigned_int__GraphicsContext_P1_S,
81                        "Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID. ",
82                        "");
83        I_StaticMethod1(osg::GraphicsContext *, getOrCreateCompileContext, IN, unsigned int, contextID,
84                        __GraphicsContext_P1__getOrCreateCompileContext__unsigned_int_S,
85                        "Get existing or create a new GraphicsContext to do background compilation for GraphicsContexts associated with specified contextID. ",
86                        "");
87        I_StaticMethod1(osg::GraphicsContext *, getCompileContext, IN, unsigned int, contextID,
88                        __GraphicsContext_P1__getCompileContext__unsigned_int_S,
89                        "Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID. ",
90                        "");
91        I_Method1(void, add, IN, osg::Operation *, operation,
92                  Properties::NON_VIRTUAL,
93                  __void__add__Operation_P1,
94                  "Add operation to end of OperationQueue. ",
95                  "");
96        I_Method1(void, remove, IN, osg::Operation *, operation,
97                  Properties::NON_VIRTUAL,
98                  __void__remove__Operation_P1,
99                  "Remove operation from OperationQueue. ",
100                  "");
101        I_Method1(void, remove, IN, const std::string &, name,
102                  Properties::NON_VIRTUAL,
103                  __void__remove__C5_std_string_R1,
104                  "Remove named operation from OperationQueue. ",
105                  "");
106        I_Method0(void, removeAllOperations,
107                  Properties::NON_VIRTUAL,
108                  __void__removeAllOperations,
109                  "Remove all operations from OperationQueue. ",
110                  "");
111        I_Method0(void, runOperations,
112                  Properties::NON_VIRTUAL,
113                  __void__runOperations,
114                  "Run the operations. ",
115                  "");
116        I_Method0(osg::GraphicsContext::GraphicsOperationQueue &, getOperationsQueue,
117                  Properties::NON_VIRTUAL,
118                  __GraphicsOperationQueue_R1__getOperationsQueue,
119                  "Get the operations queue, not you must use the OperationsMutex when accessing the queue. ",
120                  "");
121        I_Method0(OpenThreads::Mutex *, getOperationsMutex,
122                  Properties::NON_VIRTUAL,
123                  __OpenThreads_Mutex_P1__getOperationsMutex,
124                  "Get the operations queue mutex. ",
125                  "");
126        I_Method0(osg::RefBlock *, getOperationsBlock,
127                  Properties::NON_VIRTUAL,
128                  __osg_RefBlock_P1__getOperationsBlock,
129                  "Get the operations queue block used to mark an empty queue, if you end items into the empty queue you must release this block. ",
130                  "");
131        I_Method0(osg::Operation *, getCurrentOperation,
132                  Properties::NON_VIRTUAL,
133                  __Operation_P1__getCurrentOperation,
134                  "Get the current operations that is being run. ",
135                  "");
136        I_Method0(const osg::GraphicsContext::Traits *, getTraits,
137                  Properties::NON_VIRTUAL,
138                  __C5_Traits_P1__getTraits,
139                  "Get the traits of the GraphicsContext. ",
140                  "");
141        I_Method0(bool, valid,
142                  Properties::PURE_VIRTUAL,
143                  __bool__valid,
144                  "Return whether a valid and usable GraphicsContext has been created. ",
145                  "");
146        I_Method1(void, setState, IN, osg::State *, state,
147                  Properties::NON_VIRTUAL,
148                  __void__setState__State_P1,
149                  "Set the State object which tracks the current OpenGL state for this graphics context. ",
150                  "");
151        I_Method0(osg::State *, getState,
152                  Properties::NON_VIRTUAL,
153                  __State_P1__getState,
154                  "Get the State object which tracks the current OpenGL state for this graphics context. ",
155                  "");
156        I_Method0(const osg::State *, getState,
157                  Properties::NON_VIRTUAL,
158                  __C5_State_P1__getState,
159                  "Get the const State object which tracks the current OpenGL state for this graphics context. ",
160                  "");
161        I_Method1(void, setClearColor, IN, const osg::Vec4 &, color,
162                  Properties::NON_VIRTUAL,
163                  __void__setClearColor__C5_Vec4_R1,
164                  "Sets the clear color. ",
165                  "");
166        I_Method0(const osg::Vec4 &, getClearColor,
167                  Properties::NON_VIRTUAL,
168                  __C5_Vec4_R1__getClearColor,
169                  "Returns the clear color. ",
170                  "");
171        I_Method1(void, setClearMask, IN, GLbitfield, mask,
172                  Properties::NON_VIRTUAL,
173                  __void__setClearMask__GLbitfield,
174                  "Set the clear mask used in glClear(. ",
175                  ".). Defaults to 0 - so no clear is done by default by the GraphicsContext, instead the Camera's attached the GraphicsContext will do the clear. GraphicsContext::setClearMask() is useful for when the Camera's Viewports don't conver the whole context, so the context will fill in the gaps. ");
176        I_Method0(GLbitfield, getClearMask,
177                  Properties::NON_VIRTUAL,
178                  __GLbitfield__getClearMask,
179                  "Get the clear mask. ",
180                  "");
181        I_Method0(void, clear,
182                  Properties::VIRTUAL,
183                  __void__clear,
184                  "Do an OpenGL clear of the full graphics context/window. ",
185                  "Note, must only be called from a thread with this context current. ");
186        I_Method0(double, getTimeSinceLastClear,
187                  Properties::NON_VIRTUAL,
188                  __double__getTimeSinceLastClear,
189                  "",
190                  "");
191        I_Method0(bool, realize,
192                  Properties::NON_VIRTUAL,
193                  __bool__realize,
194                  "Realize the GraphicsContext. ",
195                  "");
196        I_MethodWithDefaults1(void, close, IN, bool, callCloseImplementation, true,
197                              Properties::NON_VIRTUAL,
198                              __void__close__bool,
199                              "close the graphics context. ",
200                              "close(bool) stops any associated graphics threads, releases the contextID for the GraphicsContext then optional calls closeImplementation() to do the actual deletion of the graphics. This call is made optional as there are times when the graphics context has already been deleted externally and only the OSG side of the its data need to be closed down. ");
201        I_Method0(void, swapBuffers,
202                  Properties::NON_VIRTUAL,
203                  __void__swapBuffers,
204                  "swap the front and back buffers. ",
205                  "");
206        I_Method0(bool, isRealized,
207                  Properties::NON_VIRTUAL,
208                  __bool__isRealized,
209                  "Return true if the graphics context has been realized and is ready to use. ",
210                  "");
211        I_Method0(bool, makeCurrent,
212                  Properties::NON_VIRTUAL,
213                  __bool__makeCurrent,
214                  "Make this graphics context current. ",
215                  "Implemented by calling makeCurrentImplementation(). Returns true on success. ");
216        I_Method1(bool, makeContextCurrent, IN, osg::GraphicsContext *, readContext,
217                  Properties::NON_VIRTUAL,
218                  __bool__makeContextCurrent__GraphicsContext_P1,
219                  "Make this graphics context current with specified read context. ",
220                  "Implemented by calling makeContextCurrentImplementation(). Returns true on success. ");
221        I_Method0(bool, releaseContext,
222                  Properties::NON_VIRTUAL,
223                  __bool__releaseContext,
224                  "Release the graphics context. ",
225                  "Returns true on success. ");
226        I_Method0(bool, isCurrent,
227                  Properties::NON_VIRTUAL,
228                  __bool__isCurrent,
229                  "Return true if the current thread has this OpenGL graphics context. ",
230                  "");
231        I_Method1(void, bindPBufferToTexture, IN, GLenum, buffer,
232                  Properties::NON_VIRTUAL,
233                  __void__bindPBufferToTexture__GLenum,
234                  "Bind the graphics context to associated texture. ",
235                  "");
236        I_Method0(void, createGraphicsThread,
237                  Properties::NON_VIRTUAL,
238                  __void__createGraphicsThread,
239                  "Create a graphics thread to the graphics context, so that the thread handles all OpenGL operations. ",
240                  "");
241        I_Method1(void, setGraphicsThread, IN, osg::GraphicsThread *, gt,
242                  Properties::NON_VIRTUAL,
243                  __void__setGraphicsThread__GraphicsThread_P1,
244                  "Assign a graphics thread to the graphics context, so that the thread handles all OpenGL operations. ",
245                  "");
246        I_Method0(osg::GraphicsThread *, getGraphicsThread,
247                  Properties::NON_VIRTUAL,
248                  __GraphicsThread_P1__getGraphicsThread,
249                  "Get the graphics thread assigned the graphics context. ",
250                  "");
251        I_Method0(const osg::GraphicsThread *, getGraphicsThread,
252                  Properties::NON_VIRTUAL,
253                  __C5_GraphicsThread_P1__getGraphicsThread,
254                  "Get the const graphics thread assigned the graphics context. ",
255                  "");
256        I_Method0(bool, realizeImplementation,
257                  Properties::PURE_VIRTUAL,
258                  __bool__realizeImplementation,
259                  "Realize the GraphicsContext implementation, Pure virtual - must be implemented by concrete implementations of GraphicsContext. ",
260                  "");
261        I_Method0(bool, isRealizedImplementation,
262                  Properties::PURE_VIRTUAL,
263                  __bool__isRealizedImplementation,
264                  "Return true if the graphics context has been realized, and is ready to use, implementation. ",
265                  "Pure virtual - must be implemented by concrete implementations of GraphicsContext. ");
266        I_Method0(void, closeImplementation,
267                  Properties::PURE_VIRTUAL,
268                  __void__closeImplementation,
269                  "Close the graphics context implementation. ",
270                  "Pure virtual - must be implemented by concrete implementations of GraphicsContext. ");
271        I_Method0(bool, makeCurrentImplementation,
272                  Properties::PURE_VIRTUAL,
273                  __bool__makeCurrentImplementation,
274                  "Make this graphics context current implementation. ",
275                  "Pure virtual - must be implemented by concrete implementations of GraphicsContext. ");
276        I_Method1(bool, makeContextCurrentImplementation, IN, osg::GraphicsContext *, readContext,
277                  Properties::PURE_VIRTUAL,
278                  __bool__makeContextCurrentImplementation__GraphicsContext_P1,
279                  "Make this graphics context current with specified read context implementation. ",
280                  "Pure virtual - must be implemented by concrete implementations of GraphicsContext. ");
281        I_Method0(bool, releaseContextImplementation,
282                  Properties::PURE_VIRTUAL,
283                  __bool__releaseContextImplementation,
284                  "Release the graphics context implementation. ",
285                  "");
286        I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, buffer,
287                  Properties::PURE_VIRTUAL,
288                  __void__bindPBufferToTextureImplementation__GLenum,
289                  "Pure virtual, Bind the graphics context to associated texture implementation. ",
290                  "Pure virtual - must be implemented by concrete implementations of GraphicsContext. ");
291        I_Method0(void, swapBuffersImplementation,
292                  Properties::PURE_VIRTUAL,
293                  __void__swapBuffersImplementation,
294                  "Swap the front and back buffers implementation. ",
295                  "Pure virtual - must be implemented by concrete implementations of GraphicsContext. ");
296        I_Method4(void, resized, IN, int, x, IN, int, y, IN, int, width, IN, int, height,
297                  Properties::NON_VIRTUAL,
298                  __void__resized__int__int__int__int,
299                  "resized method should be called when the underlying window has been resized and the GraphicsWindow and associated Cameras must be updated to keep in sync with the new size. ",
300                  "");
301        I_Method1(void, setResizedCallback, IN, osg::GraphicsContext::ResizedCallback *, rc,
302                  Properties::NON_VIRTUAL,
303                  __void__setResizedCallback__ResizedCallback_P1,
304                  "Set the resized callback which overrides the GraphicsConext::realizedImplementation(), allow developers to provide custom behavior in response to a window being resized. ",
305                  "");
306        I_Method0(osg::GraphicsContext::ResizedCallback *, getResizedCallback,
307                  Properties::NON_VIRTUAL,
308                  __ResizedCallback_P1__getResizedCallback,
309                  "Get the resized callback which overrides the GraphicsConext::realizedImplementation(). ",
310                  "");
311        I_Method0(const osg::GraphicsContext::ResizedCallback *, getResizedCallback,
312                  Properties::NON_VIRTUAL,
313                  __C5_ResizedCallback_P1__getResizedCallback,
314                  "Get the const resized callback which overrides the GraphicsConext::realizedImplementation(). ",
315                  "");
316        I_Method4(void, resizedImplementation, IN, int, x, IN, int, y, IN, int, width, IN, int, height,
317                  Properties::VIRTUAL,
318                  __void__resizedImplementation__int__int__int__int,
319                  "resized implementation, by default resizes the viewports and aspect ratios the cameras associated with the graphics Window. ",
320                  "");
321        I_Method0(osg::GraphicsContext::Cameras &, getCameras,
322                  Properties::NON_VIRTUAL,
323                  __Cameras_R1__getCameras,
324                  "Get the the list of cameras associated with this graphics context. ",
325                  "");
326        I_Method0(const osg::GraphicsContext::Cameras &, getCameras,
327                  Properties::NON_VIRTUAL,
328                  __C5_Cameras_R1__getCameras,
329                  "Get the the const list of cameras associated with this graphics context. ",
330                  "");
331        I_Method1(bool, isSameKindAs, IN, const osg::Object *, object,
332                  Properties::VIRTUAL,
333                  __bool__isSameKindAs__C5_Object_P1,
334                  "",
335                  "");
336        I_Method0(const char *, libraryName,
337                  Properties::VIRTUAL,
338                  __C5_char_P1__libraryName,
339                  "return the name of the object's library. ",
340                  "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
341        I_Method0(const char *, className,
342                  Properties::VIRTUAL,
343                  __C5_char_P1__className,
344                  "return the name of the object's class type. ",
345                  "Must be defined by derived classes. ");
346        I_ProtectedConstructor0(____GraphicsContext,
347                                "",
348                                "");
349        I_ProtectedConstructor2(IN, const osg::GraphicsContext &, x, IN, const osg::CopyOp &, x,
350                                ____GraphicsContext__C5_GraphicsContext_R1__C5_osg_CopyOp_R1,
351                                "",
352                                "");
353        I_ProtectedMethod0(osg::Object *, cloneType,
354                           Properties::VIRTUAL,
355                           Properties::CONST,
356                           __Object_P1__cloneType,
357                           "Clone the type of an object, with Object* return type. ",
358                           "Must be defined by derived classes. ");
359        I_ProtectedMethod1(osg::Object *, clone, IN, const osg::CopyOp &, x,
360                           Properties::VIRTUAL,
361                           Properties::CONST,
362                           __Object_P1__clone__C5_CopyOp_R1,
363                           "Clone an object, with Object* return type. ",
364                           "Must be defined by derived classes. ");
365        I_ProtectedMethod1(void, addCamera, IN, osg::Camera *, camera,
366                           Properties::NON_VIRTUAL,
367                           Properties::NON_CONST,
368                           __void__addCamera__osg_Camera_P1,
369                           "",
370                           "");
371        I_ProtectedMethod1(void, removeCamera, IN, osg::Camera *, camera,
372                           Properties::NON_VIRTUAL,
373                           Properties::NON_CONST,
374                           __void__removeCamera__osg_Camera_P1,
375                           "",
376                           "");
377        I_SimpleProperty(osg::GraphicsContext::Cameras &, Cameras,
378                         __Cameras_R1__getCameras,
379                         0);
380        I_SimpleProperty(const osg::Vec4 &, ClearColor,
381                         __C5_Vec4_R1__getClearColor,
382                         __void__setClearColor__C5_Vec4_R1);
383        I_SimpleProperty(GLbitfield, ClearMask,
384                         __GLbitfield__getClearMask,
385                         __void__setClearMask__GLbitfield);
386        I_SimpleProperty(osg::Operation *, CurrentOperation,
387                         __Operation_P1__getCurrentOperation,
388                         0);
389        I_SimpleProperty(osg::GraphicsThread *, GraphicsThread,
390                         __GraphicsThread_P1__getGraphicsThread,
391                         __void__setGraphicsThread__GraphicsThread_P1);
392        I_SimpleProperty(osg::RefBlock *, OperationsBlock,
393                         __osg_RefBlock_P1__getOperationsBlock,
394                         0);
395        I_SimpleProperty(OpenThreads::Mutex *, OperationsMutex,
396                         __OpenThreads_Mutex_P1__getOperationsMutex,
397                         0);
398        I_SimpleProperty(osg::GraphicsContext::GraphicsOperationQueue &, OperationsQueue,
399                         __GraphicsOperationQueue_R1__getOperationsQueue,
400                         0);
401        I_SimpleProperty(osg::GraphicsContext::ResizedCallback *, ResizedCallback,
402                         __ResizedCallback_P1__getResizedCallback,
403                         __void__setResizedCallback__ResizedCallback_P1);
404        I_SimpleProperty(osg::State *, State,
405                         __State_P1__getState,
406                         __void__setState__State_P1);
407        I_SimpleProperty(double, TimeSinceLastClear,
408                         __double__getTimeSinceLastClear,
409                         0);
410        I_SimpleProperty(const osg::GraphicsContext::Traits *, Traits,
411                         __C5_Traits_P1__getTraits,
412                         0);
413END_REFLECTOR
414
415BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext::ResizedCallback)
416        I_DeclaringFile("osg/GraphicsContext");
417        I_BaseType(osg::Referenced);
418        I_Constructor0(____ResizedCallback,
419                       "",
420                       "");
421        I_Method5(void, resizedImplementation, IN, osg::GraphicsContext *, gc, IN, int, x, IN, int, y, IN, int, width, IN, int, height,
422                  Properties::PURE_VIRTUAL,
423                  __void__resizedImplementation__GraphicsContext_P1__int__int__int__int,
424                  "",
425                  "");
426END_REFLECTOR
427
428BEGIN_VALUE_REFLECTOR(osg::GraphicsContext::ScreenIdentifier)
429        I_DeclaringFile("osg/GraphicsContext");
430        I_Constructor0(____ScreenIdentifier,
431                       "",
432                       "");
433        I_Constructor1(IN, int, in_screenNum,
434                       Properties::NON_EXPLICIT,
435                       ____ScreenIdentifier__int,
436                       "",
437                       "");
438        I_Constructor3(IN, const std::string &, in_hostName, IN, int, in_displayNum, IN, int, in_screenNum,
439                       ____ScreenIdentifier__C5_std_string_R1__int__int,
440                       "",
441                       "");
442        I_Method0(std::string, displayName,
443                  Properties::NON_VIRTUAL,
444                  __std_string__displayName,
445                  "Return the display name in the form hostName::displayNum:screenNum. ",
446                  "");
447        I_Method0(void, readDISPLAY,
448                  Properties::NON_VIRTUAL,
449                  __void__readDISPLAY,
450                  "Read the DISPLAY environmental variable, and set the ScreenIdentifier accordingly. ",
451                  "Note, if either of displayNum or screenNum are not defined then -1 is set respectively to signify the this parameter has not been set. When parameters are undefined one can call call setUndefinedScreenDetalstoDefaultScreen() method after readDISPLAY() to ensure valid values. ");
452        I_Method1(void, setScreenIdentifier, IN, const std::string &, displayName,
453                  Properties::NON_VIRTUAL,
454                  __void__setScreenIdentifier__C5_std_string_R1,
455                  "Set the screenIndentifier from the displayName string. ",
456                  "Note, if either of displayNum or screenNum are not defined then -1 is set respectively to signify the this parameter has not been set. When parameters are undefined one can call call setUndefinedScreenDetalstoDefaultScreen() method after readDISPLAY() to ensure valid values. ");
457        I_Method0(void, setUndefinedScreenDetailsToDefaultScreen,
458                  Properties::NON_VIRTUAL,
459                  __void__setUndefinedScreenDetailsToDefaultScreen,
460                  "Set any undefined displayNum or screenNum values (i.e. ",
461                  "-1) to the default display & screen of 0 respectively. ");
462        I_SimpleProperty(const std::string &, ScreenIdentifier,
463                         0,
464                         __void__setScreenIdentifier__C5_std_string_R1);
465        I_PublicMemberProperty(std::string, hostName);
466        I_PublicMemberProperty(int, displayNum);
467        I_PublicMemberProperty(int, screenNum);
468END_REFLECTOR
469
470BEGIN_VALUE_REFLECTOR(osg::GraphicsContext::ScreenSettings)
471        I_DeclaringFile("osg/GraphicsContext");
472        I_Constructor0(____ScreenSettings,
473                       "",
474                       "");
475        I_ConstructorWithDefaults4(IN, int, width, , IN, int, height, , IN, double, refreshRate, 0, IN, unsigned int, colorDepth, 0,
476                                   ____ScreenSettings__int__int__double__unsigned_int,
477                                   "",
478                                   "");
479        I_PublicMemberProperty(int, width);
480        I_PublicMemberProperty(int, height);
481        I_PublicMemberProperty(double, refreshRate);
482        I_PublicMemberProperty(unsigned int, colorDepth);
483END_REFLECTOR
484
485BEGIN_OBJECT_REFLECTOR(osg::GraphicsContext::Traits)
486        I_DeclaringFile("osg/GraphicsContext");
487        I_BaseType(osg::Referenced);
488        I_BaseType(osg::GraphicsContext::ScreenIdentifier);
489        I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, 0,
490                                   Properties::NON_EXPLICIT,
491                                   ____Traits__DisplaySettings_P1,
492                                   "",
493                                   "");
494        I_PublicMemberProperty(int, x);
495        I_PublicMemberProperty(int, y);
496        I_PublicMemberProperty(int, width);
497        I_PublicMemberProperty(int, height);
498        I_PublicMemberProperty(std::string, windowName);
499        I_PublicMemberProperty(bool, windowDecoration);
500        I_PublicMemberProperty(bool, supportsResize);
501        I_PublicMemberProperty(unsigned int, red);
502        I_PublicMemberProperty(unsigned int, blue);
503        I_PublicMemberProperty(unsigned int, green);
504        I_PublicMemberProperty(unsigned int, alpha);
505        I_PublicMemberProperty(unsigned int, depth);
506        I_PublicMemberProperty(unsigned int, stencil);
507        I_PublicMemberProperty(unsigned int, sampleBuffers);
508        I_PublicMemberProperty(unsigned int, samples);
509        I_PublicMemberProperty(bool, pbuffer);
510        I_PublicMemberProperty(bool, quadBufferStereo);
511        I_PublicMemberProperty(bool, doubleBuffer);
512        I_PublicMemberProperty(GLenum, target);
513        I_PublicMemberProperty(GLenum, format);
514        I_PublicMemberProperty(unsigned int, level);
515        I_PublicMemberProperty(unsigned int, face);
516        I_PublicMemberProperty(unsigned int, mipMapGeneration);
517        I_PublicMemberProperty(bool, vsync);
518        I_PublicMemberProperty(bool, useMultiThreadedOpenGLEngine);
519        I_PublicMemberProperty(bool, useCursor);
520        I_PublicMemberProperty(std::string, glContextVersion);
521        I_PublicMemberProperty(unsigned int, glContextFlags);
522        I_PublicMemberProperty(unsigned int, glContextProfileMask);
523        I_PublicMemberProperty(osg::GraphicsContext *, sharedContext);
524        I_PublicMemberProperty(osg::ref_ptr< osg::Referenced >, inheritedWindowData);
525        I_PublicMemberProperty(bool, setInheritedWindowPixelFormat);
526        I_PublicMemberProperty(bool, overrideRedirect);
527END_REFLECTOR
528
529BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext::WindowingSystemInterface)
530        I_DeclaringFile("osg/GraphicsContext");
531        I_BaseType(osg::Referenced);
532        I_Constructor0(____WindowingSystemInterface,
533                       "",
534                       "");
535        I_MethodWithDefaults1(unsigned int, getNumScreens, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, osg::GraphicsContext::ScreenIdentifier(),
536                              Properties::PURE_VIRTUAL,
537                              __unsigned_int__getNumScreens__C5_ScreenIdentifier_R1,
538                              "",
539                              "");
540        I_Method2(void, getScreenSettings, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, osg::GraphicsContext::ScreenSettings &, resolution,
541                  Properties::PURE_VIRTUAL,
542                  __void__getScreenSettings__C5_ScreenIdentifier_R1__ScreenSettings_R1,
543                  "",
544                  "");
545        I_Method2(bool, setScreenSettings, IN, const osg::GraphicsContext::ScreenIdentifier &, x, IN, const osg::GraphicsContext::ScreenSettings &, x,
546                  Properties::VIRTUAL,
547                  __bool__setScreenSettings__C5_ScreenIdentifier_R1__C5_ScreenSettings_R1,
548                  "",
549                  "");
550        I_Method2(void, enumerateScreenSettings, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, osg::GraphicsContext::ScreenSettingsList &, resolutionList,
551                  Properties::PURE_VIRTUAL,
552                  __void__enumerateScreenSettings__C5_ScreenIdentifier_R1__ScreenSettingsList_R1,
553                  "",
554                  "");
555        I_Method1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits,
556                  Properties::PURE_VIRTUAL,
557                  __GraphicsContext_P1__createGraphicsContext__Traits_P1,
558                  "",
559                  "");
560        I_Method3(void, getScreenResolution, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, unsigned int &, width, IN, unsigned int &, height,
561                  Properties::NON_VIRTUAL,
562                  __void__getScreenResolution__C5_ScreenIdentifier_R1__unsigned_int_R1__unsigned_int_R1,
563                  "Gets screen resolution without using the ScreenResolution structure. ",
564                  "");
565        I_Method3(bool, setScreenResolution, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, unsigned int, width, IN, unsigned int, height,
566                  Properties::NON_VIRTUAL,
567                  __bool__setScreenResolution__C5_ScreenIdentifier_R1__unsigned_int__unsigned_int,
568                  "Sets screen resolution without using the ScreenSettings structure. ",
569                  "");
570        I_Method2(bool, setScreenRefreshRate, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, double, refreshRate,
571                  Properties::NON_VIRTUAL,
572                  __bool__setScreenRefreshRate__C5_ScreenIdentifier_R1__double,
573                  "",
574                  "");
575END_REFLECTOR
576
577BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Operation >)
578        I_DeclaringFile("osg/ref_ptr");
579        I_Constructor0(____ref_ptr,
580                       "",
581                       "");
582        I_Constructor1(IN, osg::Operation *, ptr,
583                       Properties::NON_EXPLICIT,
584                       ____ref_ptr__T_P1,
585                       "",
586                       "");
587        I_Constructor1(IN, const osg::ref_ptr< osg::Operation > &, rp,
588                       Properties::NON_EXPLICIT,
589                       ____ref_ptr__C5_ref_ptr_R1,
590                       "",
591                       "");
592        I_Method0(osg::Operation *, get,
593                  Properties::NON_VIRTUAL,
594                  __T_P1__get,
595                  "",
596                  "");
597        I_Method0(bool, valid,
598                  Properties::NON_VIRTUAL,
599                  __bool__valid,
600                  "",
601                  "");
602        I_Method0(osg::Operation *, release,
603                  Properties::NON_VIRTUAL,
604                  __T_P1__release,
605                  "",
606                  "");
607        I_Method1(void, swap, IN, osg::ref_ptr< osg::Operation > &, rp,
608                  Properties::NON_VIRTUAL,
609                  __void__swap__ref_ptr_R1,
610                  "",
611                  "");
612        I_SimpleProperty(osg::Operation *, ,
613                         __T_P1__get,
614                         0);
615END_REFLECTOR
616
617STD_LIST_REFLECTOR(std::list< osg::Camera * >)
618
619STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::Operation > >)
620
621STD_VECTOR_REFLECTOR(std::vector< osg::GraphicsContext * >)
622
623STD_VECTOR_REFLECTOR(std::vector< osg::GraphicsContext::ScreenSettings >)
Note: See TracBrowser for help on using the browser.