The type t_pattern contatins all the necessary information to apply a texture on a given shape's surface. More...
#include <patterns.h>
Data Fields | |
t_bool | has_pattern |
t_pttr_at | pattern_at |
t_text_map | texture_map |
t_color | a |
t_color | b |
t_matrix | transform |
t_matrix | inverse |
t_matrix | transpose |
The type t_pattern contatins all the necessary information to apply a texture on a given shape's surface.
has_pattern | Stores TRUE if shape has a pattern or FALSE, if not. |
pattern_at | Receives a pattern function to apply the corresponding pattern. For more information, see t_pttr_at description. |
texture_map | This structure creates a t_pattern subclass (the same as t_pttr_at, which calls stripe_at() or checkered_at()). t_text_map is a subclass that uses spherical_map(), planar_map() or cylindrical_map() to define how to apply a pattern on a given 2D or 3D shape's surface. |
width | Receives u, the horizontal value of checkers squares. |
height | Receives v, the vertical value of checkers squares. |
a | Receives the first color of a given pattern to be applied. |
b | Receives the second color of a given pattern to be applied. |
transform | Stores matrix transformation so that pattern be manipulated. |