Fix a display issue with the wires
This commit is contained in:
parent
37608b6b24
commit
b92b8953a6
4 changed files with 9 additions and 3 deletions
|
@ -92,8 +92,8 @@ void display() {
|
|||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
setScene();
|
||||
drawLEDs(RENDER_MODE);
|
||||
drawWires();
|
||||
drawLEDs(RENDER_MODE);
|
||||
}
|
||||
|
||||
// Picking function
|
||||
|
|
|
@ -45,3 +45,8 @@ void on_drawing_area_realize(GtkWidget *widget, gpointer data) {
|
|||
|
||||
gdk_gl_drawable_gl_end(glDrawable);
|
||||
}
|
||||
|
||||
void on_drawing_area_key_press_event(GtkWidget *widget, gpointer data) {
|
||||
g_print("pressed");
|
||||
}
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@
|
|||
<property name="height_request">500</property>
|
||||
<property name="visible">True</property>
|
||||
<signal name="expose_event" handler="on_drawing_area_expose_event"/>
|
||||
<signal name="key_press_event" handler="on_drawing_area_key_press_event"/>
|
||||
<signal name="realize" handler="on_drawing_area_realize" after="yes"/>
|
||||
<signal name="configure_event" handler="on_drawing_area_configure_event" after="yes"/>
|
||||
</widget>
|
||||
|
|
Loading…
Reference in a new issue