quick backup
[demo] / src / gfxapi.cc
index 5296677..f17055f 100644 (file)
@@ -7,6 +7,7 @@
 #include "opengl/texture-gl.h"
 #include "opengl/shader-gl.h"
 
+#include "vulkan/shader-vk.h"
 #include "vulkan/mesh-vk.h"
 #include "vulkan/texture-vk.h"
 
@@ -17,6 +18,7 @@ void (*gfx_viewport)(int x, int y, int width, int height);
 void (*gfx_zbuffer)(bool enable);
 void (*gfx_cull_face)(Gfx_cull_face cf);
 void (*gfx_reshape)(int width, int height);
+void (*gfx_wireframe)(bool enable);
 
 bool gfx_init(Gfx_API api)
 {
@@ -76,8 +78,7 @@ ShaderProgram *gfx_create_shader_program()
        case GFX_GL:
                return new ShaderProgramGL;
        case GFX_VK:
-               // return new ShaderProgramVK;
-               return 0;
+               return new ShaderProgramVK;
        }
        return 0;
 }
@@ -88,8 +89,7 @@ Shader *gfx_create_shader()
        case GFX_GL:
                return new ShaderGL;
        case GFX_VK:
-               // return new ShaderVK;
-               return 0;
+               return new ShaderVK;
        }
        return 0;
 }
@@ -103,4 +103,4 @@ char *gfx_get_shader_path()
                return (char *)"vk_shaders";
        }
        return (char *)"";
-}
\ No newline at end of file
+}