This commit is contained in:
Ryan Oldenburg 2021-08-24 17:31:35 -05:00
parent e95846f449
commit f6dd0e1f77
3 changed files with 20 additions and 6 deletions

View file

@ -34,12 +34,26 @@ proc drawImage3*(
) {.raises: [PixieError].} = ) {.raises: [PixieError].} =
ctx.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight) ctx.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight)
exportEnums [ exportEnums:
FileFormat, BlendMode, PaintKind, WindingRule, LineCap, LineJoin, export
HorizontalAlignment, VerticalAlignment, TextCase FileFormat,
] BlendMode,
PaintKind,
WindingRule,
LineCap,
LineJoin,
HorizontalAlignment,
VerticalAlignment,
TextCase
exportObjects [Vector2, Matrix3, Rect, Color, ColorStop, TextMetrics] exportObjects:
export
Vector2,
Matrix3,
Rect,
Color,
ColorStop,
TextMetrics
exportProcs: exportProcs:
export export

View file

@ -16,5 +16,5 @@ requires "bumpy >= 1.0.3"
task docs, "Generate API documents": task docs, "Generate API documents":
exec "nim doc --index:on --project --out:docs --hints:off src/pixie.nim" exec "nim doc --index:on --project --out:docs --hints:off src/pixie.nim"
task dll, "Generate DLL and bindings": task bindings, "Generate bindings":
exec "nim c -f -d:release --app:lib --gc:arc --tlsEmulation:off --out:pixie --outdir:bindings/generated bindings/bindings.nim" exec "nim c -f -d:release --app:lib --gc:arc --tlsEmulation:off --out:pixie --outdir:bindings/generated bindings/bindings.nim"