Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ft_event(t_env *e)
- {
- mlx_key_hook(e->win, my_key_ft, e);
- mlx_mouse_hook(e->win, mouse_hook, e);
- mlx_hook(e->win, 6, 0, mouse_julia, e);
- }
- void ft_string_put(t_env *e)
- {
- mlx_string_put(e->mlx, e->win, 10, 5, 0xFF00FF, "FRACTOL");
- mlx_string_put(e->mlx, e->win, 10, 25, 0xFF00FF, "Fractal :");
- mlx_string_put(e->mlx, e->win, 10, 900, 0xFF00FF, "Press =, /, *, -,\
- +, 0 to change colors");
- mlx_string_put(e->mlx, e->win, 10, 925, 0xFF00FF, "Press 1, 2, 3 or\
- 4 to change Fractal");
- mlx_string_put(e->mlx, e->win, 10, 950, 0xFF00FF, "Press i to increase\
- iterations");
- mlx_string_put(e->mlx, e->win, 10, 975, 0xFF00FF, "Press ESC to quit");
- if (e->fractal == 4)
- mlx_string_put(e->mlx, e->win, 105, 25, 0xFF00FF, "Douady");
- else if (e->fractal == 3)
- mlx_string_put(e->mlx, e->win, 105, 25, 0xFF00FF, "Burningshit");
- else if (e->fractal == 2)
- {
- mlx_string_put(e->mlx, e->win, 105, 25, 0xFF00FF, "Julia");
- mlx_string_put(e->mlx, e->win, 10, 850, 0xFF00FF, "Press enter\
- to start mouse move");
- mlx_string_put(e->mlx, e->win, 10, 875, 0xFF00FF, "Press . to stop\
- mouse move");
- }
- else if (e->fractal == 1)
- mlx_string_put(e->mlx, e->win, 105, 25, 0xFF00FF, "Mandelbrot");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement