summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gd_functions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-535/+509
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Overloaded basic math funcs (double and float variants). Use real_t rather ↵Ferenc Arn2017-01-161-32/+32
| | | | | | than float or double in generic functions (core/math) whenever possible. Also inlined some more math functions.
* Merge pull request #7532 from tagcup/pcg_prngRémi Verschelde2017-01-161-2/+2
|\ | | | | Replace the existing PRNG (Xorshift31) with (minimal) PCG-32.
| * Replace the existing PRNG (Xorshift31) with (minimal) PCG (XSH-RR variant ↵Ferenc Arn2017-01-151-2/+2
| | | | | | | | | | | | with 32-bit output, 64-bit state). PCG is better than many alternatives by many metrics (see www.pcg-random.org) including statistical quality with good speed.
* | Style: Fix statements ending with ';;'Rémi Verschelde2017-01-161-1/+1
| |
* | Style: Cleanups, added headers, renamed filesRémi Verschelde2017-01-161-1/+1
|/ | | | | | | | | Made sure files in core/ and tools/ have a proper Godot license header when written by us. Also renamed aabb.{cpp,h} and object_type_db.{cpp,h} to rect3.{cpp,h} and class_db.{cpp,h} respectively. Also added a proper header to core/io/base64.{c,h} after clarifying the licensing with the original author (public domain).
* Both Array and Dictionary are always in shared mode (removed copy on write).Juan Linietsky2017-01-111-4/+4
|
* Merge pull request #7093 from bojidar-bg/named-colorsRémi Verschelde2017-01-111-0/+37
|\ | | | | Add named colors to GDScript/Visual Script/core.
| * Add named colors to GDScript/Visual Script/core.Bojidar Marinov2016-12-171-0/+37
| | | | | | | | Names and values taken from https://en.wikipedia.org/wiki/X11_color_names
* | Type renames:Juan Linietsky2017-01-111-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | Matrix32 -> Transform2D Matrix3 -> Basis AABB -> Rect3 RawArray -> PoolByteArray IntArray -> PoolIntArray FloatArray -> PoolFloatArray Vector2Array -> PoolVector2Array Vector3Array -> PoolVector3Array ColorArray -> PoolColorArray
* | Moved JSON functions to built-in to_json, parse_json, validate_jsonJuan Linietsky2017-01-081-0/+74
| |
* | ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-1/+1
| | | | | | | | | | | | | | | | Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
* | Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
|/ | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* Merge pull request #6692 from bojidar-bg/add-char-to-gd-vs-scriptRémi Verschelde2016-10-171-0/+15
|\ | | | | Add `String char(int ascii)` function to GDScript and Visual Script
| * Add `String char(int ascii)` function to GDScript and Visual ScriptBojidar Marinov2016-10-031-0/+15
| | | | | | | | Just hope it doesn't crashes with that much pointer math... :smile:
* | Revert "Add warning when (pre)loading paths with leading / (#4280 - #3106)"Fabio Alessandrelli2016-10-131-4/+0
| | | | | | | | | | | | Also closes: #6801 This reverts commit e59820ac94b7c9706298d5559608937dfca332e5.
* | i18n: Fix string that broke msgmergeRémi Verschelde2016-10-091-1/+1
| |
* | Add warning when (pre)loading paths with leading / (#4280 - #3106)Fabio Alessandrelli2016-10-041-1/+6
|/
* Changed the way the step decimals are computed to a safer way, fixes many ↵Juan Linietsky2016-07-261-1/+1
| | | | issues.
* Removed unused variables (first pass)Rémi Verschelde2016-07-071-1/+0
| | | | Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
* Add @GDScript.type_existsGeequlim2016-06-181-0/+15
|
* Fix type hint for the seed argumentRémi Verschelde2016-06-181-2/+2
| | | | Closes #5260.
* Made many built-in gdscript functions return more descriptive errors, closes ↵Juan Linietsky2016-06-111-21/+49
| | | | #5150
* Fix Color8 constructor using wrong value rangeGeorge Marques2016-06-031-2/+2
| | | | Fix #5015
* GDScript: Fix method info for is_nan and is_infRémi Verschelde2016-05-171-2/+2
| | | As reported on https://godotengine.org/qa/4114/why-isnan-and-isinf-arent-implemented
* ability to drag scenes from filesystem to tree for instancingJuan Linietsky2016-05-111-1/+1
|
* Revert "Merge pull request #3814 from est31/iterators_for_for"Rémi Verschelde2016-03-011-83/+0
| | | | | This reverts commit adf50568890cefb5fc354dbc1b21c4140bb410f9, reversing changes made to ee2bc87c0ef3cc1a432655ff935e60f32977904d.
* Add xrange builtin functionest312016-02-281-0/+83
| | | | Also update classes.xml in order to document xrange
* Merge pull request #3445 from akien-mga/masterRémi Verschelde2016-01-261-1/+4
|\ | | | | Add missing return for typeof() MethodInfo
| * Add missing return for typeof() MethodInfoRémi Verschelde2016-01-251-1/+4
| |
* | Added var2bytes and bytes2var to convet any variable to bytes and back. ↵Juan Linietsky2016-01-021-0/+66
| | | | | | | | Closes #2075
* | Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
| |
* | small fixes to color8Juan Linietsky2015-12-311-1/+1
| |
* | -Added Color8(r8,g8,b8,a8) function as well as .r8,.g8,.b8,.a8 members to ↵Juan Linietsky2015-12-311-0/+35
| | | | | | | | Color, to deal with colors in the 0-255 range. Closes #2345
* | force thread model to single-safe when running editor, fixes #2387Juan Linietsky2015-12-311-0/+1
| |
* | -Changed var2str and str2var in GDScript to use VariantWriter and VariantParserJuan Linietsky2015-12-311-2/+19
| | | | | | | | -It is now finally possible to parse back a variant from text!
* | replaced :var by :Variant in documentation, fixes #2897Juan Linietsky2015-12-141-2/+2
|/
* Make dict2inst set internal members of instanceGeorge Marques2015-09-201-0/+9
| | | | Fix #2490
* -Added prints() function, fixes #1132, #1859Juan Linietsky2015-05-091-0/+24
| | | | -Tabs work inside built-in log window, fixes #1867
* Updated copyright year in all headersJuan Linietsky2015-04-181-1/+1
|
* -renamed function to get object from instance idJuan Linietsky2015-04-181-4/+4
| | | | -added function to get list of tiles used
* Merge pull request #1567 from sanikoyes/Pr-GDScript-seed-get-instJuan Linietsky2015-04-071-0/+34
|\ | | | | Pr-GDScript-seed-get-inst
| * Add seed/get_inst function for GDScriptsanikoyes2015-03-251-0/+34
| | | | | | | | | | seed -> Math::seed get_inst -> ObjectDB::get_instance
* | fix printraw to make it actually print rawyg2f2015-04-061-1/+1
|/
* Updated the variable in the lerp function to be weight instead of percent.Nathan Warden2015-02-201-1/+1
|
* begin new serialization frameworkJuan Linietsky2015-02-151-3/+29
| | | | also got rid of STL dependency on triangulator
* -Work in progress visual shader editor *DOES NOT WORK YET*Juan Linietsky2015-01-031-0/+4
|
* More 3D WorkJuan Linietsky2014-06-161-0/+13
| | | | | | | | -=-=-=-=-=- -ESM Shadow Mapping for softer and less glitchy shadows -HDR Pipeline (convert to Linear on texture import, convert to SRGB at the end) -Fix to xml parse bug
* -Support for changing fontsJuan Linietsky2014-04-051-1/+1
| | | | | | | -Detect when free() might crash the project and throw error -fixed 2D Bounce in physics (3d still broken) -renamed “on_top” property to “behind_parent”, which makes more sense, old on_top remains there for compatibility but is invisible. -large amount of fixes