MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
DNameControl.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #ifndef _MGDNAMECONTROL_HH_
6 #define _MGDNAMECONTROL_HH_
7 
8 
9 #include <map>
10 #include "MGCL.h"
11 #include "mgGL/VBO.h"
12 class MGAttribedGel;
13 
15 
23 
24 class MG_DLL_DECLR MGDNameControl{
25 
26 public:
27 
28 typedef std::map<unsigned, mgVBO*> Dlist2VBOMap;
29 typedef Dlist2VBOMap::value_type Dlist2VBOMapPair;
30 
32 MG_DLL_DECLR friend MGDNameControl& getDNameControlInstance();
33 
34 MGDNameControl();
35 
38 MGAttribedGel* Gelpointer_from_dlistName(unsigned dlname);
39 
42 mgVBO* VBO_from_dlistName(unsigned dlname);
43 
45 mgVBO* getNewName(const MGAttribedGel* gel=0);
46 
49 unsigned getNewNamebyVBO(mgVBO* vbo);
50 
52 mgVBO* insertDlistMap(const MGAttribedGel* gel);
53 
56 mgVBO* deleteDlistMap(unsigned dlname);
57 
60 mgVBO* deleteDlistMap(const MGAttribedGel* gel);
61 
62 private:
63 
64 unsigned m_nextName;
65 Dlist2VBOMap m_dlist2VBOMap;
66 
68 void insertVBO2DlistMap(unsigned dlistName,mgVBO* vbo);
69 
70 };
71 
72 //MG_DLL_DECLR int getDNameNum(const MGAttribedGel* gel);
73 
75 #endif // _MGDNAMECONTROL_HH_
Is an abstract class which provides interfaces of MGGel that has MGAppearance.
Definition: AttribedGel.h:32
OpenGL 4 用描画のためのクラス, in other words, display list.
Definition: VBO.h:76