/[fenfire]/fenfire/docs/newbie-dev-faq.rst
ViewVC logotype

Diff of /fenfire/docs/newbie-dev-faq.rst

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

revision 1.2 by mudyc, Mon Apr 28 15:38:28 2003 UTC revision 1.3 by tjl, Fri Jun 6 20:04:32 2003 UTC
# Line 85  So, you are *NOT* allowed to construct d Line 85  So, you are *NOT* allowed to construct d
85          private void pa(String s) { System.out.println("Foo::"+s);          private void pa(String s) { System.out.println("Foo::"+s);
86    
87    
88          public void example() {          public void example(int i) {
89              p("Just a test")              p("Just a test " + i)
90          }          }
91      }      }
92    
93  If you use this, debug string is always created and that isn't very efficient in java.  If you use this, debug string is always created using immutable string concatenation
94    and that isn't very efficient in java.
95  Well, instead of previous example, write a bit longer but more efficient: ::  Well, instead of previous example, write a bit longer but more efficient: ::
96    
97      class Foo {      class Foo {
# Line 98  Well, instead of previous example, write Line 99  Well, instead of previous example, write
99          private void pa(String s) { System.out.println("Foo::"+s);          private void pa(String s) { System.out.println("Foo::"+s);
100    
101    
102          public void example() {          public void example(int i) {
103              if (dbg) pa("Just a test")              if (dbg) pa("Just a test " + i)
104          }          }
105      }      }
106    
# Line 125  Terms Line 126  Terms
126    
127  Bilinear and Trilinear  Bilinear and Trilinear
128    
129    - Close temrs to mipmapping. Trilinear sums 8 texels and counts    - Close temrs to mipmapping. Trilinear reads 8 texels from two mipmap levels.
130      weighted average factor from two mipmap levels.      and calculates a weighted average
131      Bilinear is same with 4 texels from one mipmap level.      Bilinear is same with 4 texels from one mipmap level.
132      Of course trilinear looks much better - it doesn't jump around.      Of course trilinear looks much better - it doesn't jump around.
133    
   
 How to use mediaserver, mstmpimg and texpacker for mipzips?  
 ===========================================================  
   
 0) cd gzz dir =)  
   
 1) CLASSPATH=./CLASSES java gzz.mediaserver.AddToMediaserver -c ../Z-private guess ../pdfs/<article>  
   
 2) make sync-private  
   
 3) perl genimages.pl  
   
 4) get someone with fast cpu (and harddisk io) to generate the mipzips with following script:  
   
 5) make runjython DBG="gfx/util/texpacker.py  ../mstmpimg/*-170-*[0-9]"  
   

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

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