Basic graphics module for simple graphics drawing or prototyping purposes.
More...
|
| void | gdl::DrawPoint (short x, short y, u_int col) |
| | Draws a point or a single pixel.
|
| |
| void | gdl::DrawLine (short x1, short y1, short x2, short y2, u_int col) |
| | Draws a line.
|
| |
| void | gdl::DrawBox (short x1, short y1, short x2, short y2, u_int col) |
| | Draws a box.
|
| |
| void | gdl::DrawBoxF (short x1, short y1, short x2, short y2, u_int col) |
| | Draws a filled box.
|
| |
| void | gdl::DrawLineG (short x1, short y1, short x2, short y2, u_int col_a, u_int col_b) |
| | Draws a gouraud-shaded line.
|
| |
| void | gdl::DrawBoxG (short x1, short y1, short x2, short y2, u_int tl_col, u_int tr_col, u_int br_col, u_int bl_col) |
| | Draws a gouraud-shaded box.
|
| |
| void | gdl::DrawBoxFG (short x1, short y1, short x2, short y2, u_int tl_col, u_int tr_col, u_int br_col, u_int bl_col) |
| | Draws a filled gouraud-shaded box.
|
| |
Basic graphics module for simple graphics drawing or prototyping purposes.
Because these graphics functions send vertex data directly to the GX, it is best not to call these routines too redundantly otherwise, a slowdown will occur.
These functions are mostly meant for prototyping purposes.
◆ DrawBox()
| void gdl::DrawBox |
( |
short |
x1, |
|
|
short |
y1, |
|
|
short |
x2, |
|
|
short |
y2, |
|
|
u_int |
col |
|
) |
| |
Draws a box.
- Parameters
-
| [in] | x1 | X coordinate of upper-left point of box. |
| [in] | y1 | Y coordinate of upper-left point of box. |
| [in] | x2 | X coordinate of lower-right point of box. |
| [in] | y2 | Y coordinate of lower-right point of box. |
| [in] | col | Color of point (see gdl::Color::ColorValues or Color Handling Macros). |
◆ DrawBoxF()
| void gdl::DrawBoxF |
( |
short |
x1, |
|
|
short |
y1, |
|
|
short |
x2, |
|
|
short |
y2, |
|
|
u_int |
col |
|
) |
| |
Draws a filled box.
- Parameters
-
| [in] | x1 | X coordinate of upper-left point of box. |
| [in] | y1 | Y coordinate of upper-left point of box. |
| [in] | x2 | X coordinate of lower-right point of box. |
| [in] | y2 | Y coordinate of lower-right point of box. |
| [in] | col | Color of point (see gdl::Color::ColorValues or Color Handling Macros). |
◆ DrawBoxFG()
| void gdl::DrawBoxFG |
( |
short |
x1, |
|
|
short |
y1, |
|
|
short |
x2, |
|
|
short |
y2, |
|
|
u_int |
tl_col, |
|
|
u_int |
tr_col, |
|
|
u_int |
br_col, |
|
|
u_int |
bl_col |
|
) |
| |
Draws a filled gouraud-shaded box.
- Parameters
-
| [in] | x1 | X coordinate of upper-left point of box. |
| [in] | y1 | Y coordinate of upper-left point of box. |
| [in] | x2 | X coordinate of lower-right point of box. |
| [in] | y2 | Y coordinate of lower-right point of box. |
| [in] | tl_col | Color of top-left point of box (see gdl::Color::ColorValues or Color Handling Macros). |
| [in] | tr_col | Color of top-right point of box. |
| [in] | br_col | Color of bottom-right point of box. |
| [in] | bl_col | Color of bottom-left point of box. |
◆ DrawBoxG()
| void gdl::DrawBoxG |
( |
short |
x1, |
|
|
short |
y1, |
|
|
short |
x2, |
|
|
short |
y2, |
|
|
u_int |
tl_col, |
|
|
u_int |
tr_col, |
|
|
u_int |
br_col, |
|
|
u_int |
bl_col |
|
) |
| |
Draws a gouraud-shaded box.
- Parameters
-
| [in] | x1 | X coordinate of upper-left point of box. |
| [in] | y1 | Y coordinate of upper-left point of box. |
| [in] | x2 | X coordinate of lower-right point of box. |
| [in] | y2 | Y coordinate of lower-right point of box. |
| [in] | tl_col | Color of top-left point of box (see gdl::Color::ColorValues or Color Handling Macros). |
| [in] | tr_col | Color of top-right point of box. |
| [in] | br_col | Color of bottom-right point of box. |
| [in] | bl_col | Color of bottom-left point of box. |
◆ DrawLine()
| void gdl::DrawLine |
( |
short |
x1, |
|
|
short |
y1, |
|
|
short |
x2, |
|
|
short |
y2, |
|
|
u_int |
col |
|
) |
| |
Draws a line.
You can adjust the point size with GX_SetLineWidth() but its going to be tricky since the function doesn't really take sizes in pixels exactly.
- Parameters
-
| [in] | x1 | X coordinate of start point of line. |
| [in] | y1 | Y coordinate of start point of line. |
| [in] | x2 | X coordinate of end point of line. |
| [in] | y2 | Y coordinate of end point of line. |
| [in] | col | Color of point (see gdl::Color::ColorValues or Color Handling Macros). |
◆ DrawLineG()
| void gdl::DrawLineG |
( |
short |
x1, |
|
|
short |
y1, |
|
|
short |
x2, |
|
|
short |
y2, |
|
|
u_int |
col_a, |
|
|
u_int |
col_b |
|
) |
| |
Draws a gouraud-shaded line.
- Parameters
-
| [in] | x1 | X coordinate of start point of line. |
| [in] | y1 | Y coordinate of start point of line. |
| [in] | x2 | X coordinate of end point of line. |
| [in] | y2 | Y coordinate of end point of line. |
| [in] | col_a | Color of start point of line (see gdl::Color::ColorValues or Color Handling Macros). |
| [in] | col_b | Color of end point of line. |
◆ DrawPoint()
| void gdl::DrawPoint |
( |
short |
x, |
|
|
short |
y, |
|
|
u_int |
col |
|
) |
| |
Draws a point or a single pixel.
You can adjust the point size with GX_SetPointSize() but its going to be tricky since the function does not exactly take the size in pixels units.
- Parameters
-
| [in] | x | X coordinate of point. |
| [in] | y | Y coordinate of point. |
| [in] | col | Color of point (see gdl::Color::ColorValues or Color Handling Macros). |