#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"
void (*gfx_clear)(float r, float g, float b);
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);
+void (*gfx_swapbuffers)();
+void (*gfx_begin_drawing)();
+void (*gfx_end_drawing)();
bool gfx_init(Gfx_API api)
{
case GFX_VK:
return new MeshVK;
}
+ return 0;
}
Texture *gfx_create_texture()
{
case GFX_VK:
return new TextureVK;
}
+ return 0;
}
ShaderProgram *gfx_create_shader_program()
case GFX_GL:
return new ShaderProgramGL;
case GFX_VK:
- // return new ShaderProgramVK;
- return 0;
+ return new ShaderProgramVK;
}
+ return 0;
}
Shader *gfx_create_shader()
case GFX_GL:
return new ShaderGL;
case GFX_VK:
- // return new ShaderVK;
- return 0;
+ return new ShaderVK;
}
+ return 0;
}
char *gfx_get_shader_path()
case GFX_VK:
return (char *)"vk_shaders";
}
-}
\ No newline at end of file
+ return (char *)"";
+}