summaryrefslogtreecommitdiff
path: root/core/image.cpp
AgeCommit message (Collapse)Author
2018-08-14-Deprecate ImageTexture::loadJuan Linietsky
-Add warning to Image::load when loading resources -Add script binding for get_configuration_warning
2018-08-06Added proper import support for 3D and Array texturesJuan Linietsky
2018-07-23Merge pull request #19313 from RandomShaper/improve-imageJuan Linietsky
Image trilinear scaling + Optimization
2018-07-23Optimize image scaling routinesPedro J. Estébanez
2018-07-23Add trilinear filtering to image scalingPedro J. Estébanez
2018-07-17Add webp buffer loader for Imagegeequlim
Cleanup the code memory load related code for Image Fix jpeg buff load function always returns OK event failed
2018-07-03Ensure, if a texture meant for a normal map is imported and size limit ↵Juan Linietsky
exists, that it's renormalized after resize.
2018-05-30added rgbe_to_srgb method to Imagekarroffel
2018-05-07Merge pull request #18219 from AlexHolly/fix-image-blit-blendJuan Linietsky
blit and blend fix when dst<Vector2
2018-05-07Merge pull request #18505 from AlexHolly/image-point2-helperJuan Linietsky
add Point2 helper for Image.get_pixel and Image.set_pixel
2018-05-05add condition check in Imgae::create(...)RaphaelHunter
2018-05-01Merge pull request #18321 from Crazy-P/Fixes-logically-dead-codeRémi Verschelde
Fixes logically dead code (Coverity)
2018-04-29Add option to renormalize mipmaps when generating them for normalmaps.Juan Linietsky
Reduces some aliasing.
2018-04-29add Point2 helper for Image.get_pixel and Image.set_pixelAlexander Holland
image-point2-helper
2018-04-21Fixes logically dead code (Coverity)Crazy-P
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.
2018-04-15blit and blend fix when dst<Vector2Alexander Holland
2018-04-08Merge pull request #16898 from Lerc/masterJuan Linietsky
add Image::bumpmap_to_normalmap conversion function
2018-03-16change bumpmap_to_normalmap range from [1...255] to [0...255]Neil Graham
2018-03-03enhance mipmapsMavropoulos Ioannis
2018-02-24change to clang formatNeil Graham
2018-02-21add Image::bumpmap_to_normalmap conversion functionNeil Graham
2018-01-18Fix typos in code and docs with codespellRémi Verschelde
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-06Fix crash when using Image.resize() without calling Image.create() firstJerome67000
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
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.
2018-01-03Revert "Add missing image format RGB10A2. Fixes #14964"Juan Linietsky
2018-01-03Merge pull request #15051 from binbitten/bug-fixesRémi Verschelde
Add missing image format RGB10A2. Fixes #14964
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-25Add missing image format RGB10A2. Fixes #14964binbitten
2017-12-20Add functions to image to load a PNG or JPG from a buffer, closes #4024Juan Linietsky
2017-11-17Improved packed scene previews.Daniel J. Ramirez
2017-10-21Cleanup unnecessary debug printsRémi Verschelde
2017-10-13Fix Alpha Border bugfixComanche_Ak
2017-09-30Change to shrink_x2 function preventing it set a 0 width/heightGabriel
2017-09-21Fixed a bunch of typos, including an error code.Ross Hadden
2017-09-02Fix use of unitialized variablesHein-Pieter van Braam
The second in my quest to make Godot 3.x compile with -Werror on GCC7
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-26Add handy get_size() method to Image classAndrii Doroshenko (Xrayez)
2017-08-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-17Add closest_power_of_2 func and implement mix_rate/latency on OS XMarcelo Fernandez
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-07-19Add object type hint for docsPoommetee Ketson
2017-07-08Refactor 'treshold' to 'threshold'Poommetee Ketson
2017-07-07[#9292] Renamed Image.put_pixel() to set_pixel().ducdetronquito
2017-06-24Added 'blit_rect_mask' for 3.0 toodumitru-stama
2017-06-23Image: Fix wrong method DEFVALIgnacio Etcheverry
2017-06-18Added two new methods to 3.0 'blend_rect_mask' and 'fill'd
2017-06-16Merge pull request #9231 from dumitru-stama/constimgGeorge Marques
Fixed a bug in get_pixel not being const
2017-06-16-Fix freezes caused by etccomp2, closes #9183Juan Linietsky
-Normalmaps are now detected and imported as RGTC, both in S3TC and ETC2, this improves their quality.
2017-06-16Fixed a bug in get_pixel not being constdumitru.stama
2017-06-14Rewrite Image::blit_rect to use the following algorithm:Benjamin Dahse
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.