diff options
author | Saracen <SaracenOne@gmail.com> | 2017-10-14 16:32:27 +0100 |
---|---|---|
committer | Saracen <SaracenOne@gmail.com> | 2017-10-14 16:32:27 +0100 |
commit | d030e6ee759a725efa35a7b52ef2b9153d0a3c64 (patch) | |
tree | ada2432463a95b7b2bd24a50fbf6d656a670ad1b /servers | |
parent | deefc2a63d36b6659630df703a9b98adffb893e9 (diff) |
Expose 'request_frame_drawn_callback' to script.
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual_server.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/visual_server.cpp b/servers/visual_server.cpp index 2b34aa0e42..979b2ed8ec 100644 --- a/servers/visual_server.cpp +++ b/servers/visual_server.cpp @@ -1447,6 +1447,7 @@ void VisualServer::_bind_methods() { ClassDB::bind_method(D_METHOD("force_sync"), &VisualServer::sync); ClassDB::bind_method(D_METHOD("force_draw"), &VisualServer::draw); + ClassDB::bind_method(D_METHOD("request_frame_drawn_callback", "where", "method", "userdata"), &VisualServer::request_frame_drawn_callback); ClassDB::bind_method(D_METHOD("texture_create"), &VisualServer::texture_create); ClassDB::bind_method(D_METHOD("texture_create_from_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 ) ); |