|
libnds
|
Definitions for sprite and background windows. More...
#include <nds/arm9/background.h>#include <nds/arm9/sassert.h>#include <nds/arm9/sprite.h>#include <nds/arm9/video.h>#include <nds/dma.h>#include <nds/memory.h>#include <nds/ndstypes.h>Enumerations | |
| enum | WINDOW { WINDOW_0 = DISPLAY_WIN0_ON , WINDOW_1 = DISPLAY_WIN1_ON , WINDOW_OBJ = DISPLAY_SPR_WIN_ON , WINDOW_OUT = BIT(16) } |
| The supported windows. More... | |
Functions | |
| void | bgWindowDisable (int id, WINDOW window) |
| Disables the window on the supplied background. | |
| void | bgWindowEnable (int id, WINDOW window) |
| Enables the window on the supplied background. | |
| void | oamWindowDisable (OamState *oam, WINDOW w) |
| Disables the specified OAM window. | |
| void | oamWindowEnable (OamState *oam, WINDOW w) |
| Enables the specified OAM window. | |
| static void | windowDisable (WINDOW w) |
| Disable the specified window(s) (main engine). | |
| static void | windowDisableSub (WINDOW w) |
| Disable the specified window(s) (sub engine). | |
| static void | windowEnable (WINDOW w) |
| Enable the specified window(s) (main engine). | |
| static void | windowEnableSub (WINDOW w) |
| Enable the specified window(s) (sub engine). | |
| void | windowSetBounds (WINDOW window, u8 left, u8 top, u8 right, u8 bottom) |
| Set the windows bounds (main engine). | |
| void | windowSetBoundsSub (WINDOW window, u8 left, u8 top, u8 right, u8 bottom) |
| Set the windows bounds (sub engine). | |
Definitions for sprite and background windows.
| enum WINDOW |
| void bgWindowDisable | ( | int | id, |
| WINDOW | window | ||
| ) |
Disables the window on the supplied background.
| id | Background ID returned from bgInit or bgInitSub. |
| window | The window to disable. |
| void bgWindowEnable | ( | int | id, |
| WINDOW | window | ||
| ) |
Enables the window on the supplied background.
| id | Background ID returned from bgInit or bgInitSub. |
| window | The window to enable. |
Disables the specified OAM window.
| oam | Must be &oamMain or &oamSub. |
| w | The window to disable. |
Enables the specified OAM window.
| oam | Must be &oamMain or &oamSub. |
| w | The window to enable. |
|
inlinestatic |
Disable the specified window(s) (main engine).
| w | The window to set bounds on (may be ORed together). |
|
inlinestatic |
Disable the specified window(s) (sub engine).
| w | The window to set bounds on (may be ORed together). |
|
inlinestatic |
Enable the specified window(s) (main engine).
| w | The window to set bounds on (may be ORed together). |
|
inlinestatic |
Enable the specified window(s) (sub engine).
| w | The window to set bounds on (may be ORed together). |
Set the windows bounds (main engine).
| window | The window to set bounds on. |
| left | The X coordinate of the left hand side of the rectangle. |
| top | The Y coordinate of the top of the rectangle. |
| right | The X coordinate of the right hand side of the rectangle. |
| bottom | The Y coordinate of the bottom of the rectangle. |
Set the windows bounds (sub engine).
| window | The window to set bounds on. |
| left | The X coordinate of the left hand side of the rectangle. |
| top | The Y coordinate of the top of the rectangle. |
| right | The X coordinate of the right hand side of the rectangle. |
| bottom | The Y coordinate of the bottom of the rectangle. |