yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields ( #21995 )
2024-08-05 20:23:39 +03:00
Delyan Angelov
f676daceb5
vlib: fix C warnings/errors for v -show-c-output -cstrict -cc clang-18 run examples/gg/additive.v
2024-07-30 17:15:15 +03:00
Delyan Angelov
8fec4cec9a
gg: add more documentation comments for gg.Config (the parameters of gg.start and gg.new_context)
2024-07-29 09:51:08 +03:00
Delyan Angelov
0bf8adb5e6
gg: reset ctx.mouse_d? and ctx.scroll_? at the end of each frame ( fix #21945 ) ( #21946 )
2024-07-28 01:25:58 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module ( #21183 )
2024-04-12 13:53:02 +03:00
Turiiya
9704a01406
parser: fix case of falsely registering imports as used, remove unused imports ( #21156 )
2024-04-01 19:46:50 +03:00
Alexander Medvednikov
85533fe178
sokol, gg: min window width and height
2024-03-28 18:23:33 +03:00
Turiiya
f77bb32044
all: fix typos ( #21089 )
2024-03-25 12:18:27 +02:00
Larpon
790ea2f1bd
sokol, gg, examples: update to match uptream at 058a4c5 ( #20953 )
2024-03-05 17:04:05 +02:00
Jan Kåre Vatne
cf7dcfe287
gg: handle dpi change, when moving window to another monitor ( #20886 )
2024-02-24 05:08:43 +02:00
Anton
763f94388b
all: update copyright year ( #20334 )
2024-01-01 23:29:54 +02:00
Delyan Angelov
c4180d4b06
examples: shrink examples/gg/minimal.v even more
2023-12-29 16:46:18 +02:00
Alexander Medvednikov
399af6768d
gg: fn (data voidptr, e &Event) for events, allows methods
2023-11-25 01:19:39 +03:00
shove
2a6c1d9074
all: assigning 0
to reference fields now requires unsafe blocks ( fix #14911 ) ( #19955 )
2023-11-23 11:16:26 +02:00
Alexander Medvednikov
01e6f6473b
gg: set_window_title; macos img fix; gx: color fixes; strings: Builder.writeln_string
2023-11-22 03:10:34 +03:00
Joe C
757929392e
all: update attributes to use new syntax
2023-11-15 16:16:01 +11:00
Alexander Medvednikov
545ee1ae23
checker: stricter rules for C types; C aliases; sokol fixes
2023-10-14 18:31:44 +03:00
Alexander Medvednikov
0bf85d049e
sokol: upgrade to latest version, fix all related issues
2023-10-05 20:22:49 +03:00
Delyan Angelov
137cb09426
gg: cleanup in init_pipeline
2023-09-29 13:06:15 +03:00
Delyan Angelov
7ffa8c13bf
vlib: remove functions and fields, deprecated before 2023-03-20
...
* remove []int.reduce in favour of arrays.fold
* remove datatypes.Set.equal in favour of datatypes.Set.==
* remove datatypes.Set.difference in favour of datatypes.Set.-
* remove gg.Context.set_cfg in favour of gg.Context.set_text_cfg
* remove gg.Context.timage_pip in favour of gg.Context.pipeline.alpha
* remove os.is_writable_folder in favour of os.ensure_folder_is_writable
Discovered with `v run cmd/tools/show_ancient_deprecations.v 180`
2023-09-16 17:16:54 +03:00
Delyan Angelov
ca0f589310
examples/tetris: add instructions, on how to compile the game through Emscripten and v -os wasm32_emscripten
2023-08-13 17:28:27 +03:00
Delyan Angelov
715c0b6185
gg: expand the -d show_fps
background, so fps>100 will not overflow it
2023-08-11 10:33:05 +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
Alexander Medvednikov
6756d28595
all: 2023 copyright
2023-03-28 22:55:57 +02:00
R cqls
cd00beb099
gg: add toggle_fullscreen and is_fullscreen ( #17371 )
2023-02-20 21:58:04 +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
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
Alexander Medvednikov
37583b04b4
gg: make create_image's receiver immutable
2022-11-14 17:25:42 +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
Swastik Baranwal
b584e1df98
checker: allow EnumName(number)
casts only inside unsafe{}
blocks ( #15932 )
2022-10-02 22:39:11 +03:00
Tim Marston
711bb6def7
gg: rename Context.set_cfg() -> Context.set_text_cfg() ( #15904 )
2022-09-29 15:24:16 +03:00
Delyan Angelov
7e69619add
builtin, compiler: replace isnil(x) calls with x == unsafe { nil }
(a little faster without -prod) ( #15759 )
2022-09-15 14:59:37 +03:00
shove
8b962f8446
checker: fix nested struct reference type field initialized check. ( fix : #15741 ) ( #15752 )
2022-09-15 07:59:31 +03:00
Alexander Medvednikov
caa0c2f153
vfmt: voidptr(0) => unsafe { nil } (p.1)
2022-07-21 20:46:01 +03:00
Delyan Angelov
139c34c07d
gg: optimise app.gg.show_fps() (cache ctx.text_size() results, round frame to int without interpolation, center text inside the background rectangle)
2022-06-12 16:07:00 +03:00
Delyan Angelov
4682e17ac1
gg: fix v -d show_fps run examples/gg/stars.v
2022-06-12 15:17:04 +03:00
Delyan Angelov
7e06203da8
gg: support -d show_fps
for all gg apps
2022-06-12 14:20:32 +03:00
Larpon
f58e5a94c2
gg: fire resize event before init if necessary on Android ( #14725 )
2022-06-08 21:43:20 +03:00
Alexander Medvednikov
fbb9e65c0f
all: ~500 more byte=>u8
2022-04-15 18:25:45 +03:00
Alexander Medvednikov
fb192d949b
all: replace []byte with []u8
2022-04-15 15:35:35 +03:00
Alexander Medvednikov
d4a0d6f73c
all: byte => u8
2022-04-15 14:58:56 +03:00
Larpon
1482db6d1a
gg: add missing doc strings to android, recorder and gg.c.v ( #13936 )
2022-04-05 18:42:01 +03:00
Alexander Medvednikov
36ec47cd20
all: replace "NB:" with "Note:" (docs/comments)
2022-03-06 20:01:22 +03:00
kahsa
809772db4e
gg: improve Context scale for Android ( #13545 )
2022-02-21 12:12:21 +02:00
kahsa
867056dafb
gg: rename some variables (for consistency) ( #13280 )
2022-01-26 12:26:12 +02:00
kahsa
387b2db658
gg: cleanup reordering for readablity ( #13258 )
2022-01-24 14:12:34 +02:00
Benjamin Stigsen
4e0e2ef753
gg: additions, changes and fixes ( #13255 )
2022-01-23 18:18:17 +02:00
Charles WANG
79cb0db2ff
gg: add a working implementation for screen_size() on windows ( #13237 )
2022-01-21 14:43:12 +02:00
Larpon
7fbd856bf8
os: add font module, move from gg ( #13144 )
2022-01-13 12:16:18 +02:00