Commit graph

395 commits

Author SHA1 Message Date
Eliyaan (Nopana)
bbb61ab368
gg, gx: deprecate gx and replace all occurences with gg (which now contains all the functionality of gx) (#24966)
Some checks failed
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
Workflow Lint / lint-yml-workflows (push) Has been cancelled
2025-08-14 19:53:56 +03:00
tzSharing
a2f65c6977
gg: improve drawing effect and logic of draw_rounded_rect_empty (#25062)
Some checks failed
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
Workflow Lint / lint-yml-workflows (push) Has been cancelled
2025-08-08 09:01:06 +03:00
Felipe Pena
ae1fa8aced
markused: skip unused symbols, dump fns and generic specialization (fix #24921) (fix #24927) (#24924) 2025-07-23 08:50:31 +03:00
Delyan Angelov
c03d7d1cb2
gg: allow for -d gg_memory_trace_frame to be used in combination with -prealloc -d prealloc_dump 2025-06-26 12:20:16 +03:00
Delyan Angelov
9387fe73e3
gg: fix .char event handling for backspace, delete, tab and enter for linux/x11 (send appropriate .char codes to the apps, similar to macos) 2025-06-18 21:41:26 +03:00
Delyan Angelov
a1d94500e6
all: remove deprecations made before 2024-11-06 2025-05-05 09:31:32 +03:00
Alexander Medvednikov
7d57a19d7e checker: do not allow &u8(0), force nil like we do with &Type(0) 2025-05-03 22:37:51 +03:00
Alexander Medvednikov
1e6fdbf815 gg: fix screen_size() on macos with multiple displays 2025-04-07 04:18:18 +03:00
Delyan Angelov
0ad74ded92
gg: make draw_rect_empty/5 draw more exact borders, independent of the device, and fitting the draw_rect_filled/5 shapes (#24024) 2025-03-23 21:38:15 +02:00
Delyan Angelov
a80bc23314
tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test, v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918) 2025-03-13 19:51:51 +02:00
Delyan Angelov
17695801ea
gg: add is_key_down/1 helper method 2025-03-13 11:40:39 +02:00
Delyan Angelov
2860152e82
gg,examples: use a timer to limit the rate of updates in breakout, instead of a separate thread, restore ability to run in a browser through emscripten 2025-03-09 08:45:21 +02:00
Delyan Angelov
0ffc33a5c9
examples, gg, gg.m4: fix VFLAGS='-no-skip-unused -cstrict -cc clang-18' v should-compile-all examples/sokol/ too 2025-03-06 19:58:25 +02:00
Adam Oates
6e3f6acffc
gg: fix incorrect Event.mouse_x and Event.mouse_y on gg.Context.event_fn and gg.Context.on_event on HiDPI displays (#23668) 2025-02-08 12:20:46 +02:00
Delyan Angelov
10f2fe196a
examples,gg: modify all remaining calls to fons.add_font_mem/3 to use an array.clone() 2025-02-07 14:39:36 +02:00
Delyan Angelov
16a6e45274
gg: fix ./v -gc none -autofree run examples/tetris/ (avoid return s1 + s2 + s3, clone the arrays, passed to the fontstash wrapper) 2025-02-07 14:29:43 +02:00
Mike Ward
1d9aa88ca5
gg: mark create_image_with_size as deprecated (image resizing is done by stbi.resize_uint8/3, with a different fn signature) (#23580) 2025-01-26 08:04:17 +02:00
Delyan Angelov
3acbd580d4
gg: enable clean compilation without notices for ./v -check-unused-fn-args examples/tetris/ 2025-01-09 08:33:11 +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
Adam Oates
c50d4ee13b
gg: add linux support for fn screen_size() Size (fix #23146) (#23326) 2025-01-02 19:10:09 +02:00
Alexander Medvednikov
17f56000aa all: parallel-cc fixes 2024-12-12 15:04:26 +03:00
YukiiVR
c4d8687f74
gg: add icon field to gg.Config, for easier access (fix #23135) (#23138) 2024-12-12 03:54:35 +02:00
Hedgegod
cbfe1b8862
gg: use a larger fontstash text atlas by default (2048x2048, and customizable), instead of 512x512 (fix #21610) (#22959) 2024-11-24 14:35:34 +02:00
Delyan Angelov
5bba92a65a
vlib: remove modules/functions/fields, deprecated in 2023 (#22750) 2024-11-17 20:09:21 +02: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
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
89e5279349
gg: change the type of PenConfig.thickness to f32 2024-09-08 12:05:04 +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
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
Delyan Angelov
d43f0e457c
gg: add an optional size: parameter to the .draw_pixels and .draw_pixel methods (defaults to 1.0) 2024-07-31 21:54:53 +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
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
4e6f6164ed
gg: change the type of gg.DrawImageConfig.rotate from int to f32 2024-07-30 16:16:04 +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
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
cadec97427
gg: add a note that Context.new_streaming_image has to be called after Sokol's setup 2024-07-29 09:21:06 +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
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10: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
Adam Oates
434c3fbf9b
gg: make PenConfig fields public (#21353) 2024-04-26 01:10:13 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
Alexander Medvednikov
5cbed731dc gg: draw_text with custom fonts 2024-04-05 18:09:47 +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
acf0107493 builtin: str.last_index(); pref: hide-auto-str; 2024-03-28 18:26:30 +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
Alexander Medvednikov
b2df3264a7 gg: fix empty circle in native; http: post_form_with_cookies; veb: print veb action in html errors 2024-03-11 18:21:06 +03:00
Delyan Angelov
4cf05083ca
examples: cleanup code duplication in examples/sokol/04_multi_shader_glsl/rt_glsl.v, document gg.m4 (#20978) 2024-03-08 11:39:23 +02:00