cmdfx 0.3.2
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
path.hpp
Go to the documentation of this file.
1
11#pragma once
12
13extern "C" {
14#include "cmdfx/ui/path.h"
15}
16
17#include <string>
18
19namespace CmdFX
20{
21
22namespace Canvas
23{
35inline void path(const std::string path, char ch) {
36 Canvas_path(path.c_str(), ch);
37}
38
39} // namespace Canvas
40
41} // namespace CmdFX
C++ wrapper for the CmdFX canvas.
Definition canvas.hpp:25
void path(const std::string path, char ch)
Draws a path on the canvas using the specified path string.
Definition path.hpp:35
Primary namespace for CmdFX.
Definition cmdfx.hpp:26
Draw on Canvas using SVG-like path commands.
int Canvas_path(const char *path, char ch)
Draws a path on the canvas using the specified path string.