No, it doesn't need to do all that. If the function is about drawing an entity then it draws the entity, it doesn't load it, parse it, play the violin and do all other possible stuff. If you want a function to load some data, then do exactly that -- implement a function to load the data and when the data is loaded ask the UI to update itself (by calling update() or updateGL()). Eventually it will call paintGL() which can call a function of your choice that will draw the data parsed earlier.
Bookmarks