]> OCCT Git - occt.git/commitdiff
0028907: Coding Rules, OpenGl_GraphicDriver - fix class fields accidentally marked...
authorkgv <kgv@opencascade.com>
Mon, 10 Jul 2017 08:24:29 +0000 (11:24 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 13 Jul 2017 09:25:21 +0000 (12:25 +0300)
src/OpenGl/OpenGl_GraphicDriver.hxx

index 5fb33ca6ac493051dde4df1c2d9fd4d272bbbdc2..5000619a260285e62ef48332b5800ccbea1a4646 100644 (file)
@@ -204,6 +204,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
@@ -213,26 +221,14 @@ protected:
   void*                   myEglConfig;    //!< EGL configuration             : EGLConfig
 #endif
 
-  Handle(OpenGl_Caps)                                             myCaps;
-  NCollection_Map<Handle(OpenGl_View)>                            myMapOfView;
-  NCollection_DataMap<Standard_Integer, OpenGl_Structure*>        myMapOfStructure;
-
-public:
+  Handle(OpenGl_Caps)                                      myCaps;
+  NCollection_Map<Handle(OpenGl_View)>                     myMapOfView;
+  NCollection_DataMap<Standard_Integer, OpenGl_Structure*> 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.