~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/covira/tube_draw.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #include <tina/all_tina.h>
  2 #include <tina/brain.h>
  3 #include <tina/brainfuncs.h>
  4 
  5 void sagit_tube_draw(Tv *tv, Tube *tube)
  6 {
  7     int z;
  8     if(tube == NULL)
  9         return;
 10     for(z = tube->z1; z < tube->z2-1; z++)
 11     {
 12         double y1 = vec2_y(tube->p1[z]);
 13         double y2 = vec2_y(tube->p1[z+1]);
 14         tv_line2(tv, vec2(y1, z+0.5), vec2(y2, z+1.5));
 15     }
 16     for(z = tube->z1; z < tube->z2-1; z++)
 17     {
 18         double y1 = vec2_y(tube->p2[z]);
 19         double y2 = vec2_y(tube->p2[z+1]);
 20         tv_line2(tv, vec2(y1, z+0.5), vec2(y2, z+1.5));
 21     }
 22 }
 23 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.