~ubuntu-branches/ubuntu/wily/soundscaperenderer/wily-proposed

« back to all changes in this revision

Viewing changes to src/gui/qopenglplotter.cpp

  • Committer: Package Import Robot
  • Author(s): IOhannes m zmölnig (Debian/GNU)
  • Date: 2014-09-01 11:35:32 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140901113532-svjohhyw755nkxef
Tags: 0.4.2~dfsg-1
* Imported Upstream version 0.4.2~dfsg

* Refreshed patches.
* Removed patches applied upstream.
* Install upstream's NEWS as changelog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
590
590
 
591
591
  gluDisk(_glu_quadric, 0.0f, 0.15f * scale, LEVELOFDETAIL, 1);
592
592
 
593
 
  // draw pizza slice
 
593
  // fill source
594
594
  qglColor(_color_vector[source->id%_color_vector.size()]);
595
595
 
596
 
  gluPartialDisk(_glu_quadric, 0.0f, 0.145f * scale,
597
 
                 LEVELOFDETAIL, 1, 0.0f, 30.0f);
 
596
  gluPartialDisk(_glu_quadric, 0.0f, 0.125f * scale,
 
597
                 LEVELOFDETAIL, 1, 0.0f, 360.0f);
598
598
 
599
599
  // draw solo indication
600
600
  if (soloed)
607
607
 
608
608
  // choose color
609
609
  if (source->mute) glColor3f(0.5f, 0.5f, 0.5f);
610
 
  else glColor3f(0.0f, 0.0f, 0.0f);
611
 
 
 
610
  else qglColor(_color_vector[source->id%_color_vector.size()]);
 
611
    
612
612
  // draw ring around source
613
613
  gluDisk(_glu_quadric, 0.14f * scale, 0.15f * scale, LEVELOFDETAIL, 1);
614
614
 
706
706
    // rotate
707
707
    glRotatef(static_cast<GLfloat>(source->orientation.azimuth), 0.0f, 0.0f, 1.0f);
708
708
 
709
 
    qglColor(_color_vector[source->id%_color_vector.size()]);
710
 
 
 
709
    if (source->mute) glColor3f(0.5f, 0.5f, 0.5f);
 
710
      else qglColor(_color_vector[source->id%_color_vector.size()]);
 
711
      
711
712
    // plot ring segments
712
713
    gluPartialDisk(_glu_quadric, 0.18f * scale, 0.19f * scale, LEVELOFDETAIL, 1, 105.0f, 75.0f);
713
714
    gluPartialDisk(_glu_quadric, 0.18f * scale, 0.19f * scale, LEVELOFDETAIL, 1,   0.0f, 90.0f);