summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/core.h6
-rw-r--r--include/graph.h1
-rw-r--r--include/input.h11
3 files changed, 14 insertions, 4 deletions
diff --git a/include/core.h b/include/core.h
new file mode 100644
index 0000000..cc9ef1c
--- /dev/null
+++ b/include/core.h
@@ -0,0 +1,6 @@
+#ifndef MINO_CORE_H
+#define MINO_CORE_H
+typedef struct{U8 i;vec2 pos,org,v[4];}Tetro;
+X V core_init(V);
+X V core_tick(InputPoint,InputButtons);
+#endif
diff --git a/include/graph.h b/include/graph.h
index f04bfb5..ff2ab8a 100644
--- a/include/graph.h
+++ b/include/graph.h
@@ -17,6 +17,7 @@ X U32 graph_shader_create(IM C*,IM C*);
X U32 graph_shader_tex;
X V graph_shader_use(U32);
X V graph_shader_setI(IM C*,I);
+X V graph_shader_setV3(IM C*,vec3);
X V graph_shader_setM4(IM C*,mat4);
X U32 graph_tex_create(IM C*);
diff --git a/include/input.h b/include/input.h
index 0a54d19..b2a0ea1 100644
--- a/include/input.h
+++ b/include/input.h
@@ -2,8 +2,11 @@
#define MINO_INPUT_H
#include"mino.h"
typedef struct{U32 x,y;}InputPoint;
-typedef struct{U32 f;}InputButtons;
-enum{IB_1=1<<0,IB_2=1<<1,IB_3=1<<2,IB_4=1<<3};
-X InputPoint input_point(V);
-X InputButtons input_buttons(V);
+enum{IB_1=1<<0, IB_2=1<<1, IB_3=1<<2, IB_4=1<<3,
+ IB_L=1<<4, IB_R=1<<5, IB_U=1<<6, IB_D=1<<7,
+ IB_S=1<<8, IB_Z=1<<9, IB_X=1<<10,IB_C=1<<11};
+typedef struct{U32 p,h;}InputButtons;
+X InputPoint input_point;
+X InputButtons input_buttons;
+X V input_update(V);
#endif