Commit 1cf7eefe3ccd715ea6d19b0f97e7b0c34d6270ce

Thomas de Grivel 2024-02-04T23:17:00

wip mac

diff --git a/.ic3_history b/.ic3_history
index 3163cff..0c2d49b 100644
--- a/.ic3_history
+++ b/.ic3_history
@@ -1,7 +1,3 @@
-1.231229999999997e+2
-1.231229999999996e+2
-1.231229999999995e+2
-123.123
 1234567.0f
 1.234f
 %GL.Point2D{}
@@ -97,3 +93,7 @@ dlopen("../libc3/window/sdl2/.libs/libc3_window_sdl2_debug.so.0.0")
 %GL.Object{}
 quote %GL.Object{}
 quote %GL.Sphere{}
+dlopen("../libc3/window/.libs/libc3_window_debug.so.0.0")
+dlopen("libc3/window/.libs/libc3_window_debug.dylib")
+dlopen("libc3/window/sdl2/.libs/libc3_window_sdl2_debug.dylib")
+quote %GL.Sphere{}
diff --git a/lib/c3/0.1/gl/point2f.facts b/lib/c3/0.1/gl/point2f.facts
new file mode 100644
index 0000000..378769c
--- /dev/null
+++ b/lib/c3/0.1/gl/point2f.facts
@@ -0,0 +1,5 @@
+%{module: C3.Facts.Dump,
+  version: 1}
+replace {GL.Point2f, :is_a, :module}
+replace {GL.Point2f, :defstruct, [x: (F32) 0,
+                                  y: (F32) 0]}
diff --git a/lib/c3/0.1/gl/point3f.facts b/lib/c3/0.1/gl/point3f.facts
new file mode 100644
index 0000000..d41a846
--- /dev/null
+++ b/lib/c3/0.1/gl/point3f.facts
@@ -0,0 +1,6 @@
+%{module: C3.Facts.Dump,
+  version: 1}
+replace {GL.Point3f, :is_a, :module}
+replace {GL.Point3f, :defstruct, [x: (F32) 0,
+                                  y: (F32) 0,
+                                  z: (F32) 0]}
diff --git a/lib/c3/0.1/gl/vertex.facts b/lib/c3/0.1/gl/vertex.facts
index 08978d5..af1e468 100644
--- a/lib/c3/0.1/gl/vertex.facts
+++ b/lib/c3/0.1/gl/vertex.facts
@@ -1,6 +1,6 @@
 %{module: C3.Facts.Dump,
   version: 1}
 replace {GL.Vertex, :is_a, :module}
-replace {GL.Vertex, :defstruct, [position:  %GL.Point3D{},
-                                 normal:    %GL.Point3D{},
-                                 tex_coord: %GL.Point2D{}]}
+replace {GL.Vertex, :defstruct, [position:  %GL.Point3f{},
+                                 normal:    %GL.Point3f{},
+                                 tex_coord: %GL.Point2f{}]}
diff --git a/libc3/Makefile b/libc3/Makefile
index 3c93399..3557018 100644
--- a/libc3/Makefile
+++ b/libc3/Makefile
@@ -95,6 +95,7 @@ install:
 	${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${HEADERS} ${prefix}/include/libc3
 	${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 -d ${prefix}/lib
 	${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${LIB} ${prefix}/lib
+	${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${LIB_DEBUG} ${prefix}/lib
 	${LIBTOOL} --finish ${prefix}/lib
 	${MAKE} -C window install