summaryrefslogtreecommitdiffstats
path: root/core/bind/core_bind.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'Braden Bodily2019-08-171-25/+9
| | | | | | | | | Condensed some if and ERR statements. Added dots to end of error messages Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?), core/os/memory.cpp, drivers/png/png_driver_common.cpp, drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
* Merge pull request #30226 from lawnjelly/interpolateRémi Verschelde2019-07-181-0/+5
|\ | | | | Add access to interpolation fraction for fixed timestep interpolation
| * Add access to interpolation fraction for fixed timestep interpolationlawnjelly2019-07-111-0/+5
| | | | | | | | | | | | | | | | Addresses #30068 This is a prerequisite for allowing proper support for fixed timestep interpolation, exposing the interpolation fraction to the engine, modules and gdscript. The interpolation fraction is the fraction through the current physics tick at the time of the current frame.
* | Added release function to PoolVector::Access.Ibrahn Sahir2019-07-061-3/+5
| | | | | | | | | | | | For clarity, assign-to-release idiom for PoolVector::Read/Write replaced with a function call. Existing uses replaced (or removed if already handled by scope)
* | Add b64 to string helper in CryptoCoreFabio Alessandrelli2019-07-031-36/+6
| |
* | Merge pull request #30239 from Faless/crypto/crypto_coreRémi Verschelde2019-07-021-11/+14
|\ \ | | | | | | CryptoCore class to access to base crypto utils.
| * | CryptoCore class to access to base crypto utils.Fabio Alessandrelli2019-07-021-11/+14
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Godot core needs MD5/SHA256/AES/Base64 which used to be provided by separate libraries. Since we bundle mbedtls in most cases, and we can easily only include the needed sources if we so desire, let's use it. To simplify library changes in the future, and better isolate header dependencies all functions have been wrapped around inside a class in `core/math/crypto_base.h`. If the mbedtls module is disabled, we only bundle the needed source files independently of the `builtin_mbedtls` option. If the module is enabled, the `builtin_mbedtls` option works as usual. Also remove some unused headers from StreamPeerMbedTLS which were causing build issues.
* | Merge pull request #30223 from qarmin/properly_delete_threadRémi Verschelde2019-07-021-0/+2
|\ \ | |/ |/| Remove thread to prevent memory leak
| * Remove thread to prevent memory leakqarmin2019-07-011-0/+2
| |
* | Merge pull request #30126 from qarmin/remove_unnecessary_codeRémi Verschelde2019-07-011-5/+7
|\ \ | |/ |/| Remove unnecessary code and add some error explanations
| * Remove unnecessary code and add some error explanationsqarmin2019-07-011-5/+7
| |
* | doc: Enforce default values for OS propertiesRémi Verschelde2019-06-301-0/+20
|/ | | | | | Otherwise we end up fetching values from the current OS instance when running doctool, so they would change based on the system or even simply due to changes to the system clipboard.
* Merge pull request #29941 from qarmin/redundant_code_and_othersRémi Verschelde2019-06-271-1/+1
|\ | | | | Remove redundant code, possible NULL pointers and others
| * Some code changed with Clang-Tidyqarmin2019-06-261-1/+1
| |
* | Bind is_point_in_polygon in Geometry singletonAndrii Doroshenko (Xrayez)2019-06-271-0/+6
|/
* Add ability to limit maximum/minimum window size.bruvzg2019-06-151-0/+22
|
* Merge pull request #26462 from SubSage/masterRémi Verschelde2019-05-281-3/+3
|\ | | | | Fixes OS.execute; stderr was silenced; adds missing quote from exe args (windows)
| * Fixes stderr silence; adds missing quote from exe args(windows)Luis Martinez2019-03-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/godotengine/godot/blob/8d117b214f2bcd14015532fdfbed9b3f059da0e6/core/bind/core_bind.cpp#L452 This function calls the bottom function https://github.com/godotengine/godot/blob/8d117b214f2bcd14015532fdfbed9b3f059da0e6/drivers/unix/os_unix.cpp#L312 OS.execute doesn't send out a value to stderr, so stderr defaults to false, which will invoke this bottom line and always silence stderr. https://github.com/godotengine/godot/blob/8d117b214f2bcd14015532fdfbed9b3f059da0e6/drivers/unix/os_unix.cpp#L315 Some programs, such as FFmpeg, will print out to stderr with valuable and vital information. This fixes stderr always being silenced, user can now opt to have it be read as normal.
* | Merge pull request #29119 from bruvzg/native_icon_supportRémi Verschelde2019-05-271-0/+6
|\ \ | | | | | | Add native window/taskbar icon support for Windows and macOS.
| * | Add native window/taskbar icon support for Windows and macOS.bruvzg2019-05-241-0/+6
| | | | | | | | | | | | Co-authored-by: Markus Törnqvist <mjt@nysv.org>
* | | Expose 2D Delaunay triangulation in Geometry singletonAndrii Doroshenko (Xrayez)2019-05-241-0/+6
| | | | | | | | | | | | | | | | | | | | | Can be used via scripting as `Geometry.triangulate_delaunay_2d(points)` The interface is the same as in `Triangulate` library, returning indices into triangulated points.
* | | Expose 2D polygon boolean operations in Geometry singletonAndrii Doroshenko (Xrayez)2019-05-221-0/+135
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clipper 6.4.2 is used internally to perform polypaths clipping, as well as inflating/deflating polypaths. The following methods were added: ``` Geometry.merge_polygons_2d(poly_a, poly_b) # union Geometry.clip_polygons_2d(poly_a, poly_b) # difference Geometry.intersect_polygons_2d(poly_a, poly_b) # intersection Geometry.exclude_polygons_2d(poly_a, poly_b) # xor Geometry.clip_polyline_with_polygon_2d(poly_a, poly_b) Geometry.intersect_polyline_with_polygon_2d(poly_a, poly_b) Geometry.offset_polygon_2d(polygon, delta) # inflate/deflate Geometry.offset_polyline_2d(polyline, delta) # returns polygons // This one helps to implement CSG-like behaviour: Geometry.transform_points_2d(points, transform) ``` All the methods return an array of polygons/polylines. The resulting polygons could possibly be holes which could be checked with `Geometry.is_polygon_clockwise()` which was exposed to scripting as well.
* | Style: Apply new changes from clang-format 8.0Rémi Verschelde2019-04-091-1/+2
| | | | | | | | | | | | It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
* | core_bind: Use the appropriate enum instead of intIgnacio Etcheverry2019-04-071-7/+7
| |
* | Enable warnings=extra on clang and GCC testers.marxin2019-04-021-1/+1
| | | | | | | | And remove 2 warnings from warnings=extra.
* | Add object encoding param to serialization methodsFabio Alessandrelli2019-04-011-14/+14
| | | | | | | | | | | | | | | | | | Network peers get_var/put_var File get_var/store_var GDScript/Mono/VisualScript bytes2var/var2bytes Add MultiplayerAPI.allow_object_decoding member which deprecates PacketPeer.allow_object_decoding. Break ABI compatibaility (API compatibility for GDNative).
* | Request Android record permission when neededDESKTOP-3H3MR3A\eloisa2019-03-081-0/+7
|/
* Expose OS::get_current_video_driver to scripting languagesRémi Verschelde2019-02-161-2/+11
|
* Let memory stat functions return uint64_tPedro J. Estébanez2019-01-301-3/+3
|
* Fix error explanation in core_bind Thread::_start_funcPoommetee Ketson2019-01-111-1/+1
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* doc: Sync classref with current sourceRémi Verschelde2018-12-271-1/+1
| | | | Fix various code formatting issues and argument names.
* Added OS.get_system_time_msecs()volzhs2018-12-201-0/+5
|
* Changes IME input to use notification instead of callback, exposes IME ↵bruvzg2018-11-231-2/+13
| | | | methods to gdscript/gdnative.
* Add store_csv_line method for FileKanabenki2018-11-161-3/+9
|
* -Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky2018-11-081-4/+4
| | | | -Removed one and zero hints for properties, replaced by default value
* Expose OS::move_window_to_foregroundMarcelo Fernandez2018-11-071-0/+6
|
* Bind missing subresource flag in ResourceSaverAndrii Doroshenko (Xrayez)2018-10-181-0/+1
|
* Remove redundant "== true" codeAaron Franke2018-10-061-1/+1
| | | If it can be compared to a boolean, it can be evaluated as one in-place.
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-7/+7
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Merge pull request #20712 from marcelofg55/midi_open_closeJuan Linietsky2018-08-241-0/+10
|\ | | | | Add OS::open_midi_inputs and OS::close_midi_inputs
| * Add OS::open_midi_inputs and OS::close_midi_inputsMarcelo Fernandez2018-08-041-0/+10
| |
* | fix #20390 :get_unix_time_from_datetime and get_date_time_from_unix_time can ↵RaphaelHunter2018-08-131-24/+31
| | | | | | | | handle time before year 1970 now
* | Fix ResourceLoader::exists() false negative and readd deprecated has()Rémi Verschelde2018-08-121-0/+10
| |
* | Added function ResourceLoader.exists(), to check if a resource exists. ↵Juan Linietsky2018-08-101-3/+8
| | | | | | | | Closes #19140
* | Revert "added get_creation_time function for gdscript"Juan Linietsky2018-08-101-8/+0
| |
* | Merge pull request #18914 from notwarp/masterJuan Linietsky2018-08-101-0/+8
|\ \ | |/ |/| added get_creation_time function for gdscript
| * added get_creation_time function for gdscriptDaniele Giuliani2018-05-161-0/+8
| |
* | Added a new MIDIDriver classMarcelo Fernandez2018-07-211-0/+5
| |
* | Expose OS.get_ticks_usec()Marc Gilleron2018-06-181-0/+6
| |