Initial commit
This commit is contained in:
26
Torque/SDK/engine/gui/controls/guiBackgroundCtrl.cc
Normal file
26
Torque/SDK/engine/gui/controls/guiBackgroundCtrl.cc
Normal file
@@ -0,0 +1,26 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// 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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user