再升级doGC模块,经典模式图标使用doGC生成

This commit is contained in:
MrZ626
2021-04-19 15:13:00 +08:00
parent 635be949f0
commit f12e4128e6
3 changed files with 22 additions and 8 deletions

View File

@@ -1,16 +1,23 @@
local gc=love.graphics
local cmds={
reset="origin",
trans="translate",
scale="scale",
rotat="rotate",
setCL="setColor",
setCM="setColorMask",
setLW="setLineWidth",
setLS="setLineStyle",
setLJ="setLineJoin",
draw="draw",
dLine="line",
fRect=function(...)gc.rectangle("fill",...)end,
dRect=function(...)gc.rectangle("line",...)end,
fCirc=function(...)gc.circle("fill",...)end,
dCirc=function(...)gc.circle("line",...)end,
fPoly=function(...)gc.polygon("line",...)end,
fPoly=function(...)gc.polygon("fill",...)end,
dPoly=function(...)gc.polygon("line",...)end,
}
return function(L)