aboutsummaryrefslogtreecommitdiff
path: root/core/image.cpp
Commit message (Collapse)AuthorAgeFilesLines
* added rgbe_to_srgb method to Imagekarroffel2018-05-301-0/+32
|
* Merge pull request #18219 from AlexHolly/fix-image-blit-blendJuan Linietsky2018-05-071-0/+24
|\ | | | | blit and blend fix when dst<Vector2
| * blit and blend fix when dst<Vector2Alexander Holland2018-04-151-0/+24
| |
* | Merge pull request #18505 from AlexHolly/image-point2-helperJuan Linietsky2018-05-071-1/+11
|\ \ | | | | | | add Point2 helper for Image.get_pixel and Image.set_pixel
| * | add Point2 helper for Image.get_pixel and Image.set_pixelAlexander Holland2018-04-291-1/+11
| |/ | | | | image-point2-helper
* | add condition check in Imgae::create(...)RaphaelHunter2018-05-051-0/+3
| |
* | Merge pull request #18321 from Crazy-P/Fixes-logically-dead-codeRémi Verschelde2018-05-011-1/+4
|\ \ | | | | | | Fixes logically dead code (Coverity)
| * | Fixes logically dead code (Coverity)Crazy-P2018-04-211-1/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes reported logically dead codes by Coverity * image.cpp: Doesn't really need any modification. But to remove the bug report then we have to move the MAX call away from the for loop statement. * rasterizer_gles3.cpp: Removes unnecessary elif condition since it is checked earlier in the function * collada.cpp: If stamement never reached due to macro ERR_CONTINUE does the same. * navigation_mesh.cpp: Variables should always be null - however, also checked for the very same condition in their function call. Leaving this for review (whether the function call is necessary or not) * path_editor_plugin.cpp: If cancel is true, then it should restore the edited value to the original provided. http://docs.godotengine.org/en/3.0/classes/class_editorspatialgizmo.html#class-editorspatialgizmo-commit-handle * spatial_editor_gizmos.cpp: the very condition of i >= 3 is predetermined in the if case right before it. Thus case 1 is always '1' and case 2 is always '-1' * grid_map_editor.cpp: Same as above in spatial_editor_gizmos.cpp * voxel_light_baker.cpp: Same as above in spatial_editor_gizmos.cpp * visual_server.cpp: Same as above in spatial_editor_gizmos.cpp * visual_script_expression.cpp: char '-' is already true in the switch case mechanism. Thus it can never reach to default case. * particles.cpp: Case 'PARAM_MAX' is unreachable due to index checking right before the switch execution. * shader_language.cpp: Invalid index is handled in switch default case. `type < TYPE_FLOAT && type > TYPE_VEC4` -> `(type < TYPE_FLOAT || type > TYPE_VEC4`) Fixes the "always false problem" in TODO comment.
* / Add option to renormalize mipmaps when generating them for normalmaps.Juan Linietsky2018-04-291-12/+36
|/ | | | Reduces some aliasing.
* Merge pull request #16898 from Lerc/masterJuan Linietsky2018-04-081-0/+42
|\ | | | | add Image::bumpmap_to_normalmap conversion function
| * change bumpmap_to_normalmap range from [1...255] to [0...255]Neil Graham2018-03-161-3/+3
| |
| * change to clang formatNeil Graham2018-02-241-19/+19
| |
| * add Image::bumpmap_to_normalmap conversion functionNeil Graham2018-02-211-0/+42
| |
* | enhance mipmapsMavropoulos Ioannis2018-03-031-49/+17
|/
* Fix typos in code and docs with codespellRémi Verschelde2018-01-181-1/+1
| | | | Using v1.11.0 from https://github.com/lucasdemarchi/codespell
* Fix crash when using Image.resize() without calling Image.create() firstJerome670002018-01-061-2/+5
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Revert "Add missing image format RGB10A2. Fixes #14964"Juan Linietsky2018-01-031-24/+0
|
* Merge pull request #15051 from binbitten/bug-fixesRémi Verschelde2018-01-031-0/+24
|\ | | | | Add missing image format RGB10A2. Fixes #14964
| * Add missing image format RGB10A2. Fixes #14964binbitten2017-12-251-0/+24
| |
* | Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Add functions to image to load a PNG or JPG from a buffer, closes #4024Juan Linietsky2017-12-201-0/+37
|
* Improved packed scene previews.Daniel J. Ramirez2017-11-171-7/+16
|
* Cleanup unnecessary debug printsRémi Verschelde2017-10-211-1/+0
|
* Fix Alpha Border bugfixComanche_Ak2017-10-131-0/+1
|
* Change to shrink_x2 function preventing it set a 0 width/heightGabriel2017-09-301-2/+2
|
* Fixed a bunch of typos, including an error code.Ross Hadden2017-09-211-3/+3
|
* Fix use of unitialized variablesHein-Pieter van Braam2017-09-021-3/+3
| | | | The second in my quest to make Godot 3.x compile with -Werror on GCC7
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Add handy get_size() method to Image classAndrii Doroshenko (Xrayez)2017-08-261-0/+6
|
* ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry2017-08-201-52/+52
|
* Add closest_power_of_2 func and implement mix_rate/latency on OS XMarcelo Fernandez2017-08-171-3/+3
|
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-6/+6
|
* Add object type hint for docsPoommetee Ketson2017-07-191-1/+1
|
* Refactor 'treshold' to 'threshold'Poommetee Ketson2017-07-081-17/+17
|
* [#9292] Renamed Image.put_pixel() to set_pixel().ducdetronquito2017-07-071-8/+8
|
* Added 'blit_rect_mask' for 3.0 toodumitru-stama2017-06-241-0/+57
|
* Image: Fix wrong method DEFVALIgnacio Etcheverry2017-06-231-1/+1
|
* Added two new methods to 3.0 'blend_rect_mask' and 'fill'd2017-06-181-0/+130
|
* Merge pull request #9231 from dumitru-stama/constimgGeorge Marques2017-06-161-1/+1
|\ | | | | Fixed a bug in get_pixel not being const
| * Fixed a bug in get_pixel not being constdumitru.stama2017-06-161-1/+1
| |
* | -Fix freezes caused by etccomp2, closes #9183Juan Linietsky2017-06-161-6/+10
|/ | | | -Normalmaps are now detected and imported as RGTC, both in S3TC and ETC2, this improves their quality.
* Rewrite Image::blit_rect to use the following algorithm:Benjamin Dahse2017-06-141-10/+10
| | | | | | 1. Let r1 be the source rectangle clipped against the entire source image rectangle. 2. Let r2 be r1 offset by p_dest, clipped against the entire destination image rectangle. 3. Copy pixels from r1 to r2.
* Merge pull request #8548 from tagcup/etc2compJuan Linietsky2017-06-131-11/+11
|\ | | | | Add ETC1/ETC2 compression support though etc2comp.
| * Add ETC1/ETC2 compression support though etc2comp.Ferenc Arn2017-05-311-11/+11
| | | | | | | | | | | | Remove rg-etc1 code. Also updated travis to use ubuntu 14.04. Fixes #8457.
* | -Restored multithread capability to VisualServerJuan Linietsky2017-06-091-8/+8
| | | | | | | | -Restored resource previews!
* | renamed all Rect2.pos to Rect2.positionalexholly2017-06-041-6/+6
|/
* rewritten PBR implementation to make it friendlier with BlenderJuan Linietsky2017-05-311-15/+5
|
* -Added .hdr format supportJuan Linietsky2017-05-281-29/+1
| | | | | | -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
* -Added EXR supprot for HDR (no BC6 compression yet though)Juan Linietsky2017-05-261-31/+481
| | | | | | -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