@@ -72,7 +72,7 @@ void DarkenCenter::Draw(RenderContext &context)
7272
7373 glUseProgram (context.programID_v2f_c4f );
7474
75- glUniformMatrix4fv (ShaderEngine::Uniform_V2F_C4F_VertexTranformation () , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
75+ glUniformMatrix4fv (context. uniform_v2f_c4f_vertex_tranformation , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
7676
7777 glBindVertexArray (m_vaoID);
7878
@@ -224,8 +224,8 @@ void Shape::Draw(RenderContext &context)
224224
225225 glUseProgram (context.programID_v2f_c4f_t2f );
226226
227- glUniformMatrix4fv (ShaderEngine::Uniform_V2F_C4F_T2F_VertexTranformation () , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
228- glUniform1i (ShaderEngine::Uniform_V2F_C4F_T2F_FragTextureSampler () , 0 );
227+ glUniformMatrix4fv (context. uniform_v2f_c4f_t2f_vertex_tranformation , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
228+ glUniform1i (context. uniform_v2f_c4f_t2f_frag_texture_sampler , 0 );
229229
230230 glBindVertexArray (m_vaoID_texture);
231231 glDrawArrays (GL_TRIANGLE_FAN, 0 , sides+2 );
@@ -261,7 +261,7 @@ void Shape::Draw(RenderContext &context)
261261
262262 glUseProgram (context.programID_v2f_c4f );
263263
264- glUniformMatrix4fv (ShaderEngine::Uniform_V2F_C4F_VertexTranformation () , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
264+ glUniformMatrix4fv (context. uniform_v2f_c4f_vertex_tranformation , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
265265
266266 glBindVertexArray (m_vaoID_not_texture);
267267 glDrawArrays (GL_TRIANGLE_FAN,0 ,sides+2 );
@@ -287,7 +287,7 @@ void Shape::Draw(RenderContext &context)
287287
288288 glUseProgram (context.programID_v2f_c4f );
289289
290- glUniformMatrix4fv (ShaderEngine::Uniform_V2F_C4F_VertexTranformation () , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
290+ glUniformMatrix4fv (context. uniform_v2f_c4f_vertex_tranformation , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
291291
292292 glVertexAttrib4f (1 , border_r, border_g, border_b, border_a * masterAlpha);
293293
@@ -350,7 +350,7 @@ void MotionVectors::Draw(RenderContext &context)
350350
351351 glUseProgram (context.programID_v2f_c4f );
352352
353- glUniformMatrix4fv (ShaderEngine::Uniform_V2F_C4F_VertexTranformation () , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
353+ glUniformMatrix4fv (context. uniform_v2f_c4f_vertex_tranformation , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
354354
355355 #ifndef GL_TRANSITION
356356 if (length <= 0.0 ) {
@@ -360,7 +360,7 @@ void MotionVectors::Draw(RenderContext &context)
360360 }
361361 #endif
362362
363- glUniform1f (ShaderEngine::Uniform_V2F_C4F_VertexPointSize () , length);
363+ glUniform1f (context. uniform_v2f_c4f_vertex_point_size , length);
364364 glVertexAttrib4f (1 , r, g, b, a * masterAlpha);
365365
366366 glBindVertexArray (m_vaoID);
@@ -409,7 +409,7 @@ void Border::Draw(RenderContext &context)
409409
410410 glUseProgram (context.programID_v2f_c4f );
411411
412- glUniformMatrix4fv (ShaderEngine::Uniform_V2F_C4F_VertexTranformation () , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
412+ glUniformMatrix4fv (context. uniform_v2f_c4f_vertex_tranformation , 1 , GL_FALSE, glm::value_ptr (context.mat_ortho ));
413413
414414 glVertexAttrib4f (1 , outer_r, outer_g, outer_b, outer_a * masterAlpha);
415415
0 commit comments