X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbuilders%2Fsphere.cpp;h=7873d3a2132d1407cf8cfd78626b4dbd7ed6ebc3;hp=f7e06eb7041de62564329a807236a3db799e5ae0;hb=b7ecc29c204faede028556d1942b2d61d5cda9ee;hpb=86721a55699193e63c76e8a0a7b0ced0416c1cce diff --git a/source/builders/sphere.cpp b/source/builders/sphere.cpp index f7e06eb7..7873d3a2 100644 --- a/source/builders/sphere.cpp +++ b/source/builders/sphere.cpp @@ -80,7 +80,7 @@ void UvSphereBuilder::build(PrimitiveBuilder &builder) const // https://en.wikipedia.org/wiki/Regular_icosahedron#Cartesian_coordinates -float IcoSphereBuilder::base_vertices[12*3] = +const float IcoSphereBuilder::base_vertices[12*3] = { 0.0f, -0.5257311f, -0.8506508f, 0.0f, 0.5257311f, -0.8506508f, @@ -96,7 +96,7 @@ float IcoSphereBuilder::base_vertices[12*3] = 0.5257311f, 0.8506508f, 0.0f }; -unsigned IcoSphereBuilder::base_triangles[20*3] = +const unsigned IcoSphereBuilder::base_triangles[20*3] = { 0, 1, 6, 1, 0, 4,