summaryrefslogtreecommitdiff
path: root/scene/resources/texture.cpp
AgeCommit message (Collapse)Author
2022-11-01Rename Image's `get_rect` to `get_region`Micky
Also renames its parameter to from "rect" to "region".
2022-10-31Merge pull request #67588 from KoBeWi/if(!GDVIRTUAL_CALL)don'tRémi Verschelde
Simplify GDVIRTUAL_CALL calls
2022-10-28Change all WEBP strings and comments to WebPDeeJayLSP
2022-10-20Fix tp_canvas_item typo in _draw_rect_regionRichard Patching
2022-10-19Simplify GDVIRTUAL_CALL callskobewi
2022-10-14Make some Image methods statickobewi
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-05Merge pull request #66911 from clayjohn/imagetexture3dRémi Verschelde
Properly assign texture RID when creating ImageTexture3D
2022-10-04Properly assign texture RID when creating ImageTexture3Dclayjohn
2022-10-04Support nesting AtlasTextures inside other AtlasTexturesMicky
Connects AtlasTexture to its `atlas`'s "changed" signal, allowing it to detect property changes to `atlas` and update accordingly, when the project is running and in the editor, as well.
2022-09-28Fix MSVC warnings C4324, C4389, C4456, and C4459Rémi Verschelde
Part of #66537.
2022-09-06Rework AnimatedTexture's `fps` into `speed_scale`Micky
`fps` has been turned into `speed_scale`. It now affects the scale of the entire animation. If `speed_scale` is a negative value, the animation is played in reverse. `frame_n/delay_sec` has been renamed to `frame_n/duration` _(prefixes exist, making the previous name redundant)_. Setters and getters, documentation updated, too.
2022-09-06Merge pull request #65194 from Mickeon/rename-one-shotRémi Verschelde
2022-09-02Merge pull request #65170 from KoBeWi/your_argument_is_TypedArrayRémi Verschelde
2022-09-01Refactor BitMap and add testsHendrik Brucker
Co-authored-by: Resul Çelik <resul_celik@hotmail.com>
2022-09-01Rename AnimatedTexture `oneshot` to `one_shot`Micky
AnimatedTexture.`oneshot` -> `one_shot` For consistency. Every other exposed `one_shot` is spaced out like this.
2022-09-01Change Array arguments to TypedArraykobewi
2022-08-30Rename Curve/Curve2D/Curve3D/Gradient `interpolate()` to `sample()`Hugo Locurcio
"sampling" is a more accurate term than "interpolating" for what's happening when using that function.
2022-08-22Merge pull request #64339 from YuriSizov/core-multilevel-validate-propertyRémi Verschelde
2022-08-22Make `_validate_property` a multilevel methodYuri Sizov
2022-08-20Clean up mesh include code and commentsAaron Franke
2022-08-19Unexpose ProxyTextureMax Hilbrunner
2022-07-29Remove Signal connect bindsJuan Linietsky
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
2022-07-20Merge pull request #63127 from KoBeWi/raise_from_pictureRémi Verschelde
2022-07-18Use integer types in Image and ImageTexture methodsFireForge
- Image.blit_rect() - Image.blit_rect_mask() - Image.blend_rect() - Image.blend_rect_mask() - Image.fill_rect() - Image.get_used_rect() - Image.get_rect() - ImageTexture.set_size_override()
2022-07-18Clarify create_from_image() usagekobewi
2022-07-17Automatically create a Gradient resource when creating a GradientTexture1DHendrik Brucker
2022-07-08Add static methods for creating Image and ImageTexturekobewi
2022-07-07Changed valid check to null check, added error messagesDylan Conway
2022-06-11Add suffixes to all nodes and resourcesFireForge
2022-06-09Fix for ImageTexture importedKamay Xutax
Someone apparently forgot to return true ... on ImageTexture::_set/_get
2022-06-08Re-add internal image field to ImageTexturekobewi
2022-06-07Remove image property of ImageTexturekobewi
2022-06-05Increase maximum size of gradient textureskobewi
2022-05-19Add dedicated macros for property name extractionHaoyu Qiu
* Replace case-by-case extraction with PNAME & GNAME * Fix group handling when group hint begins with property name * Exclude properties that are PROPERTY_USAGE_NO_EDITOR * Extract missing ADD_ARRAY*, ADD_SUBGROUP* macros
2022-05-03Merge pull request #60583 from reduz/placeholder-assetsRémi Verschelde
2022-05-03Merge pull request #60627 from aaronfranke/rename-elementsRémi Verschelde
Rename Transform2D and Basis `elements` to `columns` and `rows` respectively
2022-05-03Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio
These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
2022-04-29Rename Transform2D "elements" to "columns"Aaron Franke
2022-04-28Implement placeholder assetsreduz
* Placeholder textures * Placeholder meshes * Placeholder material This PR is the first step towards implementing https://github.com/godotengine/godot-proposals/issues/2756 It adds an asset type that uses no resources, which can be used to replace the existing ones on export for using on the upcoming server export.
2022-04-19Fix GradientTexture2D update after setting the gradientHendrik Brucker
2022-04-11Make FileAccess and DirAccess classes reference counted.bruvzg
2022-04-04Style: Apply clang-tidy to current code, add `readability-redundant-member-init`Rémi Verschelde
2022-03-30Add PortableCompressedTexturereduz
* Resource that allows saving textures embedded in scenes or standalone. * Supports only formats that are portable: Lossy, Lossles or BasisUniversal This is something I wanted to add for a long time. I made it now because @fire requires it for importing GLTF2 files with embedded textures, but also this will allow saving Godot scenes as standalone binary files that will run in all platforms (because textures will load everywhere). This is ideal when you want to distribute individual standalone assets online in games that can be built from Godot scenes.
2022-03-16Split dummy renderer classes into separate filesBastiaan Olij
Split canvas_texture_storage and texture_storage from render_storage class
2022-03-11Merge pull request #58965 from TechnoPorg/remove-stex-occurrencesRémi Verschelde
Remove more occurrences of "stex"
2022-03-10Remove more occurrences of "stex"TechnoPorg
2022-03-10Discern between virtual and abstract class bindingsreduz
* Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
2022-03-05Rename StreamTexture* to CompressedTexture*reduz
* Its not and will not be used for streaming. * Streaming will be implemented in 4.1 and it will work different. * It makes more sense to be called CompressedTexture since it imports and compresses texture files.
2022-02-06Add missing SNAME macro optimization in some function callsjmb462