Open
Description
For instance the C++ allows rendering text using something like this:
// no model: empty screen
if( !m )
{
mjr_rectangle(1, rect, 0, 0, rect.width, rect.height,
0.2, 0.3, 0.4, 1);
mjr_overlay(rect, mjGRID_TOPLEFT, 0, "Drag-and-drop model file here", 0, &con);
gui_mutex.unlock();
return;
}
So I attempted to recreate that by adding the following to my step function:
mjrect = mjcore.MJRRECT(0, 0, 10, 10)
mjlib.mjr_overlay(mjrect, 0, 0, "Some Test Text", 0, self._get_viewer().con)
No text is displayed, but there are a lot of reasons that might be so. Is use of the mjr_overlay supported in this way? I noticed it was commented out.