diff options
| author | Juan Linietsky | 2016-05-04 12:36:51 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-05-04 12:37:07 -0300 |
| commit | 89d87294dbc84df8dd7740cd04cc4842b8738e96 (patch) | |
| tree | 62d1015ed08cb12c6e57e6391d4f8cc9f32c355e /servers/visual_server.cpp | |
| parent | 0fa5154c0af7895b0a5e11ff4899e12cc0cbbdd2 (diff) | |
| download | godot-89d87294dbc84df8dd7740cd04cc4842b8738e96.tar.gz godot-89d87294dbc84df8dd7740cd04cc4842b8738e96.tar.zst godot-89d87294dbc84df8dd7740cd04cc4842b8738e96.zip | |
ability to shrink all images x2 on load
this is for extreme cases when running on devices with very low video
memory, so you can still retain compatibility.
Diffstat (limited to 'servers/visual_server.cpp')
| -rw-r--r-- | servers/visual_server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/visual_server.cpp b/servers/visual_server.cpp index 17d5b16b9..5ac0e5b5d 100644 --- a/servers/visual_server.cpp +++ b/servers/visual_server.cpp @@ -355,8 +355,12 @@ void VisualServer::_bind_methods() { ObjectTypeDB::bind_method(_MD("texture_get_flags"),&VisualServer::texture_get_flags ); ObjectTypeDB::bind_method(_MD("texture_get_width"),&VisualServer::texture_get_width ); ObjectTypeDB::bind_method(_MD("texture_get_height"),&VisualServer::texture_get_height ); + + ObjectTypeDB::bind_method(_MD("texture_set_shrink_all_x2_on_set_data","shrink"),&VisualServer::texture_set_shrink_all_x2_on_set_data ); + #ifndef _3D_DISABLED + ObjectTypeDB::bind_method(_MD("shader_create","mode"),&VisualServer::shader_create,DEFVAL(SHADER_MATERIAL)); ObjectTypeDB::bind_method(_MD("shader_set_mode","shader","mode"),&VisualServer::shader_set_mode); |
