ML_backgrounds.h File Reference
This file contains backgrounds headers.
More...
Detailed Description
This file contains backgrounds headers.
Function Documentation
This function clones two backgrounds.
- Parameters:
-
| background1 | The original background |
| background2 | The background which will be the same as background1 |
This function shows the background.
- Parameters:
-
void ML_RotateBackground |
( |
ML_Background * |
background, |
|
|
float |
angle, |
|
|
u8 |
autoRotate | |
|
) |
| | |
This function rotates the background.
- Parameters:
-
| background | Background |
| angle | Angle of rotation (degrees) |
| autoRotate | If TRUE, the background will rotate of <angle> degrees each frame. If it's FALSE, the background will rotate to the angle indicated. |
void ML_SetBackgroundAlpha |
( |
ML_Background * |
background, |
|
|
u8 |
alpha | |
|
) |
| | |
This function set the transparency of the background.
- Parameters:
-
| background | Background |
| alpha | Transparency ( 0 -> 255 ) |
void ML_SetBackgroundScale |
( |
ML_Background * |
background, |
|
|
float |
scaleX, |
|
|
float |
scaleY | |
|
) |
| | |
This function changes the Scale X and Scale Y of the background.
- Parameters:
-
| background | Background |
| scaleX | New scale for the width of the background |
| scaleY | New scale for the height of the background |
void ML_SetBackgroundSize |
( |
ML_Background * |
background, |
|
|
u16 |
width, |
|
|
u16 |
height | |
|
) |
| | |
This function changes the size of your background.
- Parameters:
-
| background | Background |
| width | New width |
| height | New height |