XS Framework
A 3DS homebrew development framework.
 
Loading...
Searching...
No Matches
2d.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <3ds.h>
4#include <citro2d.h>
5
6namespace xs::graphics {
17void DrawSolidRect(float x, float y, float width, float height, float depth,
18 u32 color);
30void DrawSolidLine(float x1, float y1, float x2, float y2, float thickness,
31 float depth, u32 color);
32} // namespace xs::graphics
Definition 2d.hpp:6
u32 color(const std::string &hexStr, int alpha=255)
Convert a hex color string to a u32 color value.
void DrawSolidLine(float x1, float y1, float x2, float y2, float thickness, float depth, u32 color)
Draw a Line.
void DrawSolidRect(float x, float y, float width, float height, float depth, u32 color)
Draw a solid rectangle.