1
0
Fork 0
mirror of https://github.com/Reuh/wirefame.git synced 2025-10-27 17:49:31 +00:00

First commit

This commit is contained in:
Étienne Fildadut 2019-12-25 16:49:28 +01:00
commit b4798c8c16
7 changed files with 148562 additions and 0 deletions

22
test/bench.lua Normal file
View file

@ -0,0 +1,22 @@
local t = require("socket").gettime
--
local wirefame = require("wirefame")
function wirefame.drawLine(x0, y0, x1, y1)
love.graphics.line(x0, y0, x1, y1)
end
local model = wirefame.open("metaknight.obj")
--
local s = t()
for _=1,100 do
model:draw(0, 0, 1000, 1000, 255)
end
local e = t()
--
print(e-s)