Commit graph

102 commits

Author SHA1 Message Date
Alexander Medvednikov
78f34e6c89 checker: vfmt fn.v 2025-01-14 01:25:20 +03:00
Delyan Angelov
f06ff69bb9
examples: mention also the RAM usage increase in many_thousands_of_circles_overriding_max_vertices.v 2025-01-06 15:01:27 +02:00
Delyan Angelov
7aa2fcb55e
gg,sokol,examples: add example of overriding _SGL_DEFAULT_MAX_VERTICES in code 2025-01-06 14:54:56 +02:00
Delyan Angelov
4cd3009bd1
examples: add examples/gg/easing_animation.v (follow up to e6c1637) (#23253) 2024-12-24 22:57:06 +02:00
Delyan Angelov
f98e9d5757
examples: remove the setting of font_path from drag_n_drop.v and quadtree_demo.v (make them portable to Android + setting the font does not matter, for their goal) 2024-09-22 20:58:17 +03:00
Delyan Angelov
cfa91d81d7
examples,os: add an os.asset module, use it to simplify code in examples/, by removing $if android { checks (#22281) 2024-09-22 16:04:05 +03:00
larpon
59d5115483
examples: make gg/stars.v run on android (#22276) 2024-09-22 08:02:14 +03:00
larpon
d139e56ca7
examples: make gg/rectangles.v Android friendly (#22275) 2024-09-22 08:00:41 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
Felipe Pena
4eb087a347
checker: add missing check for ref passing to non-ref (#22194) 2024-09-14 23:13:25 +03:00
Delyan Angelov
27ef543983
examples: add examples/gg/draw_unicode_text_with_gg.v, for easy comparison of how different fonts and unicode texts will look, when rendered by gg 2024-08-24 09:06:53 +03:00
yuyi
c69dfefedb
fmt: cleanup fields comments alignment and add ignore_newline config (#22027) 2024-08-12 10:56:32 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
larpon
10b031b2cc
examples: make rotating_textured_quad.v compile and run on Android (#21987) 2024-08-03 17:37:26 +03:00
Delyan Angelov
2366582528
gg: deprecate gg.DrawImageConfig.rotate, in favor of gg.DrawImageConfig.rotation, improve the documentation comments (#21963) 2024-07-30 17:45:57 +03:00
Delyan Angelov
083faa3568
gg: make gg.DrawImageConfig fields mutable, cleanup additive.v, extracting the common parameters, and using {...myconfig, ...} for the differences 2024-07-30 16:16:03 +03:00
Mike Ward
9179038e86
examples: add a gg raycaster demo (#21904) 2024-07-21 23:27:24 +03:00
Mike Ward
d7550c5c02
examples: over print in digital_rain.v, to simulate the custom font used in the movie effect (#21846) 2024-07-12 01:41:15 +03:00
Delyan Angelov
2cde320eee
examples: add keyboard shortcuts label to digital_rain.v 2024-07-11 15:58:59 +03:00
Mike Ward
304aa9f687
examples: add a gg example - digital_rain.v (#21841) 2024-07-11 08:53:27 +03:00
Delyan Angelov
56d2ba6281
examples: add a glow effect to spirograph.v 2024-07-05 14:07:16 +03:00
Delyan Angelov
07c1c51036
examples: add slow rotation to spirograph.v, use a brighter color for the instructions 2024-07-05 11:52:41 +03:00
Delyan Angelov
811ac125fa
examples: add an animated spirograph.v using gg 2024-07-05 11:29:47 +03:00
shadow
c9c41af172
examples: add gg/fire.v (#21784) 2024-07-02 11:04:00 +03:00
Delyan Angelov
4c42fe3420
gg: add Context.draw_cubic_bezier_recursive/2 and Context.draw_cubic_bezier_recursive_scalar/9 (#21749) 2024-06-28 08:30:45 +03:00
Turiiya
00860ebc6b
examples: fix warnings about 0 assignments to reference fields (#21133) 2024-03-29 10:35:37 +02:00
cui fliter
78602846e5
all: fix typos in comments (#20963) 2024-03-04 18:41:55 +02:00
Delyan Angelov
c4180d4b06
examples: shrink examples/gg/minimal.v even more 2023-12-29 16:46:18 +02:00
Delyan Angelov
0b4a93c1c1
examples: add an even smaller gg usage example, demonstrating how to always show the builtin fps counter, and how to avoid importing gx 2023-12-29 16:31:01 +02:00
Yuyi_Hao
680b0d463a
example: add a path finding algorithm visualizer using gg (#20060) 2023-12-28 23:19:28 +02:00
Larpon
6d0d82dbb9
gg: fix overlapping slices in draw_slice_filled() (#20182) 2023-12-15 19:31:33 +02:00
Larpon
64e8139d46
examples, x: fix notice about assigning 0 to a reference field (#20115) 2023-12-07 22:34:53 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Larpon
3c68e78f32
sokol: fix usage of sokol sampler (#19527) 2023-10-07 21:05:30 +03:00
Delyan Angelov
6fc3a3d088
examples: add examples/gg/sample_count.v, showing the influence of the sample_count gg.Config parameter 2023-09-29 12:06:06 +03:00
Mustafa Ateş Uzun
8b0a1e2c71
gg, sokol.sapp: fix typo (.files_droped -> .files_dropped), add deprecation tags for the old value (#19190) 2023-08-21 22:32:24 +03:00
Delyan Angelov
e7af25ec14
examples: add examples/gg/many_thousands_of_circles.v, thanks to @xjunko, document how to use ctx.end(how:.passthru). (#18832) 2023-07-10 15:33:14 +03:00
Swastik Baranwal
d8cf65df1a
checker: only allow &u8 with byteptr and itself (#18146) 2023-05-11 18:28:49 +10:00
Alexander Medvednikov
d60ceb45cd gg: make create_image() return !Image 2023-03-29 19:04:41 +02:00
Tim Marston
26b9464f51
gg: setup ctx.window.user_data and ctx.user_data on ctx.run(), instead of in gg.new_context, to allow for embedding gg.Context in ui (#17169) 2023-01-31 18:22:20 +02:00
Delyan Angelov
68501677e3
ci: fix gg-regressions failure 2022-12-21 21:03:47 +02:00
Alexander Medvednikov
88e33a83de gg: fix draw_image on macos native; vcreate: vweb template 2022-12-21 19:33:37 +03:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
Junko
5bb058e35b
gg: revamp the Context pipeline for more effects, implement an additive effect (#16394) 2022-11-12 09:39:18 +02:00
Alexander Medvednikov
e81e0ac708 fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
Makhnev Petr
2e8b9e3b92
v fmt: fix extra space for anon struct (#16131) 2022-10-21 10:38:19 +03:00
Delyan Angelov
fa20d797a5 Revert "examples: increase the window size of drag_n_drop.v a little (test CI)"
This reverts commit 8fc166d5a3.
2022-10-10 10:39:58 +03:00