/[enigma]/enigma/data/models.lua
ViewVC logotype

Diff of /enigma/data/models.lua

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by dheck, Thu Mar 13 17:52:56 2003 UTC revision 1.4 by dheck, Sat Jun 21 11:29:46 2003 UTC
# Line 101  function def_subimages(name, options) Line 101  function def_subimages(name, options)
101      return imagelist      return imagelist
102  end  end
103    
104    function map_tiles (imginfo, func)
105        local w = imginfo.w or 1
106        local h = imginfo.h or 1
107        local tilew = imginfo.tilew or 32
108        local tileh = imginfo.tileh or 32
109        local r=Rect:new(0,0,0,0)
110        local n=1
111        for y=0,h-1 do
112            for x=0,w-1 do
113                r.x,r.y = x*tilew,y*tileh
114                r.w,r.h = tilew, tileh
115                func(n, r)
116                n=n+1
117            end
118        end
119        r:delete()
120    end
121    
122  function def_tiles(big_image, modelnames)  function def_tiles(big_image, modelnames)
123      local xoff = 0      local xoff = 0
124      local yoff = 0      local yoff = 0

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26