diff --git a/src/gl_canvas.c b/src/gl_canvas.c index bd82050..09b5a07 100644 --- a/src/gl_canvas.c +++ b/src/gl_canvas.c @@ -1661,10 +1661,10 @@ mg_canvas_backend* gl_canvas_backend_create(mg_wgl_surface* surface) //NOTE(martin): setup interface functions backend->interface.destroy = mg_gl_canvas_destroy; - backend->interface.render = mg_gl_canvas_render; backend->interface.imageCreate = mg_gl_canvas_image_create; backend->interface.imageDestroy = mg_gl_canvas_image_destroy; backend->interface.imageUploadRegion = mg_gl_canvas_image_upload_region; + backend->interface.render = mg_gl_canvas_render; surface->interface.prepare((mg_surface_data*)surface); diff --git a/src/graphics_surface.h b/src/graphics_surface.h index 0dca19b..d494d9a 100644 --- a/src/graphics_surface.h +++ b/src/graphics_surface.h @@ -78,14 +78,6 @@ typedef struct mg_image_data } mg_image_data; typedef void (*mg_canvas_backend_destroy_proc)(mg_canvas_backend* backend); -typedef void (*mg_canvas_backend_begin_proc)(mg_canvas_backend* backend, mg_color clearColor); -typedef void (*mg_canvas_backend_end_proc)(mg_canvas_backend* backend); -typedef void (*mg_canvas_backend_draw_batch_proc)(mg_canvas_backend* backend, - mg_image_data* imageData, - u32 vertexCount, - u32 shapeCount, - u32 indexCount); - typedef mg_image_data* (*mg_canvas_backend_image_create_proc)(mg_canvas_backend* backend, vec2 size); typedef void (*mg_canvas_backend_image_destroy_proc)(mg_canvas_backend* backend, mg_image_data* image); @@ -104,9 +96,6 @@ typedef void (*mg_canvas_backend_render_proc)(mg_canvas_backend* backend, typedef struct mg_canvas_backend { mg_canvas_backend_destroy_proc destroy; - mg_canvas_backend_begin_proc begin; - mg_canvas_backend_end_proc end; - mg_canvas_backend_draw_batch_proc drawBatch; mg_canvas_backend_image_create_proc imageCreate; mg_canvas_backend_image_destroy_proc imageDestroy;