summaryrefslogtreecommitdiff
path: root/src/mbgl/programs/raster_program.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-11-14 11:57:02 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-11-15 13:55:08 -0800
commit377d0fb0d20fa4129d867f0e8762ce208ccee14d (patch)
tree408e883f6ca97ee62cb3aebd2ff243d4df45fa76 /src/mbgl/programs/raster_program.hpp
parent58877d1b3ddf0e4521d680b85e31b7a4c6287302 (diff)
downloadqtlocation-mapboxgl-377d0fb0d20fa4129d867f0e8762ce208ccee14d.tar.gz
[core] Introduce SegmentVector
Diffstat (limited to 'src/mbgl/programs/raster_program.hpp')
-rw-r--r--src/mbgl/programs/raster_program.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mbgl/programs/raster_program.hpp b/src/mbgl/programs/raster_program.hpp
index 1bab2d5765..d6179904d2 100644
--- a/src/mbgl/programs/raster_program.hpp
+++ b/src/mbgl/programs/raster_program.hpp
@@ -23,12 +23,14 @@ MBGL_DEFINE_UNIFORM_VECTOR(float, 3, u_spin_weights);
MBGL_DEFINE_UNIFORM_VECTOR(float, 2, u_tl_parent);
} // namespace uniforms
+using RasterAttributes = gl::Attributes<
+ attributes::a_pos,
+ attributes::a_texture_pos>;
+
class RasterProgram : public Program<
shaders::raster,
gl::Triangle,
- gl::Attributes<
- attributes::a_pos,
- attributes::a_texture_pos>,
+ RasterAttributes,
gl::Uniforms<
uniforms::u_matrix,
uniforms::u_image0,