From 63e81b9aa8ad1a96e47a296db57e33c866315bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Fri, 1 Mar 2019 10:00:43 +0100 Subject: [core] move VertexVector/IndexVector to gfx namespace --- src/mbgl/renderer/render_static_data.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/mbgl/renderer/render_static_data.cpp') diff --git a/src/mbgl/renderer/render_static_data.cpp b/src/mbgl/renderer/render_static_data.cpp index 7313f95ecb..cae0e0a820 100644 --- a/src/mbgl/renderer/render_static_data.cpp +++ b/src/mbgl/renderer/render_static_data.cpp @@ -3,8 +3,8 @@ namespace mbgl { -static gl::VertexVector> tileVertices() { - gl::VertexVector> result; +static gfx::VertexVector> tileVertices() { + gfx::VertexVector> result; result.emplace_back(gfx::Vertex({{{ 0, 0 }}})); result.emplace_back(gfx::Vertex({{{ util::EXTENT, 0 }}})); result.emplace_back(gfx::Vertex({{{ 0, util::EXTENT }}})); @@ -12,15 +12,15 @@ static gl::VertexVector> tileVertices( return result; } -static gl::IndexVector quadTriangleIndices() { - gl::IndexVector result; +static gfx::IndexVector quadTriangleIndices() { + gfx::IndexVector result; result.emplace_back(0, 1, 2); result.emplace_back(1, 2, 3); return result; } -static gl::IndexVector tileLineStripIndices() { - gl::IndexVector result; +static gfx::IndexVector tileLineStripIndices() { + gfx::IndexVector result; result.emplace_back(0); result.emplace_back(1); result.emplace_back(3); @@ -29,8 +29,8 @@ static gl::IndexVector tileLineStripIndices() { return result; } -static gl::VertexVector rasterVertices() { - gl::VertexVector result; +static gfx::VertexVector rasterVertices() { + gfx::VertexVector result; result.emplace_back(RasterProgram::layoutVertex({ 0, 0 }, { 0, 0 })); result.emplace_back(RasterProgram::layoutVertex({ util::EXTENT, 0 }, { util::EXTENT, 0 })); result.emplace_back(RasterProgram::layoutVertex({ 0, util::EXTENT }, { 0, util::EXTENT })); @@ -38,8 +38,8 @@ static gl::VertexVector rasterVertices() { return result; } -static gl::VertexVector extrusionTextureVertices() { - gl::VertexVector result; +static gfx::VertexVector extrusionTextureVertices() { + gfx::VertexVector result; result.emplace_back(ExtrusionTextureProgram::layoutVertex({ 0, 0 })); result.emplace_back(ExtrusionTextureProgram::layoutVertex({ 1, 0 })); result.emplace_back(ExtrusionTextureProgram::layoutVertex({ 0, 1 })); -- cgit v1.2.1