From 01a8b2a3d98f816b8b712a974f3d1e98f05152f5 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Fri, 14 Apr 2023 15:44:38 -0500 Subject: implement loading/saving entity db --- honey/glm.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'honey/glm.lua') diff --git a/honey/glm.lua b/honey/glm.lua index dada37f..3357815 100644 --- a/honey/glm.lua +++ b/honey/glm.lua @@ -42,7 +42,7 @@ end function Vec3.__tostring(self) - return string.format("Vec3[%.4f, %.4f, %.4f]", self[1], self[2], self[3]) + return string.format("Vec3{%.4f, %.4f, %.4f}", self[1], self[2], self[3]) end @@ -196,7 +196,7 @@ end --===== Mat4 =====-- -function Mat4.new(_, self, values) +function Mat4.new(_, values) local self = {} self.type = "mat4" self.data = glm.mat4_create() @@ -238,10 +238,10 @@ end function Mat4.__tostring(self) return string.format( - "/ %0.4f, %0.4f, %0.4f, %0.4f \\\n" .. - "| %0.4f, %0.4f, %0.4f, %0.4f |\n" .. - "| %0.4f, %0.4f, %0.4f, %0.4f |\n" .. - "\\ %0.4f, %0.4f, %0.4f, %0.4f /", + "Mat4{%0.4f, %0.4f, %0.4f, %0.4f, " .. + "%0.4f, %0.4f, %0.4f, %0.4f, " .. + "%0.4f, %0.4f, %0.4f, %0.4f, " .. + "%0.4f, %0.4f, %0.4f, %0.4f}", self[1][1], self[1][2], self[1][3], self[1][4], self[2][1], self[2][2], self[2][3], self[2][4], self[3][1], self[3][2], self[3][3], self[3][4], -- cgit v1.2.1