tge/engine/gui/controls/guiBackgroundCtrl.cc
2017-04-17 06:17:10 -06:00

27 lines
781 B
C++
Executable File

//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------
#include "console/console.h"
#include "gui/controls/guiBackgroundCtrl.h"
IMPLEMENT_CONOBJECT(GuiBackgroundCtrl);
//--------------------------------------------------------------------------
GuiBackgroundCtrl::GuiBackgroundCtrl() : GuiControl()
{
mDraw = false;
}
//--------------------------------------------------------------------------
void GuiBackgroundCtrl::onRender(Point2I offset, const RectI &updateRect)
{
if ( mDraw )
Parent::onRender( offset, updateRect );
renderChildControls(offset, updateRect);
}