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()
60 Texture *gfx_create_texture()
71 ShaderProgram *gfx_create_shader_program()
75 return new ShaderProgramGL;
77 // return new ShaderProgramVK;
83 Shader *gfx_create_shader()
89 // return new ShaderVK;
95 char *gfx_get_shader_path()
99 return (char *)"gl_shaders";
101 return (char *)"vk_shaders";