You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
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.
This commit is contained in:
committed by
Ariel Manzur
parent
4bc494ae2e
commit
d6e30256ad
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user