summaryrefslogtreecommitdiff
path: root/servers/visual_server.cpp
AgeCommit message (Collapse)Author
2018-07-30add 3D texturesThomas Herzog
2018-07-27Rename flag to better nameJuan Linietsky
2018-07-26doc: Sync classref with current sourceRémi Verschelde
Fix various missing arguments in bindings.
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-25Merge pull request #18368 from Gamblify/RasterizerEngineSyncRémi Verschelde
sync rasterizers with engine
2018-07-24Removed unnecessary assignmentsWilson E. Alvarez
2018-07-23Merge pull request #12678 from AndreaCatania/softJuan Linietsky
Soft body
2018-07-23Implemented Soft bodyAndreaCatania
- Soft Body Physics node - Soft Body Rendering - Soft body Editor - Soft body importer
2018-07-23Fix issues with CPUParticles and related conversion from Particles. Closes ↵Juan Linietsky
#20126
2018-07-23Added some API to visual server so from control VRAM buffer is more easyAndreaCatania
2018-07-21-Fix disable_3d flagJuan Linietsky
-Add extra flag optimize=[size,speed] to be able to prioritize size
2018-07-17Revert "Fix #19507 Not emitted particles affects performance"Max Hilbrunner
2018-07-17Merge pull request #19764 from malbach/godot_malbachMax Hilbrunner
Fix #19507 Not emitted particles affects performance
2018-07-06Support for CPU based particles, which aids compatibility with OpenGL ES 2.0Juan Linietsky
2018-06-25Fix #19507 Not emitted particles affects performancemalbach
2018-06-05Rasterizers are now in sync with engineGustav Lund
The rasterisers (both GLES3 and GLES2) were calculating their own frame delta time This fix lets the rasterizers get the frame delta through the draw call That way any regulations to the frame step from the main script will not cause particle systems to process at a different step than the rest of the Engine. Remove unused rasterizer storage variable frame.prev_tick variable were not used anywhere and has been removed
2018-05-08canvas_item_add_triangle_array bind fixupMarcelo Fernandez
2018-05-07Merge pull request #18495 from Zylann/partial_texture_updateJuan Linietsky
Added partial texture update to VisualServer
2018-04-29Added partial texture update to VisualServerMarc Gilleron
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-02-25[DOCS] Sync classref with current sourcePoommetee Ketson
2018-02-19Readd VS.sync and VS.draw to keep compatibilityRémi Verschelde
Those are deprecated as VS.force_sync and VS.force_draw do the same and more explicitly, but we cannot remove them without marking them as deprecated before that. Fixes issue introduced in #15892.
2018-02-14Merge pull request #15892 from Zylann/add_missing_vs_bindingsRémi Verschelde
Added all missing VisualServer bindings
2018-01-25Fix VisualServer.free conflicting with Object.freeMarc Gilleron
2018-01-20Added all missing VisualServer bindingsMarc Gilleron
- Added bindings for multimesh, immediate, skeleton, light, reflection probe, gi probe, lightmap, particles, camera, environment, scenario, instance - Removed draw and sync, were duplicates of force_* equivalents - Bumped binders max arguments from 11 to 13 - Wrote some wrappers as not all methods were variant-friendly
2018-01-18improves portability with some compilersAriel Manzur
2018-01-18Fix typos in code and docs with codespellRémi Verschelde
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
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-04Fix macOS and other builds after #15299Duy-Nguyen TA
Commit ammended by @akien-mga to fix more platforms.
2018-01-04Merge pull request #15191 from Jerome67000/z_renamingRémi Verschelde
renames "z" Node2D property to "z_index"
2018-01-03#15078 renamed "z" -> "z_index" property in Node2DJerome67000
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-16Add epic hack so vsync can be toggled in run-time from script. Fixes #14458.Juan Linietsky
Call needs to be routed via visual server to reach the proper thread.
2017-12-16Bind TextEdit.deselect and update documentationRémi Verschelde
2017-11-27doc: Sync classref with current sourceRémi Verschelde
2017-11-26Merge pull request #13228 from rminderhoud/weightsRémi Verschelde
Fix read bug in compressed bone weights
2017-11-26Merge pull request #12572 from RandomShaper/onion-skinningJuan Linietsky
Onion skinning
2017-11-25Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky
wrong function, leading to unnecesary copy on writes and reduced performance.
2017-11-25Add ability to opt-out buffer swapping in `VS::draw()`Pedro J. Estébanez
2017-11-23Fix read bug in compressed bone weightsRalph Minderhoud
2017-11-17Rename Rect3 to AABB.Ferenc Arn
Fixes #12973.
2017-11-14Ability to update parts of an array, and set arrays as dynamic drawJuan Linietsky
2017-10-22Bind unbound enums, rearrange some by valuePoommetee Ketson
2017-10-20Bind some VisualServer functionsLeon Krause
2017-10-14Expose 'request_frame_drawn_callback' to script.Saracen
2017-10-11Bind VisualServer.sync() method to GDScriptJulian Murgia
This function is needed in Escoria's resource queue (https://github.com/godotengine/escoria/blob/master/device/globals/resource_queue.gd#L94)
2017-09-11Script access to formatted arrays and blend_arrays in meshes.SaracenOne
2017-08-30Renderer/Simulator flagsGustav Lund
Now hopefully with correct code style
2017-08-27Dead code tells no talesRémi Verschelde
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde