mirror of
https://github.com/tribes2/engine.git
synced 2026-04-22 21:05:27 +00:00
t2 engine svn checkout
This commit is contained in:
commit
ff569bd2ae
988 changed files with 394180 additions and 0 deletions
58
hud/hudBitmapCtrl.h
Normal file
58
hud/hudBitmapCtrl.h
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// V12 Engine
|
||||
//
|
||||
// Copyright (c) 2001 GarageGames.Com
|
||||
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _HUDBITMAPCTRL_H_
|
||||
#define _HUDBITMAPCTRL_H_
|
||||
|
||||
#ifndef _HUDCTRL_H_
|
||||
#include "hud/hudCtrl.h"
|
||||
#endif
|
||||
#ifndef _CONSOLETYPES_H_
|
||||
#include "console/consoleTypes.h"
|
||||
#endif
|
||||
#ifndef _DGL_H_
|
||||
#include "dgl/dgl.h"
|
||||
#endif
|
||||
|
||||
class HudBitmapCtrl : public HudCtrl
|
||||
{
|
||||
private:
|
||||
typedef HudCtrl Parent;
|
||||
|
||||
protected:
|
||||
|
||||
TextureHandle mBitmapHandle;
|
||||
|
||||
public:
|
||||
|
||||
HudBitmapCtrl();
|
||||
|
||||
void setBitmap(const char * bitmap);
|
||||
|
||||
// SimObject
|
||||
void inspectPostApply();
|
||||
|
||||
// GuiControl
|
||||
void onPreRender();
|
||||
void onRender(Point2I offset, const RectI & updateRect, GuiControl * firstResponder);
|
||||
|
||||
bool onWake();
|
||||
void onSleep();
|
||||
|
||||
// field data
|
||||
StringTableEntry mBitmap;
|
||||
bool mAutoResize;
|
||||
bool mAutoCenter;
|
||||
bool mFlipVert;
|
||||
bool mFlipHorz;
|
||||
|
||||
static void initPersistFields();
|
||||
|
||||
DECLARE_CONOBJECT(HudBitmapCtrl);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue