Commit Graph

203 Commits (fb3671107e54d791a97119320d004b454498b1d4)

Author SHA1 Message Date
Delyan Angelov 576664e31f
gg,sokol,stbi,gx,fontstash: cleanup for -Wimpure-v 2021-08-12 22:42:42 +03:00
FireRedz a8905e2788
gg: add a `color` field to gg.DrawImageConfig (#11158) 2021-08-12 11:11:38 +03:00
Delyan Angelov 79c7aed3c2
gg: allow easily detecting the edges of key_down keyboard events 2021-07-26 18:39:59 +03:00
Delyan Angelov 0d12d55295
gg: allow customisation of the image format in gg.new_streaming_image 2021-07-26 11:05:16 +03:00
Daniel Däschle ad3835b598
parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
shadowninja55 7c0be629ab
checker: prohibit fixed array to fixed array assignment where elem_typ is a pointer (#10775) 2021-07-15 08:38:03 +03:00
Alexander Medvednikov c44a47acb1 gg: fix draw_line on macos (native rendering) 2021-07-03 02:49:20 +03:00
Delyan Angelov b2391424d9
examples: add examples/gg/random.v demonstrating how to stream images/pixels 2021-06-24 17:45:14 +03:00
Delyan Angelov cc91d9bee3
gg: keep/update commonly used event state inside the gg.Context 2021-06-24 11:14:57 +03:00
kahsa f1c4753cc0
gg: fix draw_line (#10534) 2021-06-21 20:30:03 +03:00
KJ Lawrence 79879128b6
gg: add `rotate` to `DrawImageConfig` (#10521) 2021-06-20 08:01:41 +03:00
KJ Lawrence 123682dffb
gg: add a `draw_line_with_config` method (#10513) 2021-06-19 21:32:08 +03:00
KJ Lawrence 22214c73e3
gg: apply ctx.scale to circle pos (#10512) 2021-06-19 09:07:34 +03:00
KJ Lawrence b0caadae31
gg: add new draw_image_with_config method (#10428) 2021-06-15 18:30:35 +03:00
Delyan Angelov 98613036c1 gg: fix draw_line on m1 2021-06-07 21:31:24 +03:00
KJ Lawrence 751b1cffd3
gg: fix default font style loading (#10309) 2021-06-04 20:00:32 +03:00
KJ Lawrence 452a51c8fe
gg: render text if we fell back to system default (#10307) 2021-06-02 16:00:14 +03:00
KJ Lawrence 465860e418
gg: fix ctx.scale for circles (#10210) 2021-05-28 22:37:02 +03:00
KJ Lawrence 9fab4af3f1
gg: update the mouse click callback to pass what mouse button was clicked too (#10225) 2021-05-28 12:46:23 +03:00
Wertzui123 a095a27d00
gg: change vid to ved in a comment (#10218) 2021-05-27 20:14:36 +03:00
KJ Lawrence 6cdc7646b8
gg: add quit fn (#10223) 2021-05-27 17:56:18 +03:00
Enzo 906b207e58
checker: deprecate using V strings in C function calls (#10140) 2021-05-20 09:17:44 +03:00
Uwe Krüger d26ac5692e
all: various fixes for [heap]/auto-heap handling (#10033) 2021-05-07 15:58:48 +03:00
R cqls 8af6237e28
gg: fix width and height in draw_rounded_rect primitive (#9926) 2021-04-29 10:58:57 +03:00
Don Park aebb551e93
cgen: do full struct initialisation for V structs, fixes invalid data from `map[string]Struct{}['unknown']` (#9878) 2021-04-27 08:18:48 +03:00
kahsa f36e46bfde
gg:fix draw_line for android (#9882) 2021-04-26 10:01:55 +03:00
Delyan Angelov d4f31412b7
v: deprecate `@VROOT` in favour of `@VMODROOT` (#9795) 2021-04-19 19:01:47 +03:00
spaceface 73352583e7
ci: fix all `-cstrict` warnings with gcc and clang (#9792) 2021-04-19 15:38:48 +03:00
Alexander Medvednikov 711e309eef gg: bring back native rendering on macos 2021-04-14 03:59:34 +03:00
Larpon 8caabf0e9e
sokol: update to floooh/sokol@c602d83 (#9607) 2021-04-07 20:39:23 +02:00
Delyan Angelov c0e2b9b1e2
ci: fix some of `v test-cleancode` 2 2021-04-05 20:55:03 +03:00
Alexander Medvednikov 1716e8dd04 gg: byteptr fixes 2021-04-04 18:05:01 +03:00
Andréas Livet c4e389be41
gg: make Rect struct fields public (#9518) 2021-03-30 09:39:07 +02:00
Alexander Medvednikov cbf4715804 gg: ui mode fixes 2021-03-27 13:03:19 +03:00
Delyan Angelov 9b78d7d21d
tools: check formatting of more modules with `v test-cleancode`, colorize `v vet` output 2021-03-24 12:39:39 +02:00
Nick Treleaven 446631ceb5
checker: fixed array cannot implicitly convert to fooptr (again) (#9302) 2021-03-15 15:55:07 +02:00
Andréas Livet 603012be94
gg: add draw_image_part (#9277) 2021-03-13 08:39:10 +02:00
Lukas Neubert a67d49050c
math: add a pure V `math.mathutil`, with generic `min`, `max` and `abs` functions (#9176), and use it consistently 2021-03-12 11:28:04 +02:00
penguindark c554e0b33d
gg.m4: fix a bug on translate, remove abs fn (#9224) 2021-03-10 20:20:17 +02:00
Larpon 0a39c2b9ea
gg: expand C.ANativeActivity struct definition (#9231) 2021-03-10 18:38:20 +02:00
Delyan Angelov d7049ae2da
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974) 2021-03-08 20:52:13 +02:00
penguindark 270df58057
gg.m4: fixed some bugs, added ortho projection (#9140) 2021-03-06 12:14:43 +02:00
Alexander Medvednikov 845e8decce x64: basic mach-o and arm64 support 2021-03-05 17:52:39 +03:00
Nick Treleaven bd6693efb8
gg/m4: fix unnecessary uses of [direct_array_access], add [unsafe] (#9059) 2021-03-03 10:20:13 +02:00
spaceface b712af56fd
all: bring back `panic(err.msg)` -> `panic(err)` (#9022) 2021-03-01 00:18:14 +01:00
spaceface d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
penguindark 1d69a0bd22
gg: window_size_real_pixels that for 3D without dpi scaling (#9004) 2021-02-27 22:11:26 +01:00
Delyan Angelov a9e9079e48
gg: make .set_cfg public 2021-02-27 09:15:39 +02:00
Ruofan XU 1a8e502e2c
ci: add tcc32 CI on windows (#8922) 2021-02-25 12:52:12 +01:00
spaceface b4dc6c83cd
gg: handle Android's own native dpi scaling factor (#8908) 2021-02-22 21:24:18 +02:00