随笔分类 -  d3d

simple_d3d_used
摘要:# defining graphics' vertex' format:struct vertextType { Vertex(){} Vertex(float x, float y, float z) { _x = x; _y = y; _z = z; } float _x, _y, _z; static const DWORD FVF;};const DWORD Vertex::FVF = D3DFVF_XYZ; define vertexbuffer:IDirect3DVertexBuffer9* vertexbuffer = NULL; # if needed, def 阅读全文

posted @ 2013-04-14 14:37 shizuka 阅读(111) 评论(0) 推荐(0)

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->initDataWit... 阅读全文

posted @ 2012-01-06 18:12 shizuka 阅读(92) 评论(0) 推荐(0)

导航