MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setBitmapName

Method setBitmapName

Engine/source/gui/controls/guiBitmapCtrl.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool GuiBitmapCtrl::setBitmapName( void *object, const char *index, const char *data )
68{
69 // Prior to this, you couldn't do bitmap.bitmap = "foo.jpg" and have it work.
70 // With protected console types you can now call the setBitmap function and
71 // make it load the image.
72 static_cast<GuiBitmapCtrl *>( object )->setBitmap( data );
73
74 // Return false because the setBitmap method will assign 'mBitmapName' to the
75 // argument we are specifying in the call.
76 return false;
77}
78
79void GuiBitmapCtrl::initPersistFields()
80{

Callers

nothing calls this directly

Calls 1

setBitmapMethod · 0.45

Tested by

no test coverage detected