Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. void ft_event(t_env *e)
  2. {
  3. mlx_key_hook(e->win, my_key_ft, e);
  4. mlx_mouse_hook(e->win, mouse_hook, e);
  5. mlx_hook(e->win, 6, 0, mouse_julia, e);
  6. }
  7.  
  8. void ft_string_put(t_env *e)
  9. {
  10. mlx_string_put(e->mlx, e->win, 10, 5, 0xFF00FF, "FRACTOL");
  11. mlx_string_put(e->mlx, e->win, 10, 25, 0xFF00FF, "Fractal :");
  12. mlx_string_put(e->mlx, e->win, 10, 900, 0xFF00FF, "Press =, /, *, -,\
  13. +, 0 to change colors");
  14. mlx_string_put(e->mlx, e->win, 10, 925, 0xFF00FF, "Press 1, 2, 3 or\
  15. 4 to change Fractal");
  16. mlx_string_put(e->mlx, e->win, 10, 950, 0xFF00FF, "Press i to increase\
  17. iterations");
  18. mlx_string_put(e->mlx, e->win, 10, 975, 0xFF00FF, "Press ESC to quit");
  19. if (e->fractal == 4)
  20. mlx_string_put(e->mlx, e->win, 105, 25, 0xFF00FF, "Douady");
  21. else if (e->fractal == 3)
  22. mlx_string_put(e->mlx, e->win, 105, 25, 0xFF00FF, "Burningshit");
  23. else if (e->fractal == 2)
  24. {
  25. mlx_string_put(e->mlx, e->win, 105, 25, 0xFF00FF, "Julia");
  26. mlx_string_put(e->mlx, e->win, 10, 850, 0xFF00FF, "Press enter\
  27. to start mouse move");
  28. mlx_string_put(e->mlx, e->win, 10, 875, 0xFF00FF, "Press . to stop\
  29. mouse move");
  30. }
  31. else if (e->fractal == 1)
  32. mlx_string_put(e->mlx, e->win, 105, 25, 0xFF00FF, "Mandelbrot");
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement