1 #include "opengl/opengl.h"
6 #include "opengl/mesh-gl.h"
7 #include "opengl/texture-gl.h"
8 #include "opengl/shader-gl.h"
10 #include "vulkan/mesh-vk.h"
11 #include "vulkan/texture-vk.h"
15 void (*gfx_clear)(float r, float g, float b);
16 void (*gfx_viewport)(int x, int y, int width, int height);
19 bool gfx_init(Gfx_API api)
50 Mesh *gfx_create_mesh()
59 Texture *gfx_create_texture()
69 ShaderProgram *gfx_create_shader_program()
73 return new ShaderProgramGL;
75 // return new ShaderProgramVK;
80 Shader *gfx_create_shader()
86 // return new ShaderVK;
91 char *gfx_get_shader_path()
95 return (char *)"gl_shaders";
97 return (char *)"vk_shaders";