예제 #1
0
static void		display_screen(void *mlx, void *win, t_object **object)
{
	t_all		all;

	all.mlx = mlx;
	all.win = win;
	all.object = object;
	reset(&all);
	plot_points(mlx, win, object, all.pos);
	mlx_hook(win, 2, 1L << 01, mouve_map, &all);
	mlx_loop(mlx);
}
예제 #2
0
void lineSeg()
{
    glClear(GL_COLOR_BUFFER_BIT);
    glColor3f(1.0,0.0,0.0);
    glLoadIdentity();
    
    
    plot_points();
    
    glEnd();
    glFlush();
}
예제 #3
0
static int	update_map(void *mlx, void *win, t_object **object, t_pos pos)
{
	mlx_clear_window(mlx, win);
	plot_points(mlx, win, object, pos);
	return (0);
}