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/shader-vk.h"
11 #include "vulkan/mesh-vk.h"
12 #include "vulkan/texture-vk.h"
16 void (*gfx_clear)(float r, float g, float b);
17 void (*gfx_viewport)(int x, int y, int width, int height);
18 void (*gfx_zbuffer)(bool enable);
19 void (*gfx_cull_face)(Gfx_cull_face cf);
20 void (*gfx_reshape)(int width, int height);
21 void (*gfx_wireframe)(bool enable);
23 bool gfx_init(Gfx_API api)
54 Mesh *gfx_create_mesh()
64 Texture *gfx_create_texture()
75 ShaderProgram *gfx_create_shader_program()
79 return new ShaderProgramGL;
81 return new ShaderProgramVK;
86 Shader *gfx_create_shader()
97 char *gfx_get_shader_path()
101 return (char *)"gl_shaders";
103 return (char *)"vk_shaders";