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

The struct of type t_canvas contains the necessary fields for graphic initialization and window rendering. More...

#include <canvas.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_canvas contains the necessary fields for graphic initialization and window rendering.

ABOUT THE HEADER CANVAS.H

This header contains all functions that works directly or indirectly with graphic information and MLX's library manipulation.

Parameters
mlx_ptrContains the pointer to a connection with the Xserver.
win_ptrContains the pointer to a window created with MLX.
img_ptrContains the pointer to a image created with MLX.
addrStores information about how to write data on pixels from an instance of a MLX's windows and image.
bppContains the bits per pixel value from MLX.
line_lenContains the line length value from MLX.
endianStores the most significant endianess order from MLX.
widthStores the width of the window and the image created with MLX.
heightStores the height of the window and the image created with MLX.