aboutsummaryrefslogtreecommitdiff
path: root/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #8981 from toger5/addedGrowFunctionRémi Verschelde2017-06-082-0/+23
|\ | | | | implemented grow(left,top,right,bottom) function
| * added grow functions to Rect2toger52017-06-052-0/+23
| | | | | | | | | | - grow_individual - grow_margin
* | Merge pull request #9015 from mcanders/mcanders/ParseObjectVariantFixRémi Verschelde2017-06-071-2/+6
|\ \ | | | | | | Fix Variant::OBJECT token parsing
| * | Fix Variant::OBJECT token parsingCarter Anderson2017-06-041-2/+6
| | |
* | | renamed all Rect2.pos to Rect2.positionalexholly2017-06-0410-137/+137
|/ /
* | InputEvent: Renamed "pos" property to "position"Andreas Haas2017-06-032-38/+38
| | | | | | | | Make the naming consistent with other classes.
* | Merge pull request #8973 from thomas-goerlich/8957_rand_range_bugfixRémi Verschelde2017-06-031-3/+1
|\ \ | | | | | | Fixed rand_range not returning correct random values on windows
| * | Changed enum to const because enum with uint64 size does not work on VSC++ ↵Thomas Görlich2017-05-291-3/+1
| | | | | | | | | | | | Compiler
* | | Merge pull request #9011 from karroffel/ptrcall-nightmare-fixRémi Verschelde2017-06-012-1/+2
|\ \ \ | | | | | | | | fixed PowerState enum cast
| * | | fixed PowerState enum castKarroffel2017-06-012-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Quite a while ago I made a commit (131631b) where I did a weird thing to fix compilation with PTRCALL_ENABLED. And I couldn't sleep because of this after all these months. So here is the proper version.
* | | | rewritten PBR implementation to make it friendlier with BlenderJuan Linietsky2017-05-312-20/+8
|/ / /
* | / Several fixes related to PBR and EnvironmentJuan Linietsky2017-05-302-4/+4
| |/ |/|
* | NaturalSort: strings start with . treated differentlyPoommetee Ketson2017-05-291-0/+12
| |
* | -Added .hdr format supportJuan Linietsky2017-05-285-42/+203
|/ | | | | | -Added default environment editor setting -Added environment created by default in new projects -Removed default light and ambient from spatial editor, to make the editor more PBR compliant
* Merge pull request #8936 from Hinsbart/fix_actionRémi Verschelde2017-05-271-2/+2
|\ | | | | Fix InputEvent actions.
| * Fix InputEvent actions.Andreas Haas2017-05-271-2/+2
| | | | | | | | | | The `InputEvent::is_action(pressed|released)` methods weren't implemented yet. Also fixed a typo in `InputDefault` that prevented `Input.is_action(pressed|released)` from working.
* | -Added EXR supprot for HDR (no BC6 compression yet though)Juan Linietsky2017-05-263-41/+515
|/ | | | | | -Improvements to texture importer -Proper detection of S3TC compression modes, and added all modes to Image -Fixes to non-power of 2 compressed textures, which should all be supported by GLES3
* Fix virtual methods in InputEventKey.Andreas Haas2017-05-252-3/+3
| | | | This fixes a lot of problems with key input in the engine.
* Merge pull request #8590 from tagcup/s3tc_stuffJuan Linietsky2017-05-252-327/+4
|\ | | | | Use libsquish to decompress DXT textures.
| * Use libsquish to decompress DXT textures.Ferenc Arn2017-05-182-327/+4
| |
* | Merge pull request #8898 from vnen/screentouch-struct-classRémi Verschelde2017-05-251-1/+1
|\ \ | | | | | | Change InputEventScreenTouch from struct to class
| * | Change InputEventScreenTouch from struct to classGeorge Marques2017-05-241-1/+1
| | |
* | | Fix 2D-editor mouse wheel zoom (x11).Martin Capitanio2017-05-241-1/+1
|/ / | | | | | | Fixes #8888
* | -Fix the "set_val" call deferred, it was the only one.. closes #8742Juan Linietsky2017-05-231-1/+1
| | | | | | | | -Removed redundant bind in input_event
* | fixed crash on code that checks InputEventJuan Linietsky2017-05-231-1/+1
| |
* | Merge pull request #8786 from bojidar-bg/fix-astar-weight-scaleRémi Verschelde2017-05-221-4/+2
|\ \ | | | | | | Fix weigth scale of A* being applied to the whole estimation
| * | Fix weigth scale of A* being applied to the whole path and estimationBojidar Marinov2017-05-221-5/+2
| | | | | | | | | | | | Attempt to fix #8584
* | | Avoid overestimating the cost in AStar heuristics.Ferenc Arn2017-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | | This is a necessary condition for finding optimal solutions. This is achieved by simply requiring/ensuring that no weights are smaller than 1. Fixes #8584.
* | | Removal of InputEvent as built-in Variant type..Juan Linietsky2017-05-2020-1492/+1119
| | | | | | | | | | | | this might cause bugs I haven't found yet..
* | | Merge pull request #8829 from supagu/astar-bidirectionalRémi Verschelde2017-05-202-4/+6
|\ \ \ | | | | | | | | Added bool to allow astar points to be connected in one direction only
| * | | Added bool to allow astar points to be connected in one direction onlyFabian Mathews2017-05-192-4/+6
| |/ /
* | / Finish implementation of GDnative builtins bindingsEmmanuel Leblond2017-05-191-1/+0
| |/ |/|
* | Merge pull request #8807 from RandomShaper/mq-flush-reentrantRémi Verschelde2017-05-181-6/+9
|\ \ | | | | | | Make MessageQueue::flush() reentrant
| * | Make MessageQueue::flush() reentrantPedro J. Estébanez2017-05-181-6/+9
| |/
* | Merge pull request #8649 from neikeq/pr-ringbuffer-findRémi Verschelde2017-05-181-0/+26
|\ \ | | | | | | RingBuffer: Adds find() method
| * | RingBuffer: Adds find() methodIgnacio Etcheverry2017-05-051-0/+26
| | |
* | | Fix two typos from previous commitRémi Verschelde2017-05-176-93/+28
| | | | | | | | | | | | Also cleanup comments on variant types.
* | | Removal of Image from Variant, converted to a Resource.Juan Linietsky2017-05-1723-618/+257
| |/ |/|
* | Fix natural sorting order in EditorFileDialog, FileDialog and ↵Damian Day2017-05-122-3/+61
| | | | | | | | | | | | | | | | | | | | EditorFileSystemDirectory Make EditorFileDialog, FileDialog and EditorFileSystemDirectory alphanumerical sorting more natural Added a new method 'naturalnocasecmp_to' and comparator 'NaturalNoCaseComparator' to String. Fixes #8712.
* | Fixed the IP resolver code blocking the main thread, it uses a Mutex now to ↵Marcelo Fernandez2017-05-081-18/+47
| | | | | | | | lock its own thread.
* | Implemented scrolling factor for smooth trackpad scrollingtoger52017-05-071-1/+5
| | | | | | | | | | Working platforms platform: OSX, Windows. Support for almost all ui elements, including project list.
* | Merge pull request #8658 from Faless/explain_out_of_mem_msg_queue_masterRémi Verschelde2017-05-051-4/+6
|\ \ | | | | | | Better explain out of memory error in message queue
| * | Better explain out of memory error in message queueFabio Alessandrelli2017-05-051-4/+6
| |/ | | | | | | Also effectively saves one unnecessary call when everything is fine.
* | Merge pull request #8642 from RandomShaper/fix-pack-get-curr-dirRémi Verschelde2017-05-051-5/+4
|\ \ | |/ |/| Fix infinite loop in DirAccessPack::get_current_dir()
| * Fix infinite loop in DirAccessPack::get_current_dir()Pedro J. Estébanez2017-05-041-5/+4
| |
* | Rename project file to "project.godot"Rémi Verschelde2017-05-012-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Slimmed down variant from the reverted #8375. The rationale behind the name change is to give Godot's project file a unique extension (".godot") that can be registered on the OS to be associated with the Godot binary (OS registration not implemented here). This PR also adds the possibility to start the game or editor if launched with the project.godot passed as argument, which paves the way for allowing a similar behaviour on a double-click in the OS file manager (code originally by @Hinsbart). Closes #6915.
* | Merge pull request #8572 from akien-mga/thirdpartyRémi Verschelde2017-04-2938-12334/+77
|\ \ | | | | | | Moving more thirdparty stuff (minizip, some single-file external libs) to the thirdparty directory
| * | Move other lone thirdparty files to thirdparty/miscRémi Verschelde2017-04-281-1/+1
| | | | | | | | | | | | | | | Also move Box2D ConvexDecomposition contrib code to thirdparty/b2d_convexdecomp.
| * | Split thirdparty smaz.c out of compressed_translation.cppRémi Verschelde2017-04-282-209/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code comes from https://github.com/antirez/smaz/blob/150e125cbae2e8fd20dd332432776ce13395d4d4/smaz.c With a small modification to match Godot expectations: ``` diff --git a/thirdparty/core/smaz.c b/thirdparty/core/smaz.c index 9b1ebc2..555dfea 100644 --- a/thirdparty/core/smaz.c +++ b/thirdparty/core/smaz.c @@ -14,7 +14,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND #include <string.h> /* Our compression codebook, used for compression */ -static char *Smaz_cb[241] = { +static const char *Smaz_cb[241] = { "\002s,\266", "\003had\232\002leW", "\003on \216", "", "\001yS", "\002ma\255\002li\227", "\003or \260", "", "\002ll\230\003s t\277", "\004fromg\002mel", "", "\003its\332", "\001z\333", "\003ingF", "\001>\336", @@ -89,7 +89,7 @@ static char *Smaz_rcb[254] = { "e, ", " it", "whi", " ma", "ge", "x", "e c", "men", ".com" }; -int smaz_compress(char *in, int inlen, char *out, int outlen) { +int smaz_compress(const char *in, int inlen, char *out, int outlen) { unsigned int h1,h2,h3=0; int verblen = 0, _outlen = outlen; char verb[256], *_out = out; @@ -167,7 +167,7 @@ out: return out-_out; } -int smaz_decompress(char *in, int inlen, char *out, int outlen) { +int smaz_decompress(const char *in, int inlen, char *out, int outlen) { unsigned char *c = (unsigned char*) in; char *_out = out; int _outlen = outlen; @@ -192,7 +192,7 @@ int smaz_decompress(char *in, int inlen, char *out, int outlen) { inlen -= 2+len; } else { /* Codebook entry */ - char *s = Smaz_rcb[*c]; + const char *s = Smaz_rcb[*c]; int len = strlen(s); if (outlen < len) return _outlen+1; diff --git a/thirdparty/core/smaz.h b/thirdparty/core/smaz.h index a547d89..a9d8a33 100644 --- a/thirdparty/core/smaz.h +++ b/thirdparty/core/smaz.h @@ -14,7 +14,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND #ifndef _SMAZ_H #define _SMAZ_H -int smaz_compress(char *in, int inlen, char *out, int outlen); -int smaz_decompress(char *in, int inlen, char *out, int outlen); +int smaz_compress(const char *in, int inlen, char *out, int outlen); +int smaz_decompress(const char *in, int inlen, char *out, int outlen); #endif ```
| * | Move core thirdparty files to thirdparty/{minizip,misc}Rémi Verschelde2017-04-2837-12125/+74
| |/