Backbuffer functions used to manipulate and place pixels onto it.
More...
|
| void | cubmlx_clear (t_mlx *mlx, unsigned int color) |
| | Clear the backbuffer with a specific color.
|
| |
| void | cubmlx_putpixel (t_data *data, int x, int y, unsigned int color) |
| | Puts a pixel onto the backbuffer.
|
| |
| void | cubmlx_putvertline (t_data *data, t_pos2 pos, int len, unsigned int color) |
| | Puts a vertical line on the backbuffer. Optimized for vertical lines.
|
| |
| void | cubmlx_putrect (t_data *data, t_pos2 pos, t_pos2 size, unsigned int color) |
| | Puts a rectangle onto the backbuffer.
|
| |
| void | cubmlx_putline (t_data *data, t_pos2 p1, t_pos2 p2, unsigned int color) |
| | Puts a line onto the backbuffer.
|
| |
Backbuffer functions used to manipulate and place pixels onto it.
◆ cubmlx_clear()
| void cubmlx_clear |
( |
t_mlx * | mlx, |
|
|
unsigned int | color ) |
Clear the backbuffer with a specific color.
- Parameters
-
| [in,out] | mlx | mlx structure |
| [in] | color | color |
◆ cubmlx_putline()
Puts a line onto the backbuffer.
- Parameters
-
| [in,out] | data | data structure |
| [in] | p1 | coordinates of starting point of the line |
| [in] | p2 | coordinates of ending point of the line |
| [in] | color | color |
◆ cubmlx_putpixel()
| void cubmlx_putpixel |
( |
t_data * | data, |
|
|
int | x, |
|
|
int | y, |
|
|
unsigned int | color ) |
Puts a pixel onto the backbuffer.
- Parameters
-
| [in,out] | data | data structure |
| [in] | x | x axis |
| [in] | y | y axis |
| [in] | color | color |
◆ cubmlx_putrect()
Puts a rectangle onto the backbuffer.
- Parameters
-
| [in,out] | data | structure |
| [in] | pos | starting point |
| [in] | size | rectangle width and height |
| [in] | color | color |
◆ cubmlx_putvertline()
| void cubmlx_putvertline |
( |
t_data * | data, |
|
|
t_pos2 | pos, |
|
|
int | len, |
|
|
unsigned int | color ) |
Puts a vertical line on the backbuffer. Optimized for vertical lines.
- Parameters
-
| [in,out] | data | data structure |
| [in] | pos | coordinates of starting point of the line |
| [in] | len | len of the line |
| [in] | color | color |