summaryrefslogtreecommitdiff
path: root/scene/resources/texture.cpp
AgeCommit message (Collapse)Author
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
2018-07-25Fix crash when you pass invalid parameter to ImageTexture.set_dataChaosus
2018-07-16Finally figured out how to implement AnimatedTexture properly.Juan Linietsky
2018-05-18-Hid texture flags by default so they dont take so much spaceJuan Linietsky
-make curve texture preview not so large, so its easier to embed the editor
2018-05-14ImageTexture.load returns an error code.Pieter-Jan Briers
2018-02-03Fix texture import spellingPhil Jones
2018-01-12Bind many more properties to scriptsBojidar Marinov
Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
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-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-26Ability to set flags via code in StreamTexture, as some users find it ↵Juan Linietsky
useful. Fixes #14526.
2017-12-04Added a higher level wrapper for proxy textureJuan Linietsky
2017-11-05Added filter_clip to AtlasTextureMrCdK
2017-10-22CubeMap: fix duplicate flags propertyPoommetee Ketson
2017-10-21Merge pull request #12286 from NathanWarden/add_cubemap_propertiesRémi Verschelde
Added properties for CubeMap.
2017-10-22Bind unbound enums, rearrange some by valuePoommetee Ketson
2017-10-21Added properties for CubeMap.Nathan Warden
2017-09-20Rename pos to position in user facing methods and variablesletheed
Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
2017-09-01Fix signed and unsigned comparisonsHein-Pieter van Braam
The first 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-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-08-07Texture: Fix wrong method bind instance typeIgnacio Etcheverry
2017-08-06Added missing binding to ImageTexture, closes #8371Juan Linietsky
2017-08-06keep default exported script values unless overriden, closes #8127Juan Linietsky
2017-08-01Merge pull request #8209 from robertdhernandez/Texture-Region-Editor-SyncRémi Verschelde
Texture region now updates when changing an Atlas region rect
2017-07-19Add object type hint for docsPoommetee Ketson
2017-06-29Texture region now updates when changing an AtlasRobert Hernandez
- Removed atlas_changed signal for AtlasTexture - Changes are now handled by _notify_change - Removed unneccesary signal connections - Texture preview now updates in real-time Fixed TextureRegionEditor constantly regenerating
2017-06-28Reworked translation systemJuan Linietsky
-Label and Button reload translation on the fly -Resources are loaded and reload depending on locale
2017-06-26Curve featuresMarc Gilleron
- Ability to set tangents as linear - Indicative min and max values - CurveTexture doesn't need min and max anymore
2017-06-25BuildSystem: generated files have .gen.extensionPoommetee Ketson
2017-06-24GradientTexture now uses a GradientMarc Gilleron
- Added gradient property - Deleted duplicate code
2017-06-24Added Curve resourceMarc Gilleron
- New resource for curves in y(x) form - CurveTexture now has a Curve - Curve and CurveTexture share the same editor
2017-06-18Texture rect_region drawing now clamps UV to avoid bleeding. This avoids ↵Juan Linietsky
scenarios like single-texture tilemap tiles leaking pixels to the next tile when filter is enabled on it.
2017-06-17Add normalmap support for drawing in all low level primitives. Only added ↵Juan Linietsky
support in Sprite so far.
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-09-Restored multithread capability to VisualServerJuan Linietsky
-Restored resource previews!
2017-06-04renamed all Rect2.pos to Rect2.positionalexholly
2017-06-02many fixes to image loader, voxel cone tracing, etc.Juan Linietsky
2017-05-25Merge pull request #8869 from Hinsbart/errorsRémi Verschelde
Fix errors on engine startup.
2017-05-23Fix stex import into black textures when lossless and lossy are selected, ↵Juan Linietsky
closes #8801
2017-05-22Fix errors on engine startup.Andreas Haas
Fixes a bunch of the most spammy console errors introduced by recent refactorings: - `AudioServerState` does not exist, this was the reference to it in the source. The surrounding code made it clear that `AudioServerLayout` was meant to be used instead. - `StreamCSVTranslation` same here, it's the only reference. I went with `Translation` here, but I'm not 100% sure on this one. - Some methods have been moved from `Texture` to `Image`, but the old bindings were still there. - A few `name == ""` errors related to duplicating nodes.
2017-05-17Removal of Image from Variant, converted to a Resource.Juan Linietsky
2017-04-23Fix property warnings and hide some debug printsRémi Verschelde
"ALL IS GOOD" was a lie. In particular, removes verbose "path not recognized" false positive. The actual logic is to (somewhat naively) check all ResourceFormatLoaders and to pick the first good match, so no need to warn about the formats that do not match the type hint.
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-04-06New particle system, mostly working, some small features missing.Juan Linietsky
2017-03-24Fix typos in source code using codespellRémi Verschelde
From https://github.com/lucasdemarchi/codespell
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
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
2017-02-16a ton of bug fixes to the rendererJuan Linietsky
2017-02-15Many fixes to make exported scenes work better, still buggy.Juan Linietsky
2017-02-13Rename the _MD macro to D_METHODHein-Pieter van Braam
This new name also makes its purpose a little clearer This is a step towards fixing #56