summaryrefslogtreecommitdiffstats
path: root/core/core_bind.h
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add Direct3D 12 RenderingDevice implementationPedro J. Estébanez2023-12-121-0/+1
|/
* Merge pull request #78871 from jitspoe/master.pr_compute_convex_mesh_pointsRémi Verschelde2023-08-161-0/+1
|\ | | | | | | Expose `compute_convex_mesh_points` function to GDScript
| * Expose compute_convex_mesh_points function to GDScript.jitspoe2023-08-141-0/+1
| |
* | Add ability to get barycentric coordinates from rayPrecisionRender2023-08-021-0/+1
| |
* | Merge pull request #79466 from Repiteo/core_bind-header-fixYuri Sizov2023-07-211-2/+2
|\ \ | | | | | | | | | Have `core_bind.h` Thread type syntax match `core_bind.cpp`
| * | Have core_bind.h thread type syntax match .cppThaddeus Crews2023-07-141-2/+2
| |/ | | | | | | • Functionally identical to prior implementation, but removes misattributed errors in VSCode intellisense
* / [macOS] Implement optional native file selection dialog support for ↵bruvzg2023-07-121-0/+2
|/ | | | sandboxed apps.
* Let user scripts disable thread safety checksPedro J. Estébanez2023-06-091-0/+2
|
* Merge pull request #52314 from lawnjelly/four_delta_smoothRémi Verschelde2023-05-171-0/+3
|\ | | | | | | Add frame delta smoothing option (4.x)
| * Add frame delta smoothing option (4.x)lawnjelly2023-05-161-0/+3
| | | | | | | | | | | | | | | | Frame deltas are currently measured by querying the OS timer each frame. This is subject to random error. Frame delta smoothing instead filters the delta read from the OS by replacing it with the refresh rate delta wherever possible. This PR also contains code to estimate the refresh rate based on the input deltas, without reading the refresh rate from the host OS. The delta_smooth_enabled setting can also be modified at runtime through OS::, and there is also now a command line setting to override the project setting.
* | Make more base nodes thread safeJuan Linietsky2023-05-151-15/+15
|/ | | | Ongoing work to make more of the base nodes thread safe.
* Merge pull request #76418 from reduz/method-bind-validated-callRémi Verschelde2023-05-081-1/+1
|\ | | | | | | Add ValidatedCall to MethodBind
| * Add ValidatedCall to MethodBindJuan Linietsky2023-04-301-1/+1
| | | | | | | | | | | | | | * This should optimize GDScript function calling _enormously_. * It also should simplify the GDScript VM considerably. NOTE: GDExtension calling performance has most likely been affected until going via ptrcall is fixed.
* | Cache feature list in OS.has_feature()kobewi2023-05-051-0/+2
| |
* | Merge pull request #69698 from Daylily-Zeleen/daylily-zeleen/show_in_explorerRémi Verschelde2023-04-251-0/+1
|\ \ | |/ |/| | | Implement and expose OS::shell_show_in_file_manager()
| * Implement and expose OS::shell_show_in_file_manager()Daylily-Zeleen2023-04-251-0/+1
| |
* | [OS] Implement and expose to scripting APIs `get_memory_info` method instead ↵bruvzg2023-04-241-0/+1
|/ | | | of old `get_free_static_memory`.
* Add Engine::unregister_script_language and make ↵Emmanuel Leblond2023-02-101-1/+2
| | | | Engine::register_script_language returns a Error
* Booleanize various sync primitives' wait & locking methodsPedro J. Estébanez2023-01-271-2/+2
|
* OS: Add `unset_environment`, better validate inputRémi Verschelde2023-01-161-1/+2
| | | | | | | | | Instead of returning an undocumented boolean error code, we do the validation checks that should ensure a successful result. Based on: - https://linux.die.net/man/3/setenv - https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setenvironmentvariable
* Merge pull request #70714 from Calinou/doc-os-stdinRémi Verschelde2023-01-121-1/+1
|\ | | | | Improve documentation for `OS.read_string_from_stdin()`
| * Improve documentation for `OS.read_string_from_stdin()`Hugo Locurcio2023-01-111-1/+1
| | | | | | | | | | | | This makes it clearer that calls to this method are blocking. The unused method parameter was also removed.
* | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* | Remove duplicate Month and Weekday enumsAaron Franke2022-12-261-29/+0
|/ | | | Well, they were duplicately-exposed, but triplicately-defined.
* Use system fonts as fallback and improve system font handling.bruvzg2022-12-041-1/+2
| | | | | | | Add support for font weight and stretch selection when using system fonts. Add function to get system fallback font from a font name, style, text, and language code. Implement system font support for Android. Use system fonts as a last resort fallback.
* Merge pull request #65836 from Calinou/add-max-physics-steps-per-frame-settingRémi Verschelde2022-11-151-0/+3
|\ | | | | | | Implement adjusting the maximum number of physics steps per rendered frame
| * Implement adjusting the maximum number of physics steps per rendered frameHugo Locurcio2022-10-091-0/+3
| | | | | | | | | | | | | | | | | | When using high physics FPS (which is a requirement to minimize input lag and improve precision in simulation racing games), a higher value prevents the game from slowing down at low rendering FPS. This can be done via an Engine property for run-time changes, or a project setting for initial changes.
* | Merge pull request #67244 from RandomShaper/split_render_further_2Rémi Verschelde2022-10-111-4/+4
|\ \ | | | | | | Polish rendering driver refactor further (take 2)
| * | Polish rendering driver refactor further (take 2)Pedro J. Estébanez2022-10-111-4/+4
| |/
* | Merge pull request #66102 from MJacred/feature/getvideoadapterdriverinfoRémi Verschelde2022-10-111-0/+2
|\ \ | |/ |/| | | Fetch video adapter driver name and version from OS
| * Fetch video adapter driver name and version from OS on Linux/*BSD and WindowsMJacred2022-10-111-0/+2
| |
* | Rename `Engine.target_fps` and associated project setting to `max_fps`Hugo Locurcio2022-10-031-2/+2
| | | | | | | | | | | | | | | | | | This makes the setting easier to find, as research has found there are numerous use cases to limiting FPS. This also improves documentation related to the Engine property and project setting. The project setting also works in projects exported in release mode, so its location in the `debug/` section was misleading.
* | Merge pull request #66803 from akien-mga/core-remove-NO_THREADSRémi Verschelde2022-10-031-2/+0
|\ \ | | | | | | | | | Remove `NO_THREADS` fallback code, Godot 4 requires thread support
| * | Remove NO_THREADS fallback code, Godot 4 requires thread supportRémi Verschelde2022-10-031-2/+0
| | | | | | | | | | | | | | | This also removes `OS::can_use_threads` from the public API since it's always true.
* | | Merge pull request #65751 from Faless/os/4.x_expose_read_from_stdinRémi Verschelde2022-10-031-0/+1
|\ \ \ | |/ / |/| |
| * | [OS] Expose get_stdin_string to Scripting.Fabio Alessandrelli2022-09-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Exposed as read_string_from_stdin so it's clear it's not retrieving a property. The method is kept with the block parameter, but a note is added to the docs specifying that is not implemented on any platform (should we just remove it?).
* | | Remove unused includes & move some includes to top of fileAndy Maloney2022-09-231-3/+0
| | |
* | | Add method bind for `Geometry2D.decompose_polygon_in_convex`Mansur Isaev2022-09-211-0/+1
| | |
* | | Replace File/Directory with FileAccess/DirAccesskobewi2022-09-191-153/+0
| |/ |/|
* | Add get_distribution_name() and get_version() to OSMJacred2022-09-161-0/+2
|/ | | | | | supports: LinuxBSD, Windows, macOS, iOS, Android, UWP Co-authored-by: bruvzg
* Drop obsolete resource usage debug methods from OS classRémi Verschelde2022-08-291-7/+0
| | | | | | | | | | | These methods exist since the dawn of (open source) Godot and have hardly been updated over time, so they barely work and I'm fairly sure nobody is using them. (See #46505 for details.) While some of the functionality they aimed to provide might be useful for optimization work and introspection, this should likely be redesigned from scratch with a cleaner and more modern interface (e.g. exposed via the Performance singleton, or ResourceLoader, and a better API overall).
* Merge pull request #58530 from Calinou/os-remove-dump-memory-to-fileRémi Verschelde2022-08-251-1/+0
|\ | | | | Remove unimplemented `OS.dump_memory_to_file()` method
| * Remove unimplemented `OS.dump_memory_to_file()` methodHugo Locurcio2022-08-181-1/+0
| | | | | | | | | | | | This method never did anything in Godot since 3.0, since its code was commented out. The last time the method had an implementation was in Godot 2.1.x.
* | Replace Array return types with TypedArray 2kobewi2022-08-231-11/+11
| |
* | Replace Array return types with TypedArraykobewi2022-08-221-4/+6
|/
* Print expected `os.arch` tuple for current platform in GDExtension errorHugo Locurcio2022-08-081-0/+2
| | | | | This also adds `Engine.get_architecture_name()` to get the name of the CPU architecture the Godot binary was built for.
* Expose the "restart on exit" OS functionalityHugo Locurcio2022-08-011-0/+4
| | | | | | | | | | | | This can be used to restart a project with specific command line arguments applied. This can work in tandem with `OS.get_cmdline_args()` to restart with the same command line arguments as used to originally run the project. Example use cases: - Restart to apply an user setting change that requires a restart to work. - Restart with a Godot command line argument to change the video driver, audio driver, etc.
* Merge pull request #63733 from akien-mga/file-get_as_text-skip-CRRémi Verschelde2022-08-011-1/+1
|\ | | | | File: Re-add support to skip CR (`\r`) in `File::get_as_text`
| * File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde2022-08-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This was removed in #63481, and we confirmed that it's better like this, but we add back the possibility to strip CR as an option, to optionally restore the previous behavior. For performance this is done directly in `String::parse_utf8`. Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR. Supersedes #63717.
* | Add support for command-line user arguments.Juan Linietsky2022-08-011-0/+1
|/ | | | | | | | | | Implements the standard Unix double dash (--) commandline argument: * Arguments after a double dash (--) are ignored by Godot and stored for the user. * User can access them via `OS.get_cmdline_user_args()` Example: `godot.exe scene_to_run.tscn --fullscreen -- --start-level 2`