Skip to content

Structure_bonus

ChangHyun Jang edited this page Apr 23, 2022 · 5 revisions

miniRT Bonus 구조체 관계도

mandatory에서 바뀐 점

  • t_sphere, t_plane, t_cylinder -> t_object로 통합
    물체가 늘어남에 따라 구조체를 하나로 합치고 타입을 표기하는 방식으로 변경
  • t_color_info 구조체 추가
    checkerboard와 bumpmap의 정보를 담기 위한 구조체 추가
  • t_obj_list의 t_color3 -> t_color_info로 수정
    기존의 RGB 정보만 담는 것에서 확장하여 checkerboard와 bumpmap의 정보까지 담기 위해 t_color_info로 수정.

minirt 관계도_bonus