diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-07-24 08:07:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 08:07:32 +0200 |
commit | 374cffaa11f380c867c831a74d4579adf15c8a5a (patch) | |
tree | be85163dfd42240a5dee577f12dbcb078692b1f3 /servers | |
parent | 574ec97b8b5cb5afc6bc39f7f9a065fed8ba58c1 (diff) | |
parent | 2777f81d290e4b9a17afedc100a5b83666e04495 (diff) |
Merge pull request #9764 from Noshyaar/pr-fix2
Add object type hint for docs
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual_server.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/servers/visual_server.cpp b/servers/visual_server.cpp index 277b401d49..080e538cbf 100644 --- a/servers/visual_server.cpp +++ b/servers/visual_server.cpp @@ -1475,14 +1475,14 @@ Array VisualServer::mesh_surface_get_arrays(RID p_mesh, int p_surface) const { void VisualServer::_bind_methods() { ClassDB::bind_method(D_METHOD("texture_create"), &VisualServer::texture_create); - ClassDB::bind_method(D_METHOD("texture_create_from_image"), &VisualServer::texture_create_from_image, DEFVAL(TEXTURE_FLAGS_DEFAULT)); + ClassDB::bind_method(D_METHOD("texture_create_from_image", "image:Image", "flags"), &VisualServer::texture_create_from_image, DEFVAL(TEXTURE_FLAGS_DEFAULT)); //ClassDB::bind_method(D_METHOD("texture_allocate"),&VisualServer::texture_allocate,DEFVAL( TEXTURE_FLAGS_DEFAULT ) ); //ClassDB::bind_method(D_METHOD("texture_set_data"),&VisualServer::texture_blit_rect,DEFVAL( CUBEMAP_LEFT ) ); //ClassDB::bind_method(D_METHOD("texture_get_rect"),&VisualServer::texture_get_rect ); - ClassDB::bind_method(D_METHOD("texture_set_flags"), &VisualServer::texture_set_flags); - ClassDB::bind_method(D_METHOD("texture_get_flags"), &VisualServer::texture_get_flags); - ClassDB::bind_method(D_METHOD("texture_get_width"), &VisualServer::texture_get_width); - ClassDB::bind_method(D_METHOD("texture_get_height"), &VisualServer::texture_get_height); + ClassDB::bind_method(D_METHOD("texture_set_flags", "texture"), &VisualServer::texture_set_flags); + ClassDB::bind_method(D_METHOD("texture_get_flags", "texture", "flags"), &VisualServer::texture_get_flags); + ClassDB::bind_method(D_METHOD("texture_get_width", "texture"), &VisualServer::texture_get_width); + ClassDB::bind_method(D_METHOD("texture_get_height", "texture"), &VisualServer::texture_get_height); ClassDB::bind_method(D_METHOD("texture_set_shrink_all_x2_on_set_data", "shrink"), &VisualServer::texture_set_shrink_all_x2_on_set_data); } |