/[gzz]/gzz/gfx/librenderables/renderables.py
ViewVC logotype

Diff of /gzz/gfx/librenderables/renderables.py

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

revision 1.62 by tjl, Wed Sep 25 14:45:43 2002 UTC revision 1.63 by tjl, Thu Sep 26 08:31:24 2002 UTC
# Line 520  rs = [ Line 520  rs = [
520              this->mode = mode;              this->mode = mode;
521              setup = CallGLCode(string(setupcode.begin(), setupcode.end()).c_str());              setup = CallGLCode(string(setupcode.begin(), setupcode.end()).c_str());
522          """,          """,
     "ExtraClass" : """  
             Pt lerp(float f, Pt a, Pt b) {  
                 return Pt((1 - f) * a.x + f * b.x,  
                           (1 - f) * a.y + f * b.y);  
             }  
     """,  
523      "RenderCode" : "int i=0; i++;",      "RenderCode" : "int i=0; i++;",
524      "BLAH": """      "BLAH" : """
525          DBG(dbg) << "Irregular quad\\n";          DBG(dbg) << "Irregular quad\\n";
526    
         AffineCoords &oldcs2 = coords2;  
         {  
         AffineCoords coords2(oldcs2.center, oldcs2.x * cs2p, oldcs2.y * cs2p);  
   
527          setup();          setup();
528          GLERR;          GLERR;
529    
530          AffineCoords cs1inv = coords1.getInverse();          CoordSys &cs1inv = *coords1.getInverse();
531          AffineCoords cs2inv = coords2.getInverse();          CoordSys &cs2inv = *coords2.getInverse();
532    
533          // Normalize unit vectors inside coords2 to get border widths          // Normalize unit vectors inside coords2 to get border widths
534          float bx = border * cs1inv.transform(coords2.transform(cs2inv.transform(coords1.x).normalize())).x;          float bx = border * cs1inv.transform(coords2.transform(cs2inv.transform(coords1.x).normalize())).x;
# Line 676  rs = [ Line 666  rs = [
666    
667    
668          glPopAttrib();          glPopAttrib();
         }  
669      """,      """,
670  }    ,  }    ,
671    

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63

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