|
1 |
| -#include "tophat.h" |
| 1 | +// Generated via cmd/win-buildmodules.bat |
| 2 | +#include "tophat.h" |
2 | 3 | const char *th_em_modulesrc[] = {
|
3 | 4 | "\n"
|
4 | 5 | "import (\n"
|
@@ -2718,7 +2719,7 @@ const char *th_em_modulesrc[] = {
|
2718 | 2719 | "\n"
|
2719 | 2720 | "fn umth_conv_path(path: str): str\n"
|
2720 | 2721 | "//~~fn convPath\n"
|
2721 |
| -"// Expands the path to a platform specific path.\n" |
| 2722 | +"// Evaluate path prefixes and return as a platform native path.\n" |
2722 | 2723 | "fn convPath*(path: str): str {\n"
|
2723 | 2724 | "//~~\n"
|
2724 | 2725 | "\treturn umth_conv_path(path)\n"
|
@@ -4108,7 +4109,7 @@ const char *th_em_misc[] = {
|
4108 | 4109 | "OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n"
|
4109 | 4110 | "OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
|
4110 | 4111 | "",
|
4111 |
| -"v1.4\n" |
| 4112 | +"v1.5\n" |
4112 | 4113 | "",
|
4113 | 4114 | };
|
4114 | 4115 | const char *th_em_moduledocs[] = {
|
@@ -4422,6 +4423,94 @@ const char *th_em_moduledocs[] = {
|
4422 | 4423 | "---------\n"
|
4423 | 4424 | "\n"
|
4424 | 4425 | "",
|
| 4426 | +"[1m[0m\n" |
| 4427 | +"\n" |
| 4428 | +"[3m[0m\n" |
| 4429 | +"Canvas library allowing for drawing basic shapes. Coordinates are based on\n" |
| 4430 | +"the screen.\n" |
| 4431 | +"\n" |
| 4432 | +"---------\n" |
| 4433 | +"\n" |
| 4434 | +"[1mfn drawText[0m\n" |
| 4435 | +"\n" |
| 4436 | +"[3mfn drawText*(text: str, pos: th::Vf2, color: uint32, size: th::fu) {\n" |
| 4437 | +"[0m\n" |
| 4438 | +"Draws a basic pixel text. Only ascii is supported.\n" |
| 4439 | +"\n" |
| 4440 | +"---------\n" |
| 4441 | +"\n" |
| 4442 | +"[1mfn textSize[0m\n" |
| 4443 | +"\n" |
| 4444 | +"[3mfn textSize*(text: str, scale: th::fu): th::Vf2 {\n" |
| 4445 | +"[0m\n" |
| 4446 | +"Returns the size of text taken by an equivalent drawText call.\n" |
| 4447 | +"\n" |
| 4448 | +"---------\n" |
| 4449 | +"\n" |
| 4450 | +"[1mPixel Font[0m\n" |
| 4451 | +"\n" |
| 4452 | +"[3mvar pixelFont*: PixelFont\n" |
| 4453 | +"[0m\n" |
| 4454 | +"The `pixelFont` variable exposes the canvas pixel font as a generic font.\n" |
| 4455 | +"\n" |
| 4456 | +"---------\n" |
| 4457 | +"\n" |
| 4458 | +"[1mfn drawRect[0m\n" |
| 4459 | +"\n" |
| 4460 | +"[3mfn drawRect*(color: uint32, r: rect::Rect) {\n" |
| 4461 | +"[0m\n" |
| 4462 | +"Draws a Rectangle.\n" |
| 4463 | +"\n" |
| 4464 | +"---------\n" |
| 4465 | +"\n" |
| 4466 | +"[1mfn drawLine[0m\n" |
| 4467 | +"\n" |
| 4468 | +"[3mfn drawLine*(color: uint32, b, e: th::Vf2, thickness: th::fu) {\n" |
| 4469 | +"[0m\n" |
| 4470 | +"Draws a line.\n" |
| 4471 | +"\n" |
| 4472 | +"---------\n" |
| 4473 | +"\n" |
| 4474 | +"[1mfn drawRectLines[0m\n" |
| 4475 | +"\n" |
| 4476 | +"[3mfn drawRectLines*(color: uint32, r: rect::Rect, thickness: real32 = 1.0) {\n" |
| 4477 | +"[0m\n" |
| 4478 | +"Draws rect border.\n" |
| 4479 | +"\n" |
| 4480 | +"---------\n" |
| 4481 | +"\n" |
| 4482 | +"[1mfn drawQuad[0m\n" |
| 4483 | +"\n" |
| 4484 | +"[3mfn drawQuad*(color: uint32, q: th::Quad) {\n" |
| 4485 | +"[0m\n" |
| 4486 | +"Draws a convex quad.\n" |
| 4487 | +"\n" |
| 4488 | +"---------\n" |
| 4489 | +"\n" |
| 4490 | +"[1mfn drawTrig[0m\n" |
| 4491 | +"\n" |
| 4492 | +"[3mfn drawTrig*(color: uint32, a, b, c: th::Vf2) {\n" |
| 4493 | +"[0m\n" |
| 4494 | +"Draws a triangle.\n" |
| 4495 | +"\n" |
| 4496 | +"---------\n" |
| 4497 | +"\n" |
| 4498 | +"[1mfn beginScissorRect[0m\n" |
| 4499 | +"\n" |
| 4500 | +"[3mfn beginScissorRect*(r: rect::Rect, debug: bool = false) {\n" |
| 4501 | +"[0m\n" |
| 4502 | +"Disable rendering outside of rect `r`\n" |
| 4503 | +"\n" |
| 4504 | +"---------\n" |
| 4505 | +"\n" |
| 4506 | +"[1mfn endScissor[0m\n" |
| 4507 | +"\n" |
| 4508 | +"[3mfn endScissor*() {\n" |
| 4509 | +"[0m\n" |
| 4510 | +"Stops cropping\n" |
| 4511 | +"\n" |
| 4512 | +"---------\n" |
| 4513 | +"\n" |
4425 | 4514 | "",
|
4426 | 4515 | "[1m[0m\n"
|
4427 | 4516 | "\n"
|
@@ -6137,7 +6226,7 @@ const char *th_em_moduledocs[] = {
|
6137 | 6226 | "\n"
|
6138 | 6227 | "[3mfn convPath*(path: str): str {\n"
|
6139 | 6228 | "[0m\n"
|
6140 |
| -"Expands the path to a platform specific path.\n" |
| 6229 | +"Evaluate path prefixes and return as a platform native path.\n" |
6141 | 6230 | "\n"
|
6142 | 6231 | "---------\n"
|
6143 | 6232 | "\n"
|
|
0 commit comments