[win32] reflected changes to canvas surface interface on GL backend. But implementation still uses the (slower) Loop-Blinn + triangle fan method.
This commit is contained in:
parent
b6db5107a3
commit
2bec7a633a
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
*****************************************************************/
|
*****************************************************************/
|
||||||
#include<stdlib.h>
|
#include<stdlib.h>
|
||||||
|
#include<stdio.h>
|
||||||
#include<string.h>
|
#include<string.h>
|
||||||
#include<errno.h>
|
#include<errno.h>
|
||||||
|
|
||||||
|
|
1648
src/gl_canvas.c
1648
src/gl_canvas.c
File diff suppressed because it is too large
Load Diff
|
@ -88,27 +88,23 @@ typedef struct mg_vertex_layout
|
||||||
char* cubicBuffer;
|
char* cubicBuffer;
|
||||||
u32 cubicStride;
|
u32 cubicStride;
|
||||||
|
|
||||||
char* uvTransformBuffer;
|
char* shapeIndexBuffer;
|
||||||
u32 uvTransformStride;
|
u32 shapeIndexStride;
|
||||||
|
|
||||||
char* colorBuffer;
|
char* colorBuffer;
|
||||||
u32 colorStride;
|
u32 colorStride;
|
||||||
|
|
||||||
char* texturedBuffer;
|
|
||||||
u32 texturedStride;
|
|
||||||
|
|
||||||
char* shapeIndexBuffer;
|
|
||||||
u32 shapeIndexStride;
|
|
||||||
|
|
||||||
char* clipBuffer;
|
char* clipBuffer;
|
||||||
u32 clipStride;
|
u32 clipStride;
|
||||||
|
|
||||||
|
char* uvTransformBuffer;
|
||||||
|
u32 uvTransformStride;
|
||||||
|
|
||||||
char* indexBuffer;
|
char* indexBuffer;
|
||||||
u32 indexStride;
|
u32 indexStride;
|
||||||
|
|
||||||
} mg_vertex_layout;
|
} mg_vertex_layout;
|
||||||
|
|
||||||
|
|
||||||
typedef void (*mg_canvas_backend_destroy_proc)(mg_canvas_backend* backend);
|
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_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_end_proc)(mg_canvas_backend* backend);
|
||||||
|
@ -135,7 +131,7 @@ typedef void (*mg_canvas_backend_render_proc)(mg_canvas_backend* backend,
|
||||||
|
|
||||||
typedef struct mg_canvas_backend
|
typedef struct mg_canvas_backend
|
||||||
{
|
{
|
||||||
mg_vertex_layout vertexLayout;
|
// mg_vertex_layout vertexLayout;
|
||||||
|
|
||||||
mg_canvas_backend_destroy_proc destroy;
|
mg_canvas_backend_destroy_proc destroy;
|
||||||
mg_canvas_backend_begin_proc begin;
|
mg_canvas_backend_begin_proc begin;
|
||||||
|
|
Loading…
Reference in New Issue