From: kgv Date: Mon, 10 Jul 2017 08:24:29 +0000 (+0300) Subject: 0028907: Coding Rules, OpenGl_GraphicDriver - fix class fields accidentally marked... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=c45e639d66146346a835e3a001a61dd09cf4106e;p=occt-copy.git 0028907: Coding Rules, OpenGl_GraphicDriver - fix class fields accidentally marked public --- diff --git a/src/OpenGl/OpenGl_GraphicDriver.hxx b/src/OpenGl/OpenGl_GraphicDriver.hxx index c69a3a72be..3d833ea84d 100644 --- a/src/OpenGl/OpenGl_GraphicDriver.hxx +++ b/src/OpenGl/OpenGl_GraphicDriver.hxx @@ -205,6 +205,14 @@ public: DEFINE_STANDARD_RTTIEXT(OpenGl_GraphicDriver,Graphic3d_GraphicDriver) +public: + + //! State counter for OpenGl structures. + OpenGl_StateCounter* GetStateCounter() const { return &myStateCounter; } + + //! Returns unique ID for primitive arrays. + Standard_Size GetNextPrimitiveArrayUID() const { return myUIDGenerator.Increment(); } + protected: Standard_Boolean myIsOwnContext; //!< indicates that shared context has been created within OpenGl_GraphicDriver @@ -214,26 +222,14 @@ protected: void* myEglConfig; //!< EGL configuration : EGLConfig #endif - Handle(OpenGl_Caps) myCaps; - NCollection_Map myMapOfView; - NCollection_DataMap myMapOfStructure; - -public: + Handle(OpenGl_Caps) myCaps; + NCollection_Map myMapOfView; + NCollection_DataMap myMapOfStructure; TColStd_MapOfInteger myLayerIds; TColStd_SequenceOfInteger myLayerSeq; OpenGl_MapOfZLayerSettings myMapOfZLayerSettings; -public: - - //! State counter for OpenGl structures. - OpenGl_StateCounter* GetStateCounter() const { return &myStateCounter; } - - //! Returns unique ID for primitive arrays. - Standard_Size GetNextPrimitiveArrayUID() const { return myUIDGenerator.Increment(); } - -protected: - mutable OpenGl_StateCounter myStateCounter; //!< State counter for OpenGl structures. mutable OpenGl_StateCounter myUIDGenerator; //!< Unique ID counter for primitive arrays.