Mercurial > mm7
diff Render.h @ 1206:ab6560001f5b
arrays to std::arrays phase 2 - some more arrays converted
author | Grumpy7 |
---|---|
date | Sun, 09 Jun 2013 01:10:49 +0200 |
parents | 24454b5c9268 |
children | 96a81634669e |
line wrap: on
line diff
--- a/Render.h Sun Jun 09 00:30:48 2013 +0200 +++ b/Render.h Sun Jun 09 01:10:49 2013 +0200 @@ -257,7 +257,7 @@ char field_78[208]; }; #pragma pack(pop) -extern struct RenderVertexD3D3 pVertices[50]; +extern struct RenderVertexD3D3 pVertices[50]; /* 182 */ #pragma pack(push, 1) @@ -502,26 +502,26 @@ extern int uNumDecorationsDrawnThisFrame; // weak -extern RenderBillboard pBillboardRenderList[500]; +extern std::array<RenderBillboard, 500> pBillboardRenderList; extern unsigned int uNumBillboardsToDraw; extern int uNumSpritesDrawnThisFrame; // weak -extern RenderVertexSoft array_507D30[50]; -extern RenderVertexSoft array_508690[50]; -extern RenderVertexSoft array_508FF0[50]; -extern RenderVertexSoft array_509950[50]; -extern RenderVertexSoft array_50A2B0[50]; -extern RenderVertexSoft array_50AC10[50]; +extern std::array<RenderVertexSoft, 50> array_507D30; +extern std::array<RenderVertexSoft, 50> array_508690; +extern std::array<RenderVertexSoft, 50> array_508FF0; +extern std::array<RenderVertexSoft, 50> array_509950; +extern std::array<RenderVertexSoft, 100> array_50A2B0; +extern std::array<RenderVertexSoft, 50> array_50AC10; -extern RenderVertexSoft array_73D150[20]; +extern std::array<RenderVertexSoft, 20> array_73D150; -extern RenderVertexD3D3 d3d_vertex_buffer[50]; +extern std::array<RenderVertexD3D3, 50> d3d_vertex_buffer; extern RenderVertexSoft *ptr_801A04; extern RenderVertexSoft *ptr_801A08; -extern RenderVertexSoft pVerticesSR_801A10[384]; -extern RenderVertexSoft pVerticesSR_806210[384]; \ No newline at end of file +extern std::array<RenderVertexSoft, 384> pVerticesSR_801A10; +extern std::array<RenderVertexSoft, 384> pVerticesSR_806210; \ No newline at end of file