Revision 997
Started on drawing robots in the right place.
gtk_environment_view.c | ||
---|---|---|
10 | 10 |
#include "gtk_environment_view.h" |
11 | 11 |
#include "draw_funcs.h" |
12 | 12 |
|
13 |
#include "robot.h" |
|
14 |
|
|
13 | 15 |
#define ENVIRONMENT_VIEW_MIN_WIDTH 100 |
14 | 16 |
#define ENVIRONMENT_VIEW_MIN_HEIGHT 50 |
15 | 17 |
|
... | ... | |
190 | 192 |
// gdk_draw_arc(widget->window, |
191 | 193 |
// widget->style->fg_gc[GTK_WIDGET_STATE(widget)], FALSE, 0, 0, |
192 | 194 |
// 100, 100, 0, 360*64); |
193 |
draw_robot(widget->window, |
|
194 |
widget->style->fg_gc[GTK_WIDGET_STATE(widget)], 10, 10, 370); |
|
195 |
|
|
196 |
robot_iterator_reset(); |
|
197 |
Robot* r; |
|
198 |
while ((r = robot_iterator_next()) != NULL) |
|
199 |
draw_robot(widget->window, |
|
200 |
widget->style->fg_gc[GTK_WIDGET_STATE(widget)], r->pose.x, r->pose.y, r->pose.theta); |
|
195 | 201 |
|
196 | 202 |
return FALSE; |
197 | 203 |
} |
Also available in: Unified diff