Namespaces | |
| namespace | screen |
Functions | |
| void | DrawSolidRect (float x, float y, float width, float height, float depth, u32 color) |
| Draw a solid rectangle. | |
| void | DrawSolidLine (float x1, float y1, float x2, float y2, float thickness, float depth, u32 color) |
| Draw a Line. | |
| u32 | color (const std::string &hexStr, int alpha=255) |
| Convert a hex color string to a u32 color value. | |
Variables | |
| const u32 | clrWhite |
| Common color constants (RGBA packed into u32 using C2D_Color32). | |
| const u32 | clrBlack |
| const u32 | clrRed |
| const u32 | clrGreen |
| const u32 | clrBlue |
| const u32 | clrYellow |
| const u32 | clrCyan |
| const u32 | clrMagenta |
| const u32 | clrClear |
| u32 xs::graphics::color | ( | const std::string & | hexStr, |
| int | alpha = 255 ) |
Convert a hex color string to a u32 color value.
| hexStr | The hex color string (e.g., "#RRGGBB" or "RRGGBB"). |
| alpha | Value from 0-255 (Transparency) |
| void xs::graphics::DrawSolidLine | ( | float | x1, |
| float | y1, | ||
| float | x2, | ||
| float | y2, | ||
| float | thickness, | ||
| float | depth, | ||
| u32 | color ) |
Draw a Line.
| x1 | X coordinate of the start point of the line |
| y1 | Y coordinate of the start point of the line |
| x2 | X coordinate of the end point of the line |
| y2 | Y coordinate of the end point of the line |
| thickness | Thickness of the line |
| depth | Z coordinate of the line 0.0f - 1.0f |
| color | color() format |
| void xs::graphics::DrawSolidRect | ( | float | x, |
| float | y, | ||
| float | width, | ||
| float | height, | ||
| float | depth, | ||
| u32 | color ) |
Draw a solid rectangle.
| x | X coordinate of the top-left vertex of the rectangle |
| y | Y coordinate of the top-left vertex of the rectangle |
| depth | Z coordinate of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| color | color() format |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Common color constants (RGBA packed into u32 using C2D_Color32).
|
extern |