diff options
| author | Hein-Pieter van Braam | 2017-02-13 12:47:24 +0100 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2017-02-13 12:50:02 +0100 |
| commit | 411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291 (patch) | |
| tree | a3c28058efb7a80faed23bff683fe0931859ed52 /servers/visual_server.cpp | |
| parent | bf64df4427836a4e7a5060ee11d75eea6da79b14 (diff) | |
| download | godot-411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291.tar.gz godot-411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291.tar.zst godot-411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291.zip | |
Diffstat (limited to 'servers/visual_server.cpp')
| -rw-r--r-- | servers/visual_server.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/servers/visual_server.cpp b/servers/visual_server.cpp index 179958557..68767da4c 100644 --- a/servers/visual_server.cpp +++ b/servers/visual_server.cpp @@ -1566,17 +1566,17 @@ Array VisualServer::mesh_surface_get_arrays(RID p_mesh,int p_surface) const { void VisualServer::_bind_methods() { - ClassDB::bind_method(_MD("texture_create"),&VisualServer::texture_create); - ClassDB::bind_method(_MD("texture_create_from_image"),&VisualServer::texture_create_from_image,DEFVAL( TEXTURE_FLAGS_DEFAULT ) ); - //ClassDB::bind_method(_MD("texture_allocate"),&VisualServer::texture_allocate,DEFVAL( TEXTURE_FLAGS_DEFAULT ) ); - //ClassDB::bind_method(_MD("texture_set_data"),&VisualServer::texture_blit_rect,DEFVAL( CUBEMAP_LEFT ) ); - //ClassDB::bind_method(_MD("texture_get_rect"),&VisualServer::texture_get_rect ); - ClassDB::bind_method(_MD("texture_set_flags"),&VisualServer::texture_set_flags ); - ClassDB::bind_method(_MD("texture_get_flags"),&VisualServer::texture_get_flags ); - ClassDB::bind_method(_MD("texture_get_width"),&VisualServer::texture_get_width ); - ClassDB::bind_method(_MD("texture_get_height"),&VisualServer::texture_get_height ); + 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_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(_MD("texture_set_shrink_all_x2_on_set_data","shrink"),&VisualServer::texture_set_shrink_all_x2_on_set_data ); + ClassDB::bind_method(D_METHOD("texture_set_shrink_all_x2_on_set_data","shrink"),&VisualServer::texture_set_shrink_all_x2_on_set_data ); |
