2014-11-04 03:42:51 +00:00
|
|
|
#include "console/console.h"
|
|
|
|
|
#include "console/consoleTypes.h"
|
|
|
|
|
#include "gfx/bitmap/gBitmap.h"
|
|
|
|
|
#include "gui/core/guiControl.h"
|
|
|
|
|
#include "gfx/gfxDevice.h"
|
|
|
|
|
#include "gfx/gfxTextureHandle.h"
|
|
|
|
|
#include "gfx/gfxDrawUtil.h"
|
|
|
|
|
#include "console/engineAPI.h"
|
|
|
|
|
|
2021-07-19 06:07:08 +00:00
|
|
|
#include "T3D/assets/ImageAsset.h"
|
|
|
|
|
|
2014-11-04 03:42:51 +00:00
|
|
|
class GuiChunkedBitmapCtrl : public GuiControl
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
typedef GuiControl Parent;
|
|
|
|
|
void renderRegion(const Point2I &offset, const Point2I &extent);
|
|
|
|
|
|
|
|
|
|
protected:
|
2021-07-19 06:07:08 +00:00
|
|
|
|
2024-12-21 23:02:23 +00:00
|
|
|
DECLARE_IMAGEASSET_REFACTOR(GuiChunkedBitmapCtrl, Bitmap, GFXDefaultGUIProfile)
|
2021-07-19 06:07:08 +00:00
|
|
|
|
2014-11-04 03:42:51 +00:00
|
|
|
bool mUseVariable;
|
|
|
|
|
bool mTile;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
//creation methods
|
|
|
|
|
DECLARE_CONOBJECT(GuiChunkedBitmapCtrl);
|
|
|
|
|
DECLARE_CATEGORY( "Gui Images" );
|
|
|
|
|
|
|
|
|
|
GuiChunkedBitmapCtrl();
|
|
|
|
|
static void initPersistFields();
|
|
|
|
|
|
|
|
|
|
//Parental methods
|
2024-03-18 18:40:22 +00:00
|
|
|
bool onWake() override;
|
|
|
|
|
void onSleep() override;
|
2014-11-04 03:42:51 +00:00
|
|
|
|
|
|
|
|
void setBitmap(const char *name);
|
|
|
|
|
|
2024-03-18 18:40:22 +00:00
|
|
|
void onRender(Point2I offset, const RectI &updateRect) override;
|
2021-07-19 06:07:08 +00:00
|
|
|
};
|