1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

293 Commits

Author SHA1 Message Date
546c388b02 gg: renaming drawing functions (#12913) 2021-12-23 13:31:25 +02:00
2b9f993574 gg: add text rendering, keyboard event handling for JS and other fixes (#12932) 2021-12-22 12:26:52 +02:00
ade14491d4 gg: add event handling for mouse down/up and mouse leave/out on VJS (#12917) 2021-12-21 12:31:29 +02:00
5f0160bf11 js,gg: more work on porting gg to JS backend (#12903) 2021-12-20 16:18:21 +03:00
3a504480d9 gg: add draw_arc_empty (#12887) 2021-12-18 12:39:14 +02:00
75830f1fe3 gg: add draw_ellipse_filled() + draw_ellipse_empty() APIs (#12869) 2021-12-17 21:19:18 +02:00
b482da74e9 gg: move code using C types to c.v files, add js.v files (#12873) 2021-12-17 15:22:09 +02:00
d90ef1f29f gg: draw_arc fixes (#12827) 2021-12-15 21:17:07 +03:00
76f6f99bce gg: add draw_ring() (#12817) 2021-12-13 21:03:42 +02:00
ab6e93394f gg: add draw_empty_triangle() (#12804) 2021-12-12 19:41:27 +02:00
0021fbbaa9 gg: support VGG_STOP_AT_FRAME=120 VGG_SCREENSHOT_FOLDER=. VGG_SCREENSHOT_FRAMES=10,20,30 ./v -d gg_record run examples/gg/bezier_anim.v (#12767) 2021-12-08 22:38:33 +02:00
047f059fb8 examples: use fontstash wrapper calls (#12718) 2021-12-06 23:39:43 +03:00
6d97b0a407 checker: improve checking of a << b, when a and b are numbers (#12589) 2021-11-29 03:48:49 +03:00
480f3876ee gg: fix system_font_path (#12533) 2021-11-21 19:12:15 +02:00
3f37ab2ef2 gg: fix system_font_path on Linux (#12477) 2021-11-16 12:14:35 +03:00
9cb378bb6b examples: reduce the memory usage of the clock example, without -autofree & -gc boehm 2021-11-11 17:39:02 +02:00
852d85b3a9 gg: cleanup the minimal gg program more 2021-11-07 09:16:49 +02:00
32b74dd348 gg: simplify the minimal gg application even more with context.user_data = context 2021-11-06 18:24:19 +02:00
8be64ef80e gg: improve font loading diagnostics with -d debug_font 2021-11-06 17:15:17 +02:00
c4e282a0c8 parser: check fn args in declarations too with -Wimpure-v
`v -Wimpure-v examples/2048/` now passes cleanly.
2021-11-03 16:20:24 +02:00
77a1e3dedb gg: improve system_font_path on linux (#12290) 2021-10-25 15:16:29 +03:00
45534b512b time: move pure V function from time.c.v 2021-10-19 16:03:45 +03:00
1313dcf601 gg: fix leak in draw_image_with_config 2021-10-17 19:46:34 +03:00
09cc0c7247 gg: use sgl.begin_points for pixels + improve pixels example (#12085) 2021-10-07 10:46:57 +03:00
53aa4eba0d sokol: add sg_isvalid wrapper to gfx (#12081) 2021-10-07 10:41:57 +03:00
f454d30318 gg: use sgl.begin_triangles when drawing triangles (#12083) 2021-10-07 03:45:23 +03:00
42c088896a gg: mute font print on Linux, use flag debug_font instead (#12082) 2021-10-07 03:45:02 +03:00
970768288d gg: expose sapp_desc.swap_interval via gg.Config (#11975) 2021-09-25 15:06:56 +03:00
108a01d65f fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
e3b65092d6 parser: deprecate size_t (#11443) 2021-09-08 13:09:32 +03:00
63ff5690ff sokol.sapp,gg: add support for drag & drop events (#11359) 2021-09-01 09:21:27 +03:00
e85311c2ba gg: change draw_cubic_bezier* call signatures for speed and to match *_poly (#11323) 2021-08-27 16:52:05 +03:00
714fa3215c scanner: make the 1. float error a warning for now 2021-08-25 16:58:54 +03:00
4d078edb72 scanner: no longer allow 1. float literals (#11301) 2021-08-25 14:39:37 +03:00
833bf2cf15 gg: add cubic Bézier curves + examples (#11286) 2021-08-24 06:35:27 +03:00
76205cff2b gg: add scaling to draw_convex_poly (#11276) 2021-08-23 13:38:29 +03:00
352df873d5 gg: add scaling to draw_empty_poly() (#11272) 2021-08-23 00:37:20 +03:00
70a658a265 gg: set_pixels() (#11236) 2021-08-20 01:14:25 +03:00
fadfc3b457 gg: format a line 2021-08-16 06:36:23 +03:00
022503a107 gg: fix top left corner pixel not being drawn (#11202) 2021-08-16 04:59:05 +03:00
576664e31f gg,sokol,stbi,gx,fontstash: cleanup for -Wimpure-v 2021-08-12 22:42:42 +03:00
a8905e2788 gg: add a color field to gg.DrawImageConfig (#11158) 2021-08-12 11:11:38 +03:00
79c7aed3c2 gg: allow easily detecting the edges of key_down keyboard events 2021-07-26 18:39:59 +03:00
0d12d55295 gg: allow customisation of the image format in gg.new_streaming_image 2021-07-26 11:05:16 +03:00
ad3835b598 parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
7c0be629ab checker: prohibit fixed array to fixed array assignment where elem_typ is a pointer (#10775) 2021-07-15 08:38:03 +03:00
c44a47acb1 gg: fix draw_line on macos (native rendering) 2021-07-03 02:49:20 +03:00
b2391424d9 examples: add examples/gg/random.v demonstrating how to stream images/pixels 2021-06-24 17:45:14 +03:00
cc91d9bee3 gg: keep/update commonly used event state inside the gg.Context 2021-06-24 11:14:57 +03:00
f1c4753cc0 gg: fix draw_line (#10534) 2021-06-21 20:30:03 +03:00