comparison Framework/Scene2DViewport/LayerHolder.h @ 906:52b1c6ff10c5

Disabled OpenGL in GuiAdapter to allow for Cairo-only workflows (THIS IS A TEMP CHANGE!!!) + disabled outlined text by default (build macro)
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 17 Jul 2019 17:17:34 +0200
parents 0aff28f15ea2
children 32eaf4929b08
comparison
equal deleted inserted replaced
905:88bf49aebc13 906:52b1c6ff10c5
42 This ctor merely stores the scene and layer counts. No layer creation 42 This ctor merely stores the scene and layer counts. No layer creation
43 performed at this time 43 performed at this time
44 */ 44 */
45 LayerHolder( 45 LayerHolder(
46 boost::weak_ptr<ViewportController> controllerW, 46 boost::weak_ptr<ViewportController> controllerW,
47 int polylineLayerCount, int textLayerCount); 47 int polylineLayerCount, int textLayerCount, int infoTextCount = 0);
48 48
49 /** 49 /**
50 This actually creates the layers 50 This actually creates the layers
51 */ 51 */
52 void CreateLayers(); 52 void CreateLayers();
84 This throws if the index is not valid or if the layers are not created or 84 This throws if the index is not valid or if the layers are not created or
85 have been deleted 85 have been deleted
86 */ 86 */
87 TextSceneLayer* GetTextLayer(int index = 0); 87 TextSceneLayer* GetTextLayer(int index = 0);
88 88
89 //TextSceneLayer* GetTextLayer(int index = 0);
90
89 private: 91 private:
90 int GetPolylineLayerIndex(int index = 0); 92 int GetPolylineLayerIndex(int index = 0);
91 int GetTextLayerIndex(int index = 0); 93 int GetTextLayerIndex(int index = 0);
94 int GetInfoTextLayerIndex(int index = 0);
92 Scene2D& GetScene(); 95 Scene2D& GetScene();
93 96
94 int textLayerCount_; 97 int textLayerCount_;
95 int polylineLayerCount_; 98 int polylineLayerCount_;
99 int infoTextCount_;
96 boost::weak_ptr<ViewportController> controllerW_; 100 boost::weak_ptr<ViewportController> controllerW_;
97 int baseLayerIndex_; 101 int baseLayerIndex_;
98 }; 102 };
99 } 103 }
100 104