/[gzz]/gzz/gzz/gfx/gl/MipzipLoader.java
ViewVC logotype

Diff of /gzz/gzz/gfx/gl/MipzipLoader.java

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

revision 1.9 by tjl, Sat Jan 18 13:30:58 2003 UTC revision 1.10 by tjl, Sat Jan 18 15:18:21 2003 UTC
# Line 201  public class MipzipLoader { Line 201  public class MipzipLoader {
201                                  Background bg, float priority) {                                  Background bg, float priority) {
202          if(dbg) pa("MipzipLoader "+this+" goal "+level+          if(dbg) pa("MipzipLoader "+this+" goal "+level+
203                          " now at "+currentBaseLevel);                          " now at "+currentBaseLevel);
204          if(level != goalBaseLevel) {          if(level != goalBaseLevel || level != currentBaseLevel) {
205              this.goalBaseLevel = level;              this.goalBaseLevel = level;
206              this.bg = bg;              this.bg = bg;
207              this.priority = priority;              this.priority = priority;
# Line 309  public class MipzipLoader { Line 309  public class MipzipLoader {
309       * @return Memory, in bytes       * @return Memory, in bytes
310       */       */
311      public int getMemory(int level) {      public int getMemory(int level) {
312            if(level < 0) level = 0;
313            if(level > levels.length-1) level = levels.length-1;
314          int bytesForLevel = levels[level].size.width * levels[level].size.height * bitsPerTexel / 8;          int bytesForLevel = levels[level].size.width * levels[level].size.height * bitsPerTexel / 8;
315          int totalBytes = (bytesForLevel * 4) / 3;          int totalBytes = (bytesForLevel * 4) / 3;
316          return totalBytes;          return totalBytes;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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