miniRT
By Marcelo Magalhães and Ygor G. Sena, 2023.
s_uv_image Struct Reference

The struct of type t_uv_image represents an image used for texturing another image. More...

#include <patterns.h>

Data Fields

void * mlx_ptr
 
void * win_ptr
 
void * img_ptr
 
char * addr
 
int bpp
 
int line_len
 
int endian
 
int width
 
int height
 

Detailed Description

The struct of type t_uv_image represents an image used for texturing another image.

The t_uv_image structure contains the necessary fields for storing image data and relevant information used for texturing operations. It is used to define an image that can be applied as a texture on another image or rendered onto a canvas.

Parameters
mlx_ptrA pointer to a connection with the Xserver.
win_ptrA pointer to a window created with MLX (MinilibX).
img_ptrA pointer to an image created with MLX (MinilibX).
addrA pointer to the image data, indicating how to write data on pixels of the image.
bppThe bits per pixel value of the image.
line_lenThe line length value of the image.
endianThe endianness order of the image.
widthThe width of the image in pixels.
heightThe height of the image in pixels.