void slider::draw() { EPS_STATE_BLEND(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); math::vec2 pos = global_position(); const float value = model_->get_value(); draw_slider_end(pos, value); draw_slider_begin(pos, value); draw_tracker(pos, value); }
void on_display() { // Render the scene. glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); draw_axes(); draw_tracker(tposquat); glutSwapBuffers(); }