GPUDrawList: GL backend isolation

This commit is contained in:
2020-08-08 15:24:52 +02:00
parent cb2565195e
commit 38ef35b1ed
13 changed files with 493 additions and 225 deletions

View File

@@ -199,19 +199,6 @@ GPUBatch *create_BatchInGeneral(GPUPrimType, VertexBufferStuff, ElementListStuff
#endif /* future plans */
/**
* #GPUDrawList is an API to do lots of similar draw-calls very fast using multi-draw-indirect.
* There is a fallback if the feature is not supported.
*/
typedef struct GPUDrawList GPUDrawList;
GPUDrawList *GPU_draw_list_create(int length);
void GPU_draw_list_discard(GPUDrawList *list);
void GPU_draw_list_init(GPUDrawList *list, GPUBatch *batch);
void GPU_draw_list_command_add(
GPUDrawList *list, int v_first, int v_count, int i_first, int i_count);
void GPU_draw_list_submit(GPUDrawList *list);
void gpu_batch_init(void);
void gpu_batch_exit(void);