summaryrefslogtreecommitdiffstatsci
path: root/include
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-04-18 13:44:01 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-04-18 13:44:01 +0200
commite4a216e2924da3f88132ab9010b8533eee32cdec (patch)
tree8d87f1bc7a3a96a6d222ed497e912694bc5f8cb0 /include
parent0e76eeb3fcaf246ab8b873993ef60e0fa8d050bb (diff)
add matrix to push consts, strange padding required?? in glsl
Diffstat (limited to 'include')
-rw-r--r--include/vkvg.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/vkvg.h b/include/vkvg.h
index 265cbdf..c0a17f8 100644
--- a/include/vkvg.h
+++ b/include/vkvg.h
@@ -45,6 +45,14 @@ typedef struct _vkvg_color_t{
float a;
} vkvg_color_t;
+#define VKVG_IDENTITY_MATRIX {1,0,0,1,0,0}
+
+typedef struct {
+ float xx; float yx;
+ float xy; float yy;
+ float x0; float y0;
+} vkvg_matrix_t;
+
typedef struct _vkvg_context_t* VkvgContext;
typedef struct _vkvg_surface_t* VkvgSurface;
typedef struct _vkvg_device_t* VkvgDevice;