NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d2d Namespace Reference

Description

2D engine namespace. Deals with drawing anything 2D, like the HUD and small scores.

Classes

class  Multi_c
 A base 2D layout class. More...
 
class  ResAccMult_c
 
class  ResAccMultLoader_c
 
struct  ScissorMask
 Stores clipping settings for a layout. More...
 

Functions

void init ()
 Initializes the 2D engine.
 
void draw ()
 Draws all registered 2D objects.
 
void drawBefore ()
 Draws all registered background 2D objects.
 
void drawAfter ()
 Draws all registered foreground 2D objects.
 
void drawBtween (u8 after, u8 before)
 Draws all registered 2D objects between the after and before draw orders.
 
int setAlpha_patrolPane_patrol (nw4r::lyt::Pane *pane, void *opacity)
 Visitor function for setting the opacity of panes.
 
void setAlpha (m2d::Simple_c *layout, u8 opacity)
 Sets the opacity of an entire layout.
 

Function Documentation

◆ init()

void d2d::init ( )

Initializes the 2D engine.

Definition at line 11 of file d_2d.cpp.

◆ draw()

void d2d::draw ( )

Draws all registered 2D objects.

Definition at line 13 of file d_2d.cpp.

◆ drawBefore()

void d2d::drawBefore ( )

Draws all registered background 2D objects.

Definition at line 17 of file d_2d.cpp.

◆ drawAfter()

void d2d::drawAfter ( )

Draws all registered foreground 2D objects.

Definition at line 21 of file d_2d.cpp.

◆ drawBtween()

void d2d::drawBtween ( u8 after,
u8 before )

Draws all registered 2D objects between the after and before draw orders.

Definition at line 25 of file d_2d.cpp.

◆ setAlpha_patrolPane_patrol()

int d2d::setAlpha_patrolPane_patrol ( nw4r::lyt::Pane * pane,
void * opacity )

Visitor function for setting the opacity of panes.

Parameters
panePointer to the pane being visited.
opacityPointer to the opacity value to set.

Definition at line 34 of file d_2d.cpp.

◆ setAlpha()

void d2d::setAlpha ( m2d::Simple_c * layout,
u8 opacity )

Sets the opacity of an entire layout.

Definition at line 41 of file d_2d.cpp.