ML_backgrounds.h File Reference

This file contains backgrounds headers. More...

Functions

void ML_DrawBackground (ML_Background *background)
 This function shows the background.
void ML_CloneBackground (ML_Background *background1, ML_Background *background2)
 This function clones two backgrounds.
void ML_RotateBackground (ML_Background *background, float angle, u8 autoRotate)
 This function rotates the background.
void ML_SetBackgroundScale (ML_Background *background, float scaleX, float scaleY)
 This function changes the Scale X and Scale Y of the background.
void ML_SetBackgroundSize (ML_Background *background, u16 width, u16 height)
 This function changes the size of your background.
void ML_SetBackgroundAlpha (ML_Background *background, u8 alpha)
 This function set the transparency of the background.

Detailed Description

This file contains backgrounds headers.


Function Documentation

void ML_CloneBackground ( ML_Background background1,
ML_Background background2 
)

This function clones two backgrounds.

Parameters:
background1 The original background
background2 The background which will be the same as background1
void ML_DrawBackground ( ML_Background background  ) 

This function shows the background.

Parameters:
background Background
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
 All Data Structures Files Functions Variables Defines

Generated on Wed Jan 19 18:15:34 2011 for MLlib by  doxygen 1.6.1