@@ -157,10 +157,10 @@ namespace robot_dart {
157
157
// _lights.push_back(light);
158
158
159
159
/* Initialize 3D axis visualization mesh */
160
- _3D_axis_shader.reset (new Magnum::Shaders::VertexColor3D );
160
+ _3D_axis_shader.reset (new Magnum::Shaders::VertexColorGL3D );
161
161
_3D_axis_mesh.reset (new Magnum::GL::Mesh);
162
162
163
- _background_shader.reset (new Magnum::Shaders::Flat2D );
163
+ _background_shader.reset (new Magnum::Shaders::FlatGL2D );
164
164
_background_mesh.reset (new Magnum::GL::Mesh{Magnum::MeshTools::compile (Magnum::Primitives::squareSolid ())});
165
165
166
166
Magnum::Trade::MeshData axis_data = Magnum::Primitives::axis3D ();
@@ -174,7 +174,7 @@ namespace robot_dart {
174
174
175
175
_3D_axis_mesh->setPrimitive (Magnum::GL::MeshPrimitive::Lines)
176
176
.setCount (axis_data.indexCount ())
177
- .addVertexBuffer (std::move (axis_vertices), 0 , Magnum::Shaders::VertexColor3D ::Position{}, Magnum::Shaders::VertexColor3D ::Color4{})
177
+ .addVertexBuffer (std::move (axis_vertices), 0 , Magnum::Shaders::VertexColorGL3D ::Position{}, Magnum::Shaders::VertexColorGL3D ::Color4{})
178
178
.setIndexBuffer (std::move (axis_indices), 0 , compressed.second );
179
179
180
180
/* Initialize text visualization */
@@ -197,7 +197,7 @@ namespace robot_dart {
197
197
_text_indices.reset (new Magnum::GL::Buffer);
198
198
199
199
/* Initialize text shader */
200
- _text_shader.reset (new Magnum::Shaders::DistanceFieldVector2D );
200
+ _text_shader.reset (new Magnum::Shaders::DistanceFieldVectorGL2D );
201
201
_text_shader->bindVectorTexture (_glyph_cache->texture ());
202
202
}
203
203
}
0 commit comments