Commit graph

1128 commits

Author SHA1 Message Date
Delyan Angelov
b5f170258d examples: add examples/assets/v.svg and examples/assets/v_16x16.svg 2024-10-31 11:56:17 +02:00
Hitalo Souza
7a0febb12d
examples: fix some of the instructions in examples/thread_safety/ (#22571) 2024-10-22 11:36:38 +03:00
Hitalo Souza
5ec9bb54b8
examples: add a thread_safety/ folder with several examples of using different thread synchronisation mechanisms (#22561) 2024-10-18 13:14:11 +03:00
yuyi
1fb9fec7fa
examples: change var name '@type' to 'type' in net_resolve.v (#22526) 2024-10-15 13:00:09 +03:00
alexey semenyuk
bb99f8b57c
examples: fix veb example's file_transform port typo (#22511) 2024-10-13 13:23:08 +03:00
yuyi
da3112e545
all: replace fn name '@xxx' with 'xxx' (#22506) 2024-10-12 22:17:02 +03:00
yuyi
79786732ef
all: replace struct field name '@type' with 'type' (#22485) 2024-10-11 08:53:18 +03:00
yuyi
51b471b060
all: replace enum field name 'xxx_' with 'xxx' (#22469) 2024-10-10 09:17:19 +03:00
Delyan Angelov
e5d46d2f81
examples: add a consistent background to flappylearning, shown when the height of the view is very high (on Android) 2024-09-23 13:30:22 +03: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
larpon
1e1bc1046a
examples: add gc_is_enabled() check to 2048 to prevent crash in Android emulator (#22274) 2024-09-22 07:41:26 +03:00
Alexander Medvednikov
c11b1f8bd1 examples: fix type in veb_example.v 2024-09-17 23:00:11 +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
Alexander Medvednikov
c004d0c899 examples: migrate vweb examples to veb 2024-09-17 09:15:07 +03:00
Felipe Pena
4eb087a347
checker: add missing check for ref passing to non-ref (#22194) 2024-09-14 23:13:25 +03:00
Alexander Medvednikov
26ab7d4fe1 veb: implicit context 2024-09-14 00:41:02 +03:00
yuyi
cc7665ff32
tests: add a test for short enum syntax across modules (related #12183) (#22210) 2024-09-13 17:07:01 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
Delyan Angelov
01fd719116
examples: add examples/veb/websocket, to show how to use http connection upgrade to a websocket, from a veb route (#22128) 2024-08-29 16:34:06 +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
Delyan Angelov
423a94aa58
examples: prevent cliping of long font names in draw_static_text.v 2024-08-22 12:49:27 +03:00
Delyan Angelov
3f8e92bc6d
examples: make draw_static_text.v show the font name too, for easier comparisons 2024-08-22 12:38:42 +03:00
Delyan Angelov
e6b8162bfa
examples: add examples/ttf_font/draw_static_text.v, to make it easier to test x.ttf with different fonts, and texts 2024-08-22 11:59:49 +03:00
Alexander Medvednikov
ae1b9ed571 veb: deprecate x.vweb in favor of veb; checker: show missing variants in the sumtype error 2024-08-18 17:27:08 +03:00
yuyi
c69dfefedb
fmt: cleanup fields comments alignment and add ignore_newline config (#22027) 2024-08-12 10:56:32 +03:00
Martin Skou
d7bdb72b48
net.mbedtls: support Server Name Indication (SNI) (#22012) 2024-08-11 20:26:13 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
Delyan Angelov
4f718d25fb
examples: change // to blank line in 2048.v too, after 793b66d 2024-08-09 14:57:56 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types (#21999) 2024-08-07 15:46:50 +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
0b3853683b
examples: add a simplified bytebeat player to show how to use sokol.audio, and that does not depend on gg 2024-08-01 11:08:57 +03:00
Delyan Angelov
aa07eafb5f
examples: cleanup melody.v even more 2024-08-01 09:49:57 +03:00
Delyan Angelov
ab8f1ba21b
examples: cleanup & fix the sound produced by melody.v, to be like the original https://www.youtube.com/watch?v=V4GfkFbDojc 2024-08-01 09:37:17 +03:00
Delyan Angelov
da5dc8bb22
examples: cleanup obsolete unsafe{} usages in examples/sokol/sounds 2024-08-01 09:10:02 +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
yuyi
c9c38d5c11
parser: check for using comptime $veb.html()/$vweb.html(), without importing veb or vweb (#21957) 2024-07-29 16:55:29 +03:00
Mike Ward
9179038e86
examples: add a gg raycaster demo (#21904) 2024-07-21 23:27:24 +03:00
larpon
3bc6d30b69
flag, examples: add compact to flag.DocOptions (#21888) 2024-07-18 09:19:58 +03:00
Delyan Angelov
be7b24d87b
examples: fix examples/web_crawler/web_crawler.v to fetch from https://news.ycombinator.com/ instead of tuicool.com (which is offline) (fix #21854) 2024-07-17 17:58:15 +03:00
Felipe Pena
769e9147c3
v: change old attr syntax mention to new one in comments too (#21860) 2024-07-14 09:39:37 +03:00
larpon
6f61e30062
flag: add flag.to_struct[T]()! and flag.to_doc[T]()! + tests (#21845) 2024-07-13 12:33:03 +03:00
penguindark
790895782d
examples.sokol: add sampler to the 02_cube code (fix #21547) (#21853) 2024-07-12 17:27:48 +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