📄 graphicscontext.cpp
字号:
I_StaticMethod1(void, setWindowingSystemInterface, IN, osg::GraphicsContext::WindowingSystemInterface *, wsInterface, __void__setWindowingSystemInterface__WindowingSystemInterface_P1_S, "Set the query the windowing system for screens and create graphics context - this functor should be supplied by the windows toolkit. ", ""); I_StaticMethod0(osg::GraphicsContext::WindowingSystemInterface *, getWindowingSystemInterface, __WindowingSystemInterface_P1__getWindowingSystemInterface_S, "Get the WindowingSystemInterface. ", ""); I_StaticMethod1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits, __GraphicsContext_P1__createGraphicsContext__Traits_P1_S, "Create a graphics context for a specified set of traits. ", ""); I_StaticMethod0(unsigned int, createNewContextID, __unsigned_int__createNewContextID_S, "Create a contextID for a new graphics context, this contextID is used to set up the osg::State associate with context. ", "Automatically increments the usage count of the contextID to 1. "); I_StaticMethod0(unsigned int, getMaxContextID, __unsigned_int__getMaxContextID_S, "Get the current max ContextID. ", ""); I_StaticMethod1(void, incrementContextIDUsageCount, IN, unsigned int, contextID, __void__incrementContextIDUsageCount__unsigned_int_S, "Increment the usage count associate with a contextID. ", "The usage count specifies how many graphics contexts a specific contextID is shared between. "); I_StaticMethod1(void, decrementContextIDUsageCount, IN, unsigned int, contextID, __void__decrementContextIDUsageCount__unsigned_int_S, "Decrement the usage count associate with a contextID. ", "Once the contextID goes to 0 the contextID is then free to be reused. "); I_StaticMethod0(osg::GraphicsContext::GraphicsContexts, getAllRegisteredGraphicsContexts, __GraphicsContexts__getAllRegisteredGraphicsContexts_S, "Get all the registered graphics contexts. ", ""); I_StaticMethod1(osg::GraphicsContext::GraphicsContexts, getRegisteredGraphicsContexts, IN, unsigned int, contextID, __GraphicsContexts__getRegisteredGraphicsContexts__unsigned_int_S, "Get all the registered graphics contexts associated with a specific contextID. ", ""); I_StaticMethod2(void, setCompileContext, IN, unsigned int, contextID, IN, osg::GraphicsContext *, gc, __void__setCompileContext__unsigned_int__GraphicsContext_P1_S, "Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID. ", ""); I_StaticMethod1(osg::GraphicsContext *, getOrCreateCompileContext, IN, unsigned int, contextID, __GraphicsContext_P1__getOrCreateCompileContext__unsigned_int_S, "Get existing or create a new GraphicsContext to do background compilation for GraphicsContexts associated with specified contextID. ", ""); I_StaticMethod1(osg::GraphicsContext *, getCompileContext, IN, unsigned int, contextID, __GraphicsContext_P1__getCompileContext__unsigned_int_S, "Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID. ", ""); I_ProtectedConstructor0(____GraphicsContext, "", ""); I_ProtectedConstructor2(IN, const osg::GraphicsContext &, x, IN, const osg::CopyOp &, x, ____GraphicsContext__C5_GraphicsContext_R1__C5_osg_CopyOp_R1, "", ""); I_ProtectedMethod0(osg::Object *, cloneType, Properties::VIRTUAL, Properties::CONST, __Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_ProtectedMethod1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, Properties::CONST, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_ProtectedMethod1(void, addCamera, IN, osg::Camera *, camera, Properties::NON_VIRTUAL, Properties::NON_CONST, __void__addCamera__osg_Camera_P1, "", ""); I_ProtectedMethod1(void, removeCamera, IN, osg::Camera *, camera, Properties::NON_VIRTUAL, Properties::NON_CONST, __void__removeCamera__osg_Camera_P1, "", ""); I_SimpleProperty(osg::GraphicsContext::Cameras &, Cameras, __Cameras_R1__getCameras, 0); I_SimpleProperty(const osg::Vec4 &, ClearColor, __C5_Vec4_R1__getClearColor, __void__setClearColor__C5_Vec4_R1); I_SimpleProperty(GLbitfield, ClearMask, __GLbitfield__getClearMask, __void__setClearMask__GLbitfield); I_SimpleProperty(osg::Operation *, CurrentOperation, __Operation_P1__getCurrentOperation, 0); I_SimpleProperty(osg::GraphicsThread *, GraphicsThread, __GraphicsThread_P1__getGraphicsThread, __void__setGraphicsThread__GraphicsThread_P1); I_SimpleProperty(osg::RefBlock *, OperationsBlock, __osg_RefBlock_P1__getOperationsBlock, 0); I_SimpleProperty(OpenThreads::Mutex *, OperationsMutex, __OpenThreads_Mutex_P1__getOperationsMutex, 0); I_SimpleProperty(osg::GraphicsContext::OperationQueue &, OperationsQueue, __OperationQueue_R1__getOperationsQueue, 0); I_SimpleProperty(osg::GraphicsContext::ResizedCallback *, ResizedCallback, __ResizedCallback_P1__getResizedCallback, __void__setResizedCallback__ResizedCallback_P1); I_SimpleProperty(osg::State *, State, __State_P1__getState, __void__setState__State_P1); I_SimpleProperty(const osg::GraphicsContext::Traits *, Traits, __C5_Traits_P1__getTraits, 0);END_REFLECTORBEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext::ResizedCallback) I_DeclaringFile("osg/GraphicsContext"); I_BaseType(osg::Referenced); I_Constructor0(____ResizedCallback, "", ""); I_Method5(void, resizedImplementation, IN, osg::GraphicsContext *, gc, IN, int, x, IN, int, y, IN, int, width, IN, int, height, Properties::PURE_VIRTUAL, __void__resizedImplementation__GraphicsContext_P1__int__int__int__int, "", "");END_REFLECTORBEGIN_VALUE_REFLECTOR(osg::GraphicsContext::ScreenIdentifier) I_DeclaringFile("osg/GraphicsContext"); I_Constructor0(____ScreenIdentifier, "", ""); I_Constructor1(IN, int, in_screenNum, Properties::NON_EXPLICIT, ____ScreenIdentifier__int, "", ""); I_Constructor3(IN, const std::string &, in_hostName, IN, int, in_displayNum, IN, int, in_screenNum, ____ScreenIdentifier__C5_std_string_R1__int__int, "", ""); I_Method0(std::string, displayName, Properties::NON_VIRTUAL, __std_string__displayName, "Return the display name in the form hostName::displayNum:screenNum. ", ""); I_Method0(void, readDISPLAY, Properties::NON_VIRTUAL, __void__readDISPLAY, "Read the DISPLAY environmental variable, and set the ScreenIdentifier accordingly. ", "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. "); I_Method1(void, setScreenIdentifier, IN, const std::string &, displayName, Properties::NON_VIRTUAL, __void__setScreenIdentifier__C5_std_string_R1, "Set the screenIndentifier from the displayName string. ", "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. "); I_Method0(void, setUndefinedScreenDetailsToDefaultScreen, Properties::NON_VIRTUAL, __void__setUndefinedScreenDetailsToDefaultScreen, "Set any undefined displayNum or screenNum values (i.e. ", "-1) to the default display & screen of 0 respectively. "); I_SimpleProperty(const std::string &, ScreenIdentifier, 0, __void__setScreenIdentifier__C5_std_string_R1); I_PublicMemberProperty(std::string, hostName); I_PublicMemberProperty(int, displayNum); I_PublicMemberProperty(int, screenNum);END_REFLECTORBEGIN_OBJECT_REFLECTOR(osg::GraphicsContext::Traits) I_DeclaringFile("osg/GraphicsContext"); I_BaseType(osg::Referenced); I_BaseType(osg::GraphicsContext::ScreenIdentifier); I_Constructor0(____Traits, "", ""); I_PublicMemberProperty(int, x); I_PublicMemberProperty(int, y); I_PublicMemberProperty(int, width); I_PublicMemberProperty(int, height); I_PublicMemberProperty(std::string, windowName); I_PublicMemberProperty(bool, windowDecoration); I_PublicMemberProperty(bool, supportsResize); I_PublicMemberProperty(unsigned int, red); I_PublicMemberProperty(unsigned int, blue); I_PublicMemberProperty(unsigned int, green); I_PublicMemberProperty(unsigned int, alpha); I_PublicMemberProperty(unsigned int, depth); I_PublicMemberProperty(unsigned int, stencil); I_PublicMemberProperty(unsigned int, sampleBuffers); I_PublicMemberProperty(unsigned int, samples); I_PublicMemberProperty(bool, pbuffer); I_PublicMemberProperty(bool, quadBufferStereo); I_PublicMemberProperty(bool, doubleBuffer); I_PublicMemberProperty(GLenum, target); I_PublicMemberProperty(GLenum, format); I_PublicMemberProperty(unsigned int, level); I_PublicMemberProperty(unsigned int, face); I_PublicMemberProperty(unsigned int, mipMapGeneration); I_PublicMemberProperty(bool, vsync); I_PublicMemberProperty(bool, useMultiThreadedOpenGLEngine); I_PublicMemberProperty(bool, useCursor); I_PublicMemberProperty(osg::GraphicsContext *, sharedContext); I_PublicMemberProperty(osg::ref_ptr< osg::Referenced >, inheritedWindowData); I_PublicMemberProperty(bool, setInheritedWindowPixelFormat); I_PublicMemberProperty(bool, overrideRedirect);END_REFLECTORBEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext::WindowingSystemInterface) I_DeclaringFile("osg/GraphicsContext"); I_BaseType(osg::Referenced); I_Constructor0(____WindowingSystemInterface, "", ""); I_MethodWithDefaults1(unsigned int, getNumScreens, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, osg::GraphicsContext::ScreenIdentifier(), Properties::PURE_VIRTUAL, __unsigned_int__getNumScreens__C5_ScreenIdentifier_R1, "", ""); I_Method3(void, getScreenResolution, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, unsigned int &, width, IN, unsigned int &, height, Properties::PURE_VIRTUAL, __void__getScreenResolution__C5_ScreenIdentifier_R1__unsigned_int_R1__unsigned_int_R1, "", ""); I_Method3(bool, setScreenResolution, IN, const osg::GraphicsContext::ScreenIdentifier &, x, IN, unsigned, int, IN, unsigned, int, Properties::VIRTUAL, __bool__setScreenResolution__C5_ScreenIdentifier_R1__unsigned__unsigned, "", ""); I_Method2(bool, setScreenRefreshRate, IN, const osg::GraphicsContext::ScreenIdentifier &, x, IN, double, x, Properties::VIRTUAL, __bool__setScreenRefreshRate__C5_ScreenIdentifier_R1__double, "", ""); I_Method1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits, Properties::PURE_VIRTUAL, __GraphicsContext_P1__createGraphicsContext__Traits_P1, "", "");END_REFLECTORBEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Operation >) I_DeclaringFile("osg/ref_ptr"); I_Constructor0(____ref_ptr, "", ""); I_Constructor1(IN, osg::Operation *, ptr, Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::Operation > &, rp, Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::Operation *, get, Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::Operation *, release, Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::Operation > &, rp, Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); I_SimpleProperty(osg::Operation *, , __T_P1__get, 0);END_REFLECTORSTD_LIST_REFLECTOR(std::list< osg::Camera * >)STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::Operation > >)STD_VECTOR_REFLECTOR(std::vector< osg::GraphicsContext * >)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -