blob: c9d659ceb05f097a1548981d96cf1c2a9a6d35bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
function sk_scrape_startcanvas(c, fileName)
end
function sk_scrape_endcanvas(c, fileName)
end
local gXM_Count = 0
local gXferModeTab = {}
function sk_scrape_accumulate(t)
if not t.paint then
return
end
local xferMode = t.paint:getXfermode()
if xferMode then
local modeName = xferMode:getTypeName()
if gXferModeTab[modeName] == nil then
gXferModeTab[modeName] = 1;
else
gXferModeTab[modeName] = gXferModeTab[modeName] + 1
end
gXM_Count = gXM_Count + 1
end
end
function sk_scrape_summarize()
for key,value in pairs(gXferModeTab) do
io.write(key, ": ", value, "\n")
end
io.write("total: ", gXM_Count)
end
function test_summary()
io.write("just testing test_summary\n")
end
|