Subversion Repositories DIN Is Noise

Rev

Rev 2173 | Rev 2300 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2173 Rev 2201
Line 144... Line 144...
144
    return 0;
144
    return 0;
145
  }
145
  }
146
}
146
}
147
147
148
void ui_list::draw () {
148
void ui_list::draw () {
-
 
149
149
  glClear (GL_COLOR_BUFFER_BIT);
150
  glClear (GL_COLOR_BUFFER_BIT);
-
 
151
-
 
152
  // graphics drawing
150
  glMatrixMode (GL_MODELVIEW);
153
  glMatrixMode (GL_MODELVIEW);
151
  glLoadIdentity ();
154
  glLoadIdentity ();
-
 
155
152
  current->draw ();
156
    current->draw ();
-
 
157
-
 
158
  // ui drawing
153
  glMatrixMode (GL_PROJECTION);
159
  glMatrixMode (GL_PROJECTION);
154
  glLoadIdentity ();
160
  glLoadIdentity ();
155
  glOrtho (0, view.xmax, 0, view.ymax, 0, 1);
161
  glOrtho (0, view.xmax, 0, view.ymax, 0, 1);
-
 
162
156
  vector<widget*> widgets = widgets_of [current];
163
    vector<widget*> widgets = widgets_of [current];
157
  for (vector<widget*>::size_type i = 0, j = widgets.size (); i < j; ++i) {
164
    for (vector<widget*>::size_type i = 0, j = widgets.size (); i < j; ++i) {
158
    widget* wi = widgets[i];
165
      widget* wi = widgets[i];
159
    if (wi->visible) wi->draw ();
166
      if (wi->visible) wi->draw ();
160
  }
167
    }
-
 
168
161
}
169
}
162
170
163
// all screens
171
// all screens
164
ui* SCREENS [] = {
172
ui* SCREENS [] = {
165
  &keybd2,
173
  &keybd2,
Line 294... Line 302...
294
    &ab_scroll_up,
302
    &ab_scroll_up,
295
    &ab_scroll_down,
303
    &ab_scroll_down,
296
    &cb_show_pitch_volume_board,
304
    &cb_show_pitch_volume_board,
297
    &cb_show_pitch_volume_drones,
305
    &cb_show_pitch_volume_drones,
298
    &cb_record,
306
    &cb_record,
299
    &din0.dinfo.gravity,
-
 
300
    &mkb_selector,
307
    &mkb_selector,
301
 };
308
 };
302
 for (int i = 0, j = 14; i < j; ++i) widgets_of [&din0].push_back (wdin[i]);
309
 for (int i = 0, j = 13; i < j; ++i) widgets_of [&din0].push_back (wdin[i]);
303
310
304
  widget* wkeybd2 [] = {
311
  widget* wkeybd2 [] = {
305
    &cb_delay,
312
    &cb_delay,
306
    &cb_compress,
313
    &cb_compress,
307
    &sp_attack_time,
314
    &sp_attack_time,