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);
17 void (*gfx_zbuffer)(bool enable);
18 void (*gfx_cull_face)(Gfx_cull_face cf);
21 bool gfx_init(Gfx_API api)
52 Mesh *gfx_create_mesh()
62 Texture *gfx_create_texture()
73 ShaderProgram *gfx_create_shader_program()
77 return new ShaderProgramGL;
79 // return new ShaderProgramVK;
85 Shader *gfx_create_shader()
91 // return new ShaderVK;
97 char *gfx_get_shader_path()
101 return (char *)"gl_shaders";
103 return (char *)"vk_shaders";