shadowninja55
|
7c0be629ab
|
checker: prohibit fixed array to fixed array assignment where elem_typ is a pointer (#10775)
|
2021-07-15 08:38:03 +03:00 |
|
Alexander Medvednikov
|
c44a47acb1
|
gg: fix draw_line on macos (native rendering)
|
2021-07-03 02:49:20 +03:00 |
|
Delyan Angelov
|
b2391424d9
|
examples: add examples/gg/random.v demonstrating how to stream images/pixels
|
2021-06-24 17:45:14 +03:00 |
|
Delyan Angelov
|
cc91d9bee3
|
gg: keep/update commonly used event state inside the gg.Context
|
2021-06-24 11:14:57 +03:00 |
|
kahsa
|
f1c4753cc0
|
gg: fix draw_line (#10534)
|
2021-06-21 20:30:03 +03:00 |
|
KJ Lawrence
|
79879128b6
|
gg: add rotate to DrawImageConfig (#10521)
|
2021-06-20 08:01:41 +03:00 |
|
KJ Lawrence
|
123682dffb
|
gg: add a draw_line_with_config method (#10513)
|
2021-06-19 21:32:08 +03:00 |
|
KJ Lawrence
|
22214c73e3
|
gg: apply ctx.scale to circle pos (#10512)
|
2021-06-19 09:07:34 +03:00 |
|
KJ Lawrence
|
b0caadae31
|
gg: add new draw_image_with_config method (#10428)
|
2021-06-15 18:30:35 +03:00 |
|
Delyan Angelov
|
98613036c1
|
gg: fix draw_line on m1
|
2021-06-07 21:31:24 +03:00 |
|
KJ Lawrence
|
751b1cffd3
|
gg: fix default font style loading (#10309)
|
2021-06-04 20:00:32 +03:00 |
|
KJ Lawrence
|
452a51c8fe
|
gg: render text if we fell back to system default (#10307)
|
2021-06-02 16:00:14 +03:00 |
|
KJ Lawrence
|
465860e418
|
gg: fix ctx.scale for circles (#10210)
|
2021-05-28 22:37:02 +03:00 |
|
KJ Lawrence
|
9fab4af3f1
|
gg: update the mouse click callback to pass what mouse button was clicked too (#10225)
|
2021-05-28 12:46:23 +03:00 |
|
Wertzui123
|
a095a27d00
|
gg: change vid to ved in a comment (#10218)
|
2021-05-27 20:14:36 +03:00 |
|
KJ Lawrence
|
6cdc7646b8
|
gg: add quit fn (#10223)
|
2021-05-27 17:56:18 +03:00 |
|
Enzo
|
906b207e58
|
checker: deprecate using V strings in C function calls (#10140)
|
2021-05-20 09:17:44 +03:00 |
|
Uwe Krüger
|
d26ac5692e
|
all: various fixes for [heap]/auto-heap handling (#10033)
|
2021-05-07 15:58:48 +03:00 |
|
R cqls
|
8af6237e28
|
gg: fix width and height in draw_rounded_rect primitive (#9926)
|
2021-04-29 10:58:57 +03:00 |
|
Don Park
|
aebb551e93
|
cgen: do full struct initialisation for V structs, fixes invalid data from map[string]Struct{}['unknown'] (#9878)
|
2021-04-27 08:18:48 +03:00 |
|
kahsa
|
f36e46bfde
|
gg:fix draw_line for android (#9882)
|
2021-04-26 10:01:55 +03:00 |
|
Delyan Angelov
|
d4f31412b7
|
v: deprecate @VROOT in favour of @VMODROOT (#9795)
|
2021-04-19 19:01:47 +03:00 |
|
spaceface
|
73352583e7
|
ci: fix all -cstrict warnings with gcc and clang (#9792)
|
2021-04-19 15:38:48 +03:00 |
|
Alexander Medvednikov
|
711e309eef
|
gg: bring back native rendering on macos
|
2021-04-14 03:59:34 +03:00 |
|
Larpon
|
8caabf0e9e
|
sokol: update to floooh/sokol@c602d83 (#9607)
|
2021-04-07 20:39:23 +02:00 |
|
Delyan Angelov
|
c0e2b9b1e2
|
ci: fix some of v test-cleancode 2
|
2021-04-05 20:55:03 +03:00 |
|
Alexander Medvednikov
|
1716e8dd04
|
gg: byteptr fixes
|
2021-04-04 18:05:01 +03:00 |
|
Andréas Livet
|
c4e389be41
|
gg: make Rect struct fields public (#9518)
|
2021-03-30 09:39:07 +02:00 |
|
Alexander Medvednikov
|
cbf4715804
|
gg: ui mode fixes
|
2021-03-27 13:03:19 +03:00 |
|
Delyan Angelov
|
9b78d7d21d
|
tools: check formatting of more modules with v test-cleancode , colorize v vet output
|
2021-03-24 12:39:39 +02:00 |
|
Nick Treleaven
|
446631ceb5
|
checker: fixed array cannot implicitly convert to fooptr (again) (#9302)
|
2021-03-15 15:55:07 +02:00 |
|
Andréas Livet
|
603012be94
|
gg: add draw_image_part (#9277)
|
2021-03-13 08:39:10 +02:00 |
|
Lukas Neubert
|
a67d49050c
|
math: add a pure V math.mathutil , with generic min , max and abs functions (#9176), and use it consistently
|
2021-03-12 11:28:04 +02:00 |
|
penguindark
|
c554e0b33d
|
gg.m4: fix a bug on translate, remove abs fn (#9224)
|
2021-03-10 20:20:17 +02:00 |
|
Larpon
|
0a39c2b9ea
|
gg: expand C.ANativeActivity struct definition (#9231)
|
2021-03-10 18:38:20 +02:00 |
|
Delyan Angelov
|
d7049ae2da
|
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974)
|
2021-03-08 20:52:13 +02:00 |
|
penguindark
|
270df58057
|
gg.m4: fixed some bugs, added ortho projection (#9140)
|
2021-03-06 12:14:43 +02:00 |
|
Alexander Medvednikov
|
845e8decce
|
x64: basic mach-o and arm64 support
|
2021-03-05 17:52:39 +03:00 |
|
Nick Treleaven
|
bd6693efb8
|
gg/m4: fix unnecessary uses of [direct_array_access], add [unsafe] (#9059)
|
2021-03-03 10:20:13 +02:00 |
|
spaceface
|
b712af56fd
|
all: bring back panic(err.msg) -> panic(err) (#9022)
|
2021-03-01 00:18:14 +01:00 |
|
spaceface
|
d63b7bc35a
|
all: update repo to use the new error handling syntax (#8950)
|
2021-02-28 23:20:21 +03:00 |
|
penguindark
|
1d69a0bd22
|
gg: window_size_real_pixels that for 3D without dpi scaling (#9004)
|
2021-02-27 22:11:26 +01:00 |
|
Delyan Angelov
|
a9e9079e48
|
gg: make .set_cfg public
|
2021-02-27 09:15:39 +02:00 |
|
Ruofan XU
|
1a8e502e2c
|
ci: add tcc32 CI on windows (#8922)
|
2021-02-25 12:52:12 +01:00 |
|
spaceface
|
b4dc6c83cd
|
gg: handle Android's own native dpi scaling factor (#8908)
|
2021-02-22 21:24:18 +02:00 |
|
R cqls
|
68972fcec6
|
gg: ensure window_size does not do / 0 (#8907)
|
2021-02-22 19:00:10 +02:00 |
|
Delyan Angelov
|
ab6517c5fc
|
gg: support passing down the state of pressed mouse buttons in mouse moves events
|
2021-02-17 20:14:37 +02:00 |
|
Alexander Medvednikov
|
d4a05bebde
|
gg: use gg types for Events instead of sapp
|
2021-02-17 06:44:01 +01:00 |
|
Christopher Dieringer
|
94429c8fd8
|
gg: window_size: normalize dpi scaling (#8738)
|
2021-02-16 12:41:21 +01:00 |
|
Nick Treleaven
|
4a0367a63c
|
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766)
|
2021-02-15 17:15:52 +02:00 |
|
penguindark
|
325aef6d41
|
gg: add gg.m4, use it in the sokol GLSL examples (#8755)
|
2021-02-15 15:40:28 +02:00 |
|
Larpon
|
de9813233f
|
gg: support getting system font on Android (#8611)
|
2021-02-06 18:36:43 +02:00 |
|
Lucas Hernán Tarche
|
7813ecbb75
|
gg: add draw_convex_poly/2 and draw_empty_poly/2 methods (#8487)
|
2021-02-01 18:18:23 +02:00 |
|
Alexander Medvednikov
|
9638013203
|
gg: fix macos C function definitions
|
2021-01-31 13:57:06 +01:00 |
|
Larpon
|
85c5df23cf
|
gg: add window_size() function (#8409)
|
2021-01-29 12:11:03 +02:00 |
|
shadowninja55
|
f4baa3f39c
|
gg: add draw_square, draw_empty_square, and set_pixel (#8375)
|
2021-01-27 22:39:11 +02:00 |
|
Alexander Medvednikov
|
3dae3f786d
|
gg: Context.resize()
|
2021-01-24 22:27:27 +01:00 |
|
Alexander Medvednikov
|
d991712b3c
|
gg: native rendering mode on macOS
|
2021-01-23 10:25:43 +01:00 |
|
Lukas Neubert
|
8b61891348
|
fmt: smarter if condition wrapping (#8201)
|
2021-01-23 10:33:22 +02:00 |
|
shadowninja55
|
a569dc17e8
|
gg: allow fonts loaded with $embed_file() to be used (#8263)
|
2021-01-21 23:07:47 +02:00 |
|
Lukas Neubert
|
ac2c3847af
|
all: update copyright to 2019-2021 (#8029)
|
2021-01-18 13:20:06 +01:00 |
|
zakuro
|
33694665f0
|
fmt: align each contiguous field of struct. not the whole. (#7981)
|
2021-01-12 04:38:43 +01:00 |
|
Swastik Baranwal
|
9291fb5e0c
|
checker: disallow comparison between enum and int (#7886)
|
2021-01-08 17:41:52 +01:00 |
|
Nick Treleaven
|
8fc33bc27d
|
checker: warn when casting number or a voidptr to reference type outside unsafe (#7900)
|
2021-01-05 20:07:45 +02:00 |
|
Delyan Angelov
|
3a357d9718
|
gg: add examples/gg/stars.v
|
2021-01-04 12:19:05 +02:00 |
|
zakuro
|
dd516858d4
|
fmt: align struct field comments (#7632)
|
2021-01-03 21:10:25 +01:00 |
|
spaceface
|
480d78de2e
|
examples/2048: make tiles have rounded corners (#7763)
|
2021-01-01 13:04:51 +02:00 |
|
Alexander Medvednikov
|
0d43ff2453
|
parser: fix `for i, mut val in vals {; examples: vfmt flappybird
|
2020-12-27 12:02:18 +01:00 |
|
spaceface
|
214290d55b
|
fmt: add a space around single-line unsafe expressions (#7505)
|
2020-12-23 19:13:42 +01:00 |
|
Lukas Neubert
|
d59c5b01e1
|
fmt: intelligent line wrap for trailing struct syntax (#7309)
|
2020-12-14 05:03:17 +01:00 |
|
Alexander Medvednikov
|
576396cf20
|
gg: fix cached images loaded from memory
|
2020-12-12 23:30:41 +01:00 |
|
Delyan Angelov
|
ed9aa873c1
|
gg: use gg.system_font_path() as a fallback when a font can not be found
|
2020-12-07 21:40:24 +02:00 |
|
Delyan Angelov
|
0efdc7bbe8
|
gg: print a diagnostic message when a requested font file is not found
|
2020-12-07 21:28:41 +02:00 |
|
Alexander Medvednikov
|
89952edd25
|
gg: remove unnecessary copy in draw_text
|
2020-12-05 00:03:46 +01:00 |
|
Lukas Neubert
|
02ba923ba7
|
fmt: do not add braces for trailing struct arg (#7072)
|
2020-12-04 11:22:26 +02:00 |
|
Alexander Medvednikov
|
cae3bd7f32
|
gg: vfmt gg.v
|
2020-12-04 01:27:40 +01:00 |
|
Alexander Medvednikov
|
e160f6e7d2
|
gg: screen_size()
|
2020-12-03 23:17:00 +01:00 |
|
Alexander Medvednikov
|
0ddf0a4b92
|
gg: custom bold font path
|
2020-12-01 16:30:25 +01:00 |
|
hirossan4049
|
67d5dfb315
|
gg: draw_rounded_rect() (#6909)
|
2020-11-22 20:13:40 +01:00 |
|
hirossan4049
|
54df7d1daf
|
gg: new draw_empty_rounded_rect() (#6891)
|
2020-11-21 15:40:02 +01:00 |
|
Alexander Medvednikov
|
ff1752dfff
|
gg: vfmt gg.v
|
2020-11-21 00:04:29 +01:00 |
|
Alexander Medvednikov
|
99bdb87a01
|
all: remove #objc for good
|
2020-11-20 23:49:52 +01:00 |
|
Alexander Medvednikov
|
30ddb89e3c
|
gg: UI mode for much lower CPU usage in UI apps
|
2020-11-20 14:50:26 +01:00 |
|
Alexander Medvednikov
|
d50c919879
|
clipboard: fix get_text() on macos
|
2020-11-20 01:08:55 +01:00 |
|
Alexander Medvednikov
|
ad1510afa0
|
gg: vfmt gg.v
|
2020-11-15 15:11:43 +01:00 |
|
Alexander Medvednikov
|
26785668c0
|
autofree: more tests; gg: fix draw_circle with hidpi
|
2020-11-15 15:09:44 +01:00 |
|
Alexander Medvednikov
|
396dca7f48
|
checker: handle bad $if values
|
2020-10-18 21:22:37 +02:00 |
|
Delyan Angelov
|
8b2e704741
|
examples: make v -prod build-examples pass without warnings/errors
|
2020-10-18 09:48:13 +03:00 |
|
scurty-labs
|
5e86b40469
|
gg: update draw_circle/arc x, y to f32 (#6595)
|
2020-10-11 20:36:18 +02:00 |
|
Alexander Medvednikov
|
d8d80fbf42
|
gg: add a missing math import and vfmt
|
2020-10-10 10:37:17 +02:00 |
|
scurty-labs
|
b2fdd7fbaf
|
gg: add draw_circle and draw_arc (#6594)
|
2020-10-10 10:26:08 +02:00 |
|
JalonSolov
|
2fd6c05445
|
fonts: fix so it does not try for RobotoMonoMono.ttf (#6507)
|
2020-09-29 13:20:37 +03:00 |
|
Delyan Angelov
|
af37c7ac6b
|
gg: prevent messages about missing font variants without -d debug_font
|
2020-09-26 09:36:46 +03:00 |
|
spaceface777
|
ae48b709ed
|
gg: don't call os.is_file() on Android (the font is part of the APK there) (#6475)
|
2020-09-25 13:06:20 +03:00 |
|
Lukas Neubert
|
2ea94d621f
|
gg: fix loading variants of many fonts in new_ft() (#6468)
|
2020-09-25 11:52:57 +02:00 |
|
Delyan Angelov
|
dbce01792c
|
gg: try 3 different fonts in system_font_path on MacOS
|
2020-09-24 17:09:08 +03:00 |
|
Delyan Angelov
|
1f21bc4b49
|
gg: bugfix on missing font file, remove last empty line in v doctor
|
2020-09-24 16:53:06 +03:00 |
|
Alexander Medvednikov
|
27f91faae5
|
gg: remove an old compielr hack that's no longer needed
|
2020-09-21 02:51:14 +02:00 |
|
Alexander Medvednikov
|
8c8fe02000
|
gg: mouse_move, mouse_down
|
2020-09-21 02:42:53 +02:00 |
|
Delyan Angelov
|
d4fbf422b3
|
gg: support transparency for rect/triangle/etc primitives too
|
2020-09-20 12:05:30 +03:00 |
|
Alexander Medvednikov
|
c781a5f245
|
gg: draw_triangle(); draw_image_flipped()
|
2020-09-20 03:47:32 +02:00 |
|
Alexander Medvednikov
|
6921d46185
|
all: rune type for `` literals
|
2020-08-27 06:46:37 +02:00 |
|
Alexander Medvednikov
|
542b149290
|
sokol: fix examples and remove copy pasta
|
2020-08-23 07:47:50 +02:00 |
|
Alexander Medvednikov
|
94c3a912ba
|
gg: update sokol and stb_truetype
|
2020-08-23 07:25:30 +02:00 |
|
Alexander Medvednikov
|
5407d9b062
|
gg: fix draw_line on hi dpi screens
|
2020-08-23 04:57:12 +02:00 |
|
Alexander Medvednikov
|
9e12095111
|
gg: image: return an optional instead of panic(); darwin: fix nsstring()
|
2020-08-22 17:09:30 +02:00 |
|
Alexander Medvednikov
|
9da7349f63
|
gg: minor fixes
|
2020-08-20 08:32:05 +02:00 |
|
spaceface777
|
c1651bd271
|
gg: fixes and Android support (#6161)
|
2020-08-19 07:10:42 +02:00 |
|
Alexander Medvednikov
|
40d91cc23b
|
gg: handle bad image index
|
2020-08-18 01:08:58 +02:00 |
|
Nick Treleaven
|
bab5c21224
|
parser: warn when fixed-size ArrayInit doesn't have trailing {} . (#6137)
|
2020-08-16 04:54:05 +02:00 |
|
Alexander Medvednikov
|
9800cf1e7b
|
checker: improve array errors; gg: remove unused imports
|
2020-08-12 03:54:17 +02:00 |
|
Alexander Medvednikov
|
ecaccafd31
|
gg: image cache
|
2020-08-05 16:00:24 +02:00 |
|
Alexander Medvednikov
|
67aafd03c6
|
gg: fix image rendering
|
2020-08-05 14:34:28 +02:00 |
|
Delyan Angelov
|
7b1944c2da
|
gg: simplify the image_cache
|
2020-08-05 08:46:20 +03:00 |
|
Delyan Angelov
|
221a777a80
|
gg: cache sokol C.sg_image handles
|
2020-08-05 08:09:25 +03:00 |
|
Alexander Medvednikov
|
f3ebd3a6e7
|
gg: fix image rendering
|
2020-08-05 03:15:40 +02:00 |
|
Delyan Angelov
|
f9d241ae27
|
gg,stbi: implement gg.create_image_from_memory/2
|
2020-08-04 13:18:08 +03:00 |
|
Delyan Angelov
|
216b6bf285
|
gg: remove tracing println in draw_image
|
2020-08-04 12:57:54 +03:00 |
|
Delyan Angelov
|
9ce75e10d5
|
gg: free gg.create_image from having to be called by sokols init_fn callback
|
2020-08-04 12:37:28 +03:00 |
|
Alexander Medvednikov
|
60c642f42d
|
gg: clean up draw_image()
|
2020-08-04 01:26:56 +02:00 |
|
Delyan Angelov
|
0ac30a8d9c
|
gg: enable image transparency in gg.draw_image2 too
|
2020-08-03 00:30:08 +03:00 |
|
Delyan Angelov
|
a7ca1682c4
|
gg: fix gg.draw_image2 (image drawn, but without transparency for now)
|
2020-08-02 23:47:37 +03:00 |
|
Alexander Medvednikov
|
79b70006e6
|
examples: simplify gg/rectangles.v
|
2020-08-02 17:01:10 +02:00 |
|
Alexander Medvednikov
|
cc57b52773
|
gg: fix typo
|
2020-08-01 23:52:15 +02:00 |
|
Alexander Medvednikov
|
149de958f3
|
gg: fix compilation
|
2020-08-01 23:45:36 +02:00 |
|
Alexander Medvednikov
|
fb4550e582
|
gg: new create_image() (part 1)
|
2020-08-01 23:40:28 +02:00 |
|
Delyan Angelov
|
5bf3b6eda3
|
gg: fix running tetris and ui examples on linux
|
2020-07-28 12:12:44 +03:00 |
|
Alexander Medvednikov
|
65159b8070
|
gg: bold/mono/italic fonts
|
2020-07-27 21:20:23 +02:00 |
|
Alexander Medvednikov
|
db2346069a
|
gg: always use stb_truetype for now
|
2020-07-13 01:02:50 +02:00 |
|
Alexander Medvednikov
|
cad816a19d
|
gg: text_height()
|
2020-07-12 12:48:42 +02:00 |
|
Alexander Medvednikov
|
40da32a141
|
gg: text_width()
|
2020-07-12 01:46:21 +02:00 |
|
Alexander Medvednikov
|
e0fcd565d5
|
gg: fix default text size
|
2020-07-07 17:33:24 +02:00 |
|
Louis Schmieder
|
f8a89e3f8f
|
gg: fix text rendering (#5727)
|
2020-07-07 17:09:35 +02:00 |
|
Alexander Medvednikov
|
013c0e6e16
|
gg: make FT private
|
2020-07-06 21:40:24 +02:00 |
|
Alexander Medvednikov
|
48f1f814d2
|
gg: minor fixes
|
2020-07-06 20:40:54 +02:00 |
|
Alexander Medvednikov
|
0ed8199da2
|
gg: merge ft module
|
2020-07-06 20:29:09 +02:00 |
|
Alexander Medvednikov
|
1f3d7d393e
|
gg: simplify text rendering
|
2020-07-06 19:45:00 +02:00 |
|
Alexander Medvednikov
|
f6ab63f3a0
|
stbi: remove opengl call
|
2020-07-05 19:28:31 +02:00 |
|
Alexander Medvednikov
|
8277c976a8
|
gg: draw_image,draw_rounded_rect placeholder fns
|
2020-06-07 15:20:42 +02:00 |
|
Alexander Medvednikov
|
3478430762
|
gg: borderless windows on macos without animation
|
2020-06-05 15:43:47 +02:00 |
|
Delyan Angelov
|
c1fc61200c
|
gg: support .keydown_fn and .char_fn in addition to .event_fn
|
2020-06-05 12:39:06 +03:00 |
|
Delyan Angelov
|
24b263cf87
|
vid: bring back scale field to gg.Config, fixes vid compilation
|
2020-06-05 08:48:31 +03:00 |
|
Delyan Angelov
|
2237968ec1
|
gg: fix x11 scaling
|
2020-06-05 08:19:34 +03:00 |
|
Alexander Medvednikov
|
e7f52ebed6
|
gg/ft: minor Sokol fixes
|
2020-06-04 23:51:59 +02:00 |
|
Alexander Medvednikov
|
13a7ce9e69
|
gg: GG => Context
|
2020-06-04 20:26:18 +02:00 |
|
Alexander Medvednikov
|
fb7ca56d87
|
gg: minor fixes
|
2020-06-04 19:57:16 +02:00 |
|
Alexander Medvednikov
|
6b6c9d6738
|
gg: make the Sokol based gg the default
|
2020-06-04 16:05:15 +02:00 |
|
Uwe Krüger
|
076089d3c5
|
checker: apply stricter type checks to function args and return types
|
2020-06-01 21:15:59 +02:00 |
|
Uwe Krüger
|
013fdb8a4b
|
checker: restrict numeric promotions to cases where no data is lost
|
2020-05-27 05:42:48 +02:00 |
|
yuyi
|
dda875a9c8
|
all: unify const names to snake_case
|
2020-05-22 17:36:09 +02:00 |
|