Parent Directory | Revision Log | Patch
revision 1.6 by tjl, Tue Apr 22 20:16:36 2003 UTC | revision 1.7 by tjl, Wed Apr 23 01:27:48 2003 UTC | |
---|---|---|
# | Line 94 def makeMipzip(image, mipzip): | Line 94 def makeMipzip(image, mipzip): |
94 | out.putNextEntry(entry) | out.putNextEntry(entry) |
95 | out.closeEntry() | out.closeEntry() |
96 | ||
97 | entry = zip.ZipEntry("origsize") | |
98 | entry.setComment("%sx%s" % (d.width / float(w), | |
99 | d.height/ float(h))) | |
100 | entry.setSize(0) | |
101 | out.putNextEntry(entry) | |
102 | out.closeEntry() | |
103 | ||
104 | l = 0 | l = 0 |
105 | while 1: | while 1: |
106 | w = int(tex.getLevelParameter(l, "TEXTURE_WIDTH")[0]) | w = int(tex.getLevelParameter(l, "TEXTURE_WIDTH")[0]) |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |