Commit Graph

93 Commits (4ce6e663bfc3415d2f38fbcbf75807529b44b42e)

Author SHA1 Message Date
jeffmikels 5e5d62ed4c
arrays,docs: remove arrays.zip; improve docs (#13082) 2022-01-09 16:12:33 +02:00
penguindark 22fce6a525
sokol: update sokol_gfx.h to the LAST version, and fix example 06 (#13100) 2022-01-08 20:29:29 +02:00
Larpon 5cffa1a2e4
sokol: use V type for SG_SHADERSTAGE_[VS|FS] (#13086) 2022-01-07 19:52:44 +02:00
Larpon 3e9c1c1a3a
sokol: rename sapp consts, remove sapp prefix (#13083) 2022-01-07 18:01:07 +02:00
jeffmikels 6e6d51a1c9
docs: add more documentation to each of the modules in vlib (#13043) 2022-01-07 13:28:50 +02:00
Larpon 6dca022caf
sokol: fix missing import in `sfons`. Fixes #13061 (#13062) 2022-01-06 18:21:41 +02:00
Larpon 214853c373
sokol: small fixes to screenshot functions and docs (#13055) 2022-01-06 14:11:40 +02:00
Larpon 3ae4513e2e
sokol: update to floooh/sokol from 27-Dec-2021 (4ff3ed7) (#13044) 2022-01-05 18:23:14 +02:00
jeffmikels a60b381d5e
docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
Larpon 88a973b617
sokol: type alias all `sgl` structs, support `sgl_context` (#13018) 2022-01-03 15:05:24 +02:00
Larpon 4d4398fa8a
sokol: type alias all `gfx` structs (#13014) 2022-01-02 20:36:01 +02:00
Larpon 2210f89ea3
sokol: type alias all `sapp` structs (#12962) 2021-12-26 13:02:51 +02:00
Delyan Angelov 0021fbbaa9
gg: support `VGG_STOP_AT_FRAME=120 VGG_SCREENSHOT_FOLDER=. VGG_SCREENSHOT_FRAMES=10,20,30 ./v -d gg_record run examples/gg/bezier_anim.v` (#12767) 2021-12-08 22:38:33 +02:00
Larpon 047f059fb8
examples: use `fontstash` wrapper calls (#12718) 2021-12-06 23:39:43 +03:00
Delyan Angelov 045579fd8a
parser: use the `[has_globals]` module attribute, remove the parser `global_enabled_mods whitelist` (part 2) 2021-11-16 11:44:36 +02:00
Alexander Medvednikov 45534b512b time: move pure V function from time.c.v 2021-10-19 16:03:45 +03:00
Larpon 5bfa3d5530
sokol: add screenshot function to OpenGL based backends (#12169) 2021-10-13 21:22:58 +03:00
Larpon 53aa4eba0d
sokol: add sg_isvalid wrapper to gfx (#12081) 2021-10-07 10:41:57 +03:00
penguindark e4bd2306da
sokol: upgrade to latest version, add program icon support (#11559)
* updated sokol_gfx.h to the last version: 16d7b2e

* merged sokol_app and update enums.v

* added missing icons structs

* try to fixing Mac keyboard problems

* added v patch marker to sokol_app.h

* upgrade for sokol_gl.h, sokol_fontstash.h

* manage sgl_load_default_pipeline

* added load_default_pipeline() for sokol coherence

* vfmt sapp_structs.c.v

Co-authored-by: Delyan Angelov <delian66@gmail.com>
2021-09-21 09:55:06 +03:00
Alexander Medvednikov ab3adf3346 checker: no longer allow automatic dereferncing in `a = b` 2021-09-09 20:21:01 +03:00
Delyan Angelov 4faa0f8487
v.checker: add checks for `.free()` methods 2021-09-09 09:54:06 +03:00
Enzo e3b65092d6
parser: deprecate `size_t` (#11443) 2021-09-08 13:09:32 +03:00
penguindark 63ff5690ff
sokol.sapp,gg: add support for drag & drop events (#11359) 2021-09-01 09:21:27 +03:00
penguindark 8dcb27a11d
sokol: expose the toggle_fullscreen and is_fullscreen functions (#11339) 2021-08-30 17:10:14 +03:00
Delyan Angelov 576664e31f
gg,sokol,stbi,gx,fontstash: cleanup for -Wimpure-v 2021-08-12 22:42:42 +03:00
Ben-Fields 8a097293a8
sokol: define a pixel color format (#10951) 2021-07-25 17:27:07 +03:00
crthpl 9eee6631cc
sokol: add mouse locking (#10684) 2021-07-06 20:43:41 +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 d5c306ce57
sokol: add -lpthread flag on linux to prevent failing asserts in some cases 2021-05-16 20:21:29 +03:00
Delyan Angelov 20a22453cf
v.builder: remove default link flags -lm, -ldl, -lpthread (use module specific link flags instead) (#10099) 2021-05-14 14:28:53 +03:00
Delyan Angelov 8a380f4699
tools: make `v test-cleancode` test everything by default (#10050) 2021-05-08 13:32:29 +03:00
Uwe Krüger d26ac5692e
all: various fixes for [heap]/auto-heap handling (#10033) 2021-05-07 15:58:48 +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
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
Delyan Angelov 8c95f07509 sokol: fix compilation of gg apps on macos 2021-04-13 14:38:55 +03:00
Leah Lundqvist cfaba49683
ios: move `sokol` declarations out of builder, and support non-sokol apps too (#9703) 2021-04-12 19:35:06 +03:00
Larpon 8caabf0e9e
sokol: update to floooh/sokol@c602d83 (#9607) 2021-04-07 20:39:23 +02:00
Alexander Medvednikov 1716e8dd04 gg: byteptr fixes 2021-04-04 18:05:01 +03:00
Uwe Krüger c1d4074bc4
thirdparty: make `fontstash` and `sokol` C-libraries work with Boehm-GC (#9506) 2021-03-29 11:27:34 +02:00
joe-conigliaro 2d73411396
checker: define missing C fn args & check C & JS args (#8770) 2021-03-05 17:41:11 +03:00
Delyan Angelov d4f6f5eec4
sokol,fontstash: move f_d_use_freetype.v to vlib/fontstash/a_d_use_freetype.v 2021-01-23 11:39:17 +02:00
Alexander Medvednikov 45cc3ec664 sokol: remove an absolute import 2021-01-23 10:32:00 +01:00
Alexander Medvednikov d991712b3c gg: native rendering mode on macOS 2021-01-23 10:25:43 +01:00
Delyan Angelov a3908414e4
pref: fix handling of _d_custom.v files, use it in vlib/sokol/f/f_d_use_freetype.v 2021-01-23 11:21:56 +02:00
Larpon 512f62b7a1
android: enable custom (e)println output via android log system (#8135) 2021-01-17 05:32:59 +01:00
Swastik Baranwal 9291fb5e0c
checker: disallow comparison between enum and int (#7886) 2021-01-08 17:41:52 +01:00
Emily Hudson bf9b0c6345
compiler: add `[console]` attribute for main function to force console subsystem on windows (#7721) 2020-12-31 12:38:55 +01:00
Bakul Shah 80a9d08505
sokol: fix for freebsd (#7466) 2020-12-26 10:08:16 +02:00
joe-conigliaro 14887304d8
sokol: allow submodules to be built by themselves (add required imports) 2020-12-07 16:16:21 +11:00