write_down_firstly_bout_dynamic_memmory_arrange

 1 class A
2 {
3 static ....; //indices and vertices
4 public:
5 void initDataWithD3D(...); //init the graphics with the static data by d3d
6 }
7
8 ......; //initial the static params and reality functions
9
10
11 ........
12 ........
13 ........
14 A* a = new A();
15 a->initDataWithD3D(...);
16 delete a; //if it is ok ,or i should 'delete a' just before the end of program
17 .......



posted on 2012-01-06 18:12  shizuka  阅读(88)  评论(0编辑  收藏  举报

导航