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