ecere: Added missing namespaces
[sdk] / ecere / src / gfx / drivers / gl3 / immediate.ec
index fb5e7b1..754a400 100644 (file)
@@ -1,8 +1,10 @@
 // OpenGL Immediate Mode Transition Kit
 import "glab"
-import "shading"
+import "defaultShader"
 
-#include "glHelpers.h"
+#include "gl123es.h"
+
+namespace gfx::drivers;
 
 public enum GLIMTKMode
 {
@@ -210,7 +212,7 @@ public void glimtkColor4f(float r, float g, float b, float a)
    {
 #if ENABLE_GL_SHADERS
       if(glCaps_shaders)
-         shader_color(r, g, b, a);
+         defaultShader.setColor(r, g, b, a);
 #endif
 
 #if ENABLE_GL_FFP
@@ -291,7 +293,7 @@ public void glimtkEnd()
 
 #if ENABLE_GL_SHADERS
       if(glCaps_shaders)
-         shader_setPerVertexColor(true);
+         defaultShader.setPerVertexColor(true);
 #endif
    }
 
@@ -323,7 +325,7 @@ public void glimtkEnd()
 
 #if ENABLE_GL_SHADERS
       if(glCaps_shaders)
-         shader_setPerVertexColor(false);
+         defaultShader.setPerVertexColor(false);
 #endif
 
    }