mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
adds bitmap coloration to: guibitmapctrl, guibitmapbarctrl, guianimbitmapctrl (and guicrosshairhud by way of inheritance)
This commit is contained in:
parent
b012ffff17
commit
f8368cd7e9
4 changed files with 8 additions and 2 deletions
|
|
@ -58,6 +58,7 @@ void GuiBitmapBarCtrl::onRender(Point2I offset, const RectI &updateRect)
|
|||
if (mTextureObject)
|
||||
{
|
||||
GFX->getDrawUtil()->clearBitmapModulation();
|
||||
GFX->getDrawUtil()->setBitmapModulation(mColor);
|
||||
F32 pct = (mPercent / 100.0);
|
||||
GFXTextureObject* texture = mTextureObject;
|
||||
Point2I modifiedSRC;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue